ssfs rev 63
ssfs-server: we dont need shadow files in chroot and add/del user from chroot /etc/group
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Jun 12 23:18:04 2011 +0200 (2011-06-12) |
parents | 9e10fc3abd71 |
children | 09b765c4e000 |
files | ssfs-server |
line diff
1.1 --- a/ssfs-server Sun Jun 12 23:13:14 2011 +0200 1.2 +++ b/ssfs-server Sun Jun 12 23:18:04 2011 +0200 1.3 @@ -193,6 +193,7 @@ 1.4 if ! grep -q ^$login: $root/etc/passwd; then 1.5 echo "$login:x:$id:$id:Ssfs User:/home/$login:/bin/sh" >> \ 1.6 $root/etc/passwd 1.7 + echo "$login:x:$id:" >> $root/etc/group 1.8 fi 1.9 1.10 # We don't want any files from /etc/skel. 1.11 @@ -210,6 +211,7 @@ 1.12 user_paths 1.13 gettext -e "\nDeleting user:"; echo -n " $login..." 1.14 sed -i /^$login:/d $root/etc/passwd 1.15 + sed -i /^$login:/d $root/etc/group 1.16 deluser $login || status && status 1.17 gettext "Removing all files in:"; echo -n " $home..." 1.18 rm -rf $home && status 1.19 @@ -268,9 +270,9 @@ 1.20 cp -f /etc/slitaz-release $root/etc 1.21 if [ ! -f "$root/etc/passwd" ]; then 1.22 echo "root:x:0:0:root:/root:/bin/sh" > $root/etc/passwd 1.23 - echo "root::13525:0:99999:7:::" > $root/etc/shadow 1.24 + #echo "root::13525:0:99999:7:::" > $root/etc/shadow 1.25 echo "root:x:0:" > $root/etc/group 1.26 - echo "root:*::" > $root/etc/gshadow 1.27 + #echo "root:*::" > $root/etc/gshadow 1.28 fi 1.29 1.30 # /dev nodes.