another myfacl fix

This commit is contained in:
2018-10-14 22:14:48 +04:00
parent 6b914ec916
commit 15e0697411

View File

@@ -6,9 +6,18 @@ function myfacl {
return 1
fi
setfacl -Rb "${@:2}"
setfacl -Rm "u:${1}:rwX,g:${1}:rwX,o::0" "${@:2}"
setfacl -Rdm "u:${1}:rwX,g:${1}:rwX,o::0" "${@:2}"
chown -R "${1}:${1}" "${@:2}"
chmod -R u=rwX,g=rX,o= "${@:2}"
setfacl -Rb "${@:2}"
setfacl -Rm "\
user:${1}:rwX,\
default:user:${1}:rwX,\
group:${1}:rX,\
default:group:${1}:rX,\
other::0,\
default:other::0\
" "${@:2}"
}
function is_local {
@@ -173,6 +182,8 @@ function rsync2 {
--stats \
--verbose \
--links \
--no-perms \
--chmod=ugo=rwX \
"${(@)@}"
}