wok-current rev 12174

ppp: only hide Login/pass from users
author Dominique Corbex <domcox@slitaz.org>
date Sat Mar 24 09:29:55 2012 +0100 (2012-03-24)
parents 296261710d4b
children d453f7ff5d70
files ppp/receipt
line diff
     1.1 --- a/ppp/receipt	Fri Mar 23 23:07:23 2012 +0100
     1.2 +++ b/ppp/receipt	Sat Mar 24 09:29:55 2012 +0100
     1.3 @@ -58,12 +58,14 @@
     1.4  	
     1.5  	cp -a $src/scripts/ip-up.local.add $fs/etc/ppp/ip-up
     1.6  	cp -a $src/scripts/ip-down.local.add $fs/etc/ppp/ip-down
     1.7 -	chmod +x $fs/etc/ppp/ip*
     1.8 +	chmod 711 $fs/etc/ppp/ip*
     1.9  
    1.10  	# insert #!/bin/sh  on top line in ip* scripts
    1.11  	sed -i '1i\#!/bin/sh' $fs/etc/ppp/ip*	
    1.12  	# add empty peers dir
    1.13  	mkdir -p $fs/etc/ppp/peers
    1.14 -	# hide data from regular users
    1.15 -	chmod -R go-rwx $fs/etc/ppp/*
    1.16 +	# hide login/pass from regular users
    1.17 +	chmod go-rwx $fs/etc/ppp/*secrets
    1.18 +	chmod go-rwx $fs/etc/ppp/options
    1.19 +	chmod 711 $fs/etc/ppp/scripts/*
    1.20  }