From 6b35840508287cc979202dc10e9ba41fe9f162b3 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Tue, 7 Mar 2006 23:53:39 +0000 Subject: generate passwd/shadow from initrd ... git-svn-id: http://svn.openslx.org/svn/openslx/dxs/ld4@94 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initrd/distro-specs/debian/functions-3.1 | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'initrd/distro-specs/debian') diff --git a/initrd/distro-specs/debian/functions-3.1 b/initrd/distro-specs/debian/functions-3.1 index f0446010..cb92ffa2 100644 --- a/initrd/distro-specs/debian/functions-3.1 +++ b/initrd/distro-specs/debian/functions-3.1 @@ -2,13 +2,13 @@ # linux diskless clients (executed within initial # ramdisk after genconfig) # -# Author(s): Dirk von Suchodoletz , 18-01-2006 +# Author(s): Dirk von Suchodoletz , 08-03-2006 # Blabla # Blub # # Copyright: (c) 2006 - RZ Universitaet Freiburg # -# Version: 0.2.1a +# Version: 0.2.1b # distro specific stuff to initialize preinit () { @@ -30,6 +30,17 @@ for i in rc3.d/K$stop$script rc5.d/K$stop$script \ done } +# extended system users +extpasswd () { +echo -e "daemon:x:1:1:daemon:/usr/sbin:/bin/sh\nbin:x:2:2:bin:/bin:\n\ +/bin/sh\nsys:x:3:3:sys:/dev:/bin/sh\nman:x:6:12:man:/var/cache/man:/bin/sh\n\ +sshd:x:100:65534::/var/run/sshd:/bin/false\nnobody:x:65534:65534:nobody:\n\ +/nonexistent:/bin/sh" >> /mnt/etc/passwd +echo -e "daemon:*:13021:0:99999:7:::\nbin:*:13021:0:99999:7:::\n\ +sys:*:13021:0:99999:7:::\nman:*:13021:0:99999:7:::sshd:!:13021:0:99999:7:::\n\ +nobody:*:13021:0:99999:7:::" >> /mnt/etc/shadow +} + # group of functions for the normal runlevels - first parameter is start # second stop # function for ntp configuration @@ -186,6 +197,7 @@ config_xdm () { # configure gdm as display manager config_gdm () { + # gdm user >> passwd echo >/dev/null } -- cgit v1.2.3-55-g7522