mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-10 02:29:22 +01:00
pass capital X to setfacl in context of directories
This commit is contained in:
parent
5b97061ad0
commit
d23c2a0ad3
7
chmod
7
chmod
@ -32,14 +32,11 @@ chmod -v 600 ~/.ssh/authorized_keys
|
|||||||
# if we have support for setting ACL, some of this becomes easier (although maybe redundant)
|
# if we have support for setting ACL, some of this becomes easier (although maybe redundant)
|
||||||
if hash setfacl 2> /dev/null; then
|
if hash setfacl 2> /dev/null; then
|
||||||
setfacl --modify u:$(id -un):rw,g:$(id -gn):r,o:r ~/.oidentd.conf
|
setfacl --modify u:$(id -un):rw,g:$(id -gn):r,o:r ~/.oidentd.conf
|
||||||
# The execute permission is a bit silly to apply recursively, but it's
|
setfacl --recursive --modify u:$(id -un):rwX,g:$(id -gn):rX,o:rX ~/public_html/
|
||||||
# needed for cd and ls. so perhaps there should be some responsibility
|
|
||||||
# given to others too...
|
|
||||||
setfacl --recursive --modify u:$(id -un):rw,g:$(id -gn):rx,o:rx ~/public_html/
|
|
||||||
|
|
||||||
# Enabling laziness pt. …
|
# Enabling laziness pt. …
|
||||||
if [[ -d ~/.shell-things ]]; then
|
if [[ -d ~/.shell-things ]]; then
|
||||||
setfacl --recursive --modify u:$(id -un):rw,g:$(id -gn):rx,o:rx ~/.shell-things/
|
setfacl --recursive --modify u:$(id -un):rwX,g:$(id -gn):rX,o:rX ~/.shell-things/
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ ExecStart=-/usr/bin/systemctl enable --now chrony.service
|
|||||||
ExecStart=-/usr/bin/systemctl enable --now chronyd.service
|
ExecStart=-/usr/bin/systemctl enable --now chronyd.service
|
||||||
ExecStart=-/usr/bin/systemctl enable --now systemd-oomd.service systemd-oomd.socket
|
ExecStart=-/usr/bin/systemctl enable --now systemd-oomd.service systemd-oomd.socket
|
||||||
ExecStart=-/bin/chown -R root:${LINUXBREWGROUP} /home/linuxbrew -R
|
ExecStart=-/bin/chown -R root:${LINUXBREWGROUP} /home/linuxbrew -R
|
||||||
ExecStart=-/bin/setfacl -R -m g:${LINUXBREWGROUP}:rwx,o:rx /home/linuxbrew
|
ExecStart=-/bin/setfacl -R -m g:${LINUXBREWGROUP}:rwX,o:rX /home/linuxbrew
|
||||||
User=root
|
User=root
|
||||||
StandardOutput=journal
|
StandardOutput=journal
|
||||||
StandardError=journal
|
StandardError=journal
|
||||||
|
Loading…
Reference in New Issue
Block a user