-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I wrote a little script to change group owner and permissions of my photo tree: #!/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 * The script works, but there is a nuisance side effect on syslog: thousands of photos, so several times as many long entries: <10.6> 2019-12-04 22:53:10 Telcontar sudo - - - pam_unix(sudo:session): session opened for user root by (uid=0) <10.6> 2019-12-04 22:53:10 Telcontar sudo - - - pam_unix(sudo:session): session closed for user root <4.5> 2019-12-04 22:53:10 Telcontar sudo - - - cer : TTY=pts/83 ; PWD=/data/storage_b/cer ; USER=root ; COMMAND=/usr/bin/chgrp cer /data/storage_b/cer/Pictures/2016/08/DSC_1403.JPG <10.6> 2019-12-04 22:53:10 Telcontar sudo - - - pam_unix(sudo:session): session opened for user root by (uid=0) <10.6> 2019-12-04 22:53:10 Telcontar sudo - - - pam_unix(sudo:session): session closed for user root <4.5> 2019-12-04 22:53:10 Telcontar sudo - - - cer : TTY=pts/83 ; PWD=/data/storage_b/cer ; USER=root ; COMMAND=/usr/bin/chmod u+r+w,g+r+w,o+r-w-x,-t /data/storage_b/cer/Pictures/2016/08/DSC_1403.JPG <10.6> 2019-12-04 22:53:10 Telcontar sudo - - - pam_unix(sudo:session): session opened for user root by (uid=0) <10.6> 2019-12-04 22:53:10 Telcontar sudo - - - pam_unix(sudo:session): session closed for user root <4.5> 2019-12-04 22:53:10 Telcontar sudo - - - cer : TTY=pts/83 ; PWD=/data/storage_b/cer ; USER=root ; COMMAND=/usr/bin/setfacl -m g:users:r /data/storage_b/cer/Pictures/2016/08/DSC_1403.JPG <10.6> 2019-12-04 22:53:10 Telcontar sudo - - - pam_unix(sudo:session): session opened for user root by (uid=0) <10.6> 2019-12-04 22:53:10 Telcontar sudo - - - pam_unix(sudo:session): session closed for user root This spams my log file and makes the script much slower. Ideas? I can of course run the script directly as root. sudo find? With a loooong sudoers line, more "dangerous" when I put the '*' somewhere - I can't put the entire script. sudo script? I thought that was forbidden. I can not try anything now, the script has not finished... - -- Cheers Carlos E. R. (from 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXegr/xwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVls8Anjp0Nq2+1ZUGf/zDkOtb zpeycaldAKCDajGo5hQkExItb39y5y2IeoT/oA== =SnEm -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org