X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=permissions.mk;fp=permissions.mk;h=165f3b4af1c437e5604c4d32580b4cba418de81c;hb=2a7dad7f3898b2fb5d1dfae39e79917d10a31c15;hp=0000000000000000000000000000000000000000;hpb=3d9611ed8d0a23cff042ef1f225e0c496fe59912;p=bootimage diff --git a/permissions.mk b/permissions.mk new file mode 100644 index 0000000..165f3b4 --- /dev/null +++ b/permissions.mk @@ -0,0 +1,22 @@ +.PHONY: permissions + +permissions: ${CONFIG} .FORCE + chown -R root:root config_*/ + chmod 0755 config_*/ + -chmod -R a+rX config_*/etc/ + -chmod -R a+rX config_*/var/ + -chmod -R a+rX config_*/lib/ + -chmod -R a+rX config_*/usr/ + -chmod -R a+rX config_*/opt/ + -chmod 0700 config_*/var/lib/polkit-1/ + -chgrp -R 107 config_*/var/spool/cron/crontabs/ + -chmod 1730 config_*/var/spool/cron/crontabs/ + -chmod 0600 config_*/var/spool/cron/crontabs/* + -chmod 0600 config_*/etc/NetworkManager/system-connections/* + -chmod 0750 config_*/root/ + -chmod 0700 config_*/root/.ssh/ + -chmod 0600 config_*/root/.ssh/authorized_keys + -chmod 0750 config_*/home/*/ + -chmod 0700 config_*/home/*/.ssh/ + -chmod 0600 config_*/home/*/.ssh/authorized_keys + -chown 1014:1014 config_*/home/guest