wok-current rev 895

slitaz-boot-script: post installl comd to change hacker id/group to 1000
author Christophe Lincoln <pankso@slitaz.org>
date Tue Jun 10 16:54:11 2008 +0200 (2008-06-10)
parents f0113f379442
children 13768ad7e79e
files slitaz-boot-scripts/receipt
line diff
     1.1 --- a/slitaz-boot-scripts/receipt	Tue Jun 10 01:31:40 2008 +0200
     1.2 +++ b/slitaz-boot-scripts/receipt	Tue Jun 10 16:54:11 2008 +0200
     1.3 @@ -68,5 +68,12 @@
     1.4  
     1.5  EOT
     1.6  	fi
     1.7 +	# From 2.3 default user have uid=1000 (standard), so change hacker
     1.8 +	# id/group and chown.
     1.9 +	if grep -q "500:500" $root/etc/passwd; then
    1.10 +		sed -i s/'500:500'/'1000:1000'/ $root/etc/passwd
    1.11 +		sed -i s/'500'/'1000'/ $root/etc/group
    1.12 +		chown -R 1000.1000 $root/home/hacker
    1.13 +	fi 
    1.14  }
    1.15