diff options
Diffstat (limited to 'initrd/initrd-stuff')
| -rwxr-xr-x | initrd/initrd-stuff/bin/servconfig | 5 | ||||
| -rw-r--r-- | initrd/initrd-stuff/etc/functions | 9 | ||||
| -rw-r--r-- | initrd/initrd-stuff/etc/machine-setup | 4 | ||||
| -rwxr-xr-x | initrd/initrd-stuff/init | 2 |
4 files changed, 17 insertions, 3 deletions
diff --git a/initrd/initrd-stuff/bin/servconfig b/initrd/initrd-stuff/bin/servconfig index 7f7b419d..13d9ed3c 100755 --- a/initrd/initrd-stuff/bin/servconfig +++ b/initrd/initrd-stuff/bin/servconfig @@ -63,7 +63,10 @@ fi localization $country ####################################################################### -# setup passwd and shadow for local system users +# setup passwd and shadow for local system users like root, bin, daemon +# ... +basepasswd +extpasswd ####################################################################### # dns and ip configuration 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 () { diff --git a/initrd/initrd-stuff/etc/machine-setup b/initrd/initrd-stuff/etc/machine-setup index d9205997..35dc5a9c 100644 --- a/initrd/initrd-stuff/etc/machine-setup +++ b/initrd/initrd-stuff/etc/machine-setup @@ -6,7 +6,7 @@ # New settings are simply appended, so that they might # overwrite previously defined variables # -# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 30-01-2006 +# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 08-03-2006 # Blabla # Blub # @@ -14,6 +14,8 @@ # # format variable="value" # +# password of system administrator (root) as crypt -> 'dxs-root' +root_pw='$2a$10$MoEYhIPZGCtR62R8UvBl3emNn2qMOuQpLQpfmNnhya4bGLhyF0pbu' ## name service configuration defaults # diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init index 4927081d..b917189e 100755 --- a/initrd/initrd-stuff/init +++ b/initrd/initrd-stuff/init @@ -413,7 +413,7 @@ d_mkbootld close # should be killed if started within init killall -9 dhcpcd dhclient pump 2>/dev/null -bash +#bash # post init for some distro specific postinit |
