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 return 1
fi fi
setfacl -Rb "${@:2}" chown -R "${1}:${1}" "${@:2}"
setfacl -Rm "u:${1}:rwX,g:${1}:rwX,o::0" "${@:2}" chmod -R u=rwX,g=rX,o= "${@:2}"
setfacl -Rdm "u:${1}:rwX,g:${1}:rwX,o::0" "${@: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 { function is_local {
@@ -173,6 +182,8 @@ function rsync2 {
--stats \ --stats \
--verbose \ --verbose \
--links \ --links \
--no-perms \
--chmod=ugo=rwX \
"${(@)@}" "${(@)@}"
} }