add target to set user-perms
This commit is contained in:
parent
25ba80671f
commit
5593dd0433
6
Makefile
6
Makefile
@ -29,6 +29,12 @@ save-perms: ## Saves the file permissions to ./acl. Run this after adding new f
|
|||||||
set-perms: ## Restores permissions of all files from ./acl
|
set-perms: ## Restores permissions of all files from ./acl
|
||||||
sudo setfacl --restore acl
|
sudo setfacl --restore acl
|
||||||
|
|
||||||
|
# TODO: Remove glob
|
||||||
|
.PHONY: user-perms
|
||||||
|
user-perms: ## Grant running user all permissions. Need for git operations. Does not get copied to real filesystem
|
||||||
|
find root -type f | xargs sudo setfacl -m "u:${USER}:r"
|
||||||
|
find root -type d | xargs sudo setfacl -m "u:${USER}:rwx"
|
||||||
|
|
||||||
.PHONY: skel
|
.PHONY: skel
|
||||||
skel: ## Creates common directories needed
|
skel: ## Creates common directories needed
|
||||||
mkdir -p root/etc/
|
mkdir -p root/etc/
|
||||||
|
Loading…
Reference in New Issue
Block a user