]> git.plutz.net Git - bootimage/blob - permissions.mk
make sure config trees have correct permission
[bootimage] / permissions.mk
1 .PHONY: permissions
2
3 permissions: ${CONFIG} .FORCE                                                                                           
4         chown -R root:root config_*/ 
5         chmod 0755 config_*/
6         -chmod -R a+rX config_*/etc/
7         -chmod -R a+rX config_*/var/
8         -chmod 0700 config_*/var/lib/polkit-1/
9         -chmod 0750 config_*/root/
10         -chmod 0700 config_*/root/.ssh/
11         -chmod 0600 config_*/root/.ssh/authorized_keys
12         -chmod 0750 config_*/home/*/
13         -chmod 0700 config_*/home/*/.ssh/
14         -chmod 0600 config_*/home/*/.ssh/authorized_keys
15         -chgrp -R 107 config_*/var/spool/cron/crontabs/
16         -chmod 1730 config_*/var/spool/cron/crontabs/
17         -chmod 0600 config_*/var/spool/cron/crontabs/*