diff options
author | Dirk von Suchodoletz | 2006-03-08 00:53:39 +0100 |
---|---|---|
committer | Dirk von Suchodoletz | 2006-03-08 00:53:39 +0100 |
commit | 6b35840508287cc979202dc10e9ba41fe9f162b3 (patch) | |
tree | 14e46ca38b99bd1f5a2fc9955a2ff5046e26270b /initrd/initrd-stuff/etc/functions | |
parent | started to add alternative configuration via file (tftp get from (diff) | |
download | core-6b35840508287cc979202dc10e9ba41fe9f162b3.tar.gz core-6b35840508287cc979202dc10e9ba41fe9f162b3.tar.xz core-6b35840508287cc979202dc10e9ba41fe9f162b3.zip |
generate passwd/shadow from initrd ...
git-svn-id: http://svn.openslx.org/svn/openslx/dxs/ld4@94 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/initrd-stuff/etc/functions')
-rw-r--r-- | initrd/initrd-stuff/etc/functions | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/initrd/initrd-stuff/etc/functions b/initrd/initrd-stuff/etc/functions index e80fdc67..90ded7fd 100644 --- a/initrd/initrd-stuff/etc/functions +++ b/initrd/initrd-stuff/etc/functions @@ -362,6 +362,15 @@ echo "not implemented" > /tmp/ldap-done } ####################################################################### +# base passwd/shadow, the standard user present in every system. All +# other system users should be generated within the service function +basepasswd () { +echo -e "root:x:0:0:System Administrator:/root:/bin/bash" \ + > /mnt/etc/passwd +echo -e "root:"$root_pw":12958:0:10000::::" > /mnt/etc/shadow +} + +####################################################################### # localization simply derived from $language variable set in # machine-setup or other sources - mostly taken from knoppix localization () { |