diff options
| -rwxr-xr-x | initrd/initrd-stuff/bin/servconfig | 11 | ||||
| -rw-r--r-- | installer/default_files/machine-setup.default | 5 |
2 files changed, 10 insertions, 6 deletions
diff --git a/initrd/initrd-stuff/bin/servconfig b/initrd/initrd-stuff/bin/servconfig index a4577a97..1e50b6d7 100755 --- a/initrd/initrd-stuff/bin/servconfig +++ b/initrd/initrd-stuff/bin/servconfig @@ -12,7 +12,7 @@ # Copyright: (c) 2006 - RZ Universitaet Freiburg # (c) 2006 - opendiskless.org project # -# Version: 0.1.2b +# Version: 0.1.2c # check for configuration files to source @@ -109,9 +109,12 @@ localization $country ####################################################################### # setup passwd and shadow for local system users like root, bin, daemon -# and nobody ... all other users should be added externally or with the -# corresponding services -basepasswd +# and nobody if no user/admin provided passwd exists ... +# the root password provided by machine-setup is used only if no passwd +# file is provided (default case) +if [ ! -f /rootfs/etc/passwd ] ; then + basepasswd +fi ####################################################################### # dns and ip configuration diff --git a/installer/default_files/machine-setup.default b/installer/default_files/machine-setup.default index 0cc2e707..a98fec97 100644 --- a/installer/default_files/machine-setup.default +++ b/installer/default_files/machine-setup.default @@ -6,13 +6,14 @@ # New settings are simply appended, so that they might # overwrite previously defined variables # -# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 15-08-2006 +# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 16-08-2006 # # Copyright: (c) 2003 - 2006 - RZ Universitaet Freiburg # # # password of system administrator (root) as crypt -> 'dxs-root' -# (will be changed soon) +# (will be changed soon) the password is not used if the admin provides +# a passwd file via extended config tgz root_pw=@@@root_pw@@@ ## name service configuration defaults |
