![](https://seccdn.libravatar.org/avatar/638c5f9b9a41e53d4663197a58261c49.jpg?s=120&d=mm&r=g)
Hello, On Wed, 04 Dec 2019, Carlos E. R. wrote:
#!/bin/bash
find /data/storage_b/cer/Pictures /data/storage_b/cer/Pictures.tmp /data/storage_b/cer/Pictures.astro -type f \ -exec sudo chgrp cer '{}' \; \ -exec sudo chmod u+r+w,g+r+w,o+r-w-x,-t '{}' \; \ -exec sudo setfacl -m g:users:r '{}' \;
With corresponding sudoers file entries:
cer Telcontar = (root) /usr/bin/setfacl -m g\:users\:rx * cer Telcontar = (root) /usr/bin/setfacl -m g\:users\:r * cer Telcontar = (root) /usr/bin/chgrp cer * cer Telcontar = (root) /usr/bin/chmod u+r+w+x\,g+w+x\,o-r-w-x\,+t * cer Telcontar = (root) /usr/bin/chmod u+r+w\,g+r+w\,o+r-w-x\,-t *
Why not use numeric modes here, should be much easier to read: chmod 0660 chmod 1770
sudo script? I thought that was forbidden.
Just use: sudo /bin/bash script HTH, -dnh -- Only wimps use tape backup: _real_ men just upload their important stuff on ftp, and let the rest of the world mirror it ;) -- Linus Torvalds -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org