diff options
author | Felix Endres | 2006-03-21 17:33:01 +0100 |
---|---|---|
committer | Felix Endres | 2006-03-21 17:33:01 +0100 |
commit | 33ea007ab9c9a6630d817644959cb1ca7ce1e1dd (patch) | |
tree | c050fa8b8dd4d055fb9bd3005e8b537ad2892a7f /initrd/initrd-stuff/etc/functions | |
parent | Added 'sync' to runvmware (ensure that data is really written to loop (diff) | |
download | core-33ea007ab9c9a6630d817644959cb1ca7ce1e1dd.tar.gz core-33ea007ab9c9a6630d817644959cb1ca7ce1e1dd.tar.xz core-33ea007ab9c9a6630d817644959cb1ca7ce1e1dd.zip |
Fix: dhclientuser für Ubuntu
Neue Basepasswd
Screenresolutionermittlung
git-svn-id: http://svn.openslx.org/svn/openslx/ld4@109 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/initrd-stuff/etc/functions')
-rw-r--r-- | initrd/initrd-stuff/etc/functions | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/initrd/initrd-stuff/etc/functions b/initrd/initrd-stuff/etc/functions index 90ded7fd..825eff17 100644 --- a/initrd/initrd-stuff/etc/functions +++ b/initrd/initrd-stuff/etc/functions @@ -365,8 +365,14 @@ 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 +# strip every line with userid between 500 and 99999 from the passwd-file +# FIXME: "nobody" will be deleted too +cat /mnt/etc/passwd | sed '/^[a-zA-Z0-9]*:[a-zA-Z0-9]*:[1-9][0-9]\{3,4\}:/d;/^[a-zA-Z0-9]*:[a-zA-Z0-9]*:[5-9][0-9]\{2\}:/d' > /mnt/etc/newpasswd +mv /mnt/etc/newpasswd /mnt/etc/passwd + + +#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 } |