Perl script deletes/recreates an hierarchy over SMB via an autofs mount point 
using CIFS.
Credentials used in the autofs map are for a generic shared user with a 
password that doesn't need to be changed periodically.

On a Fedora 34 system nightly updated (except kernel),
- Script works fine when running as a regular user, from the command shell/zsh.
- Script fails with "permission denied" when running from the same user's cron 
or from a systemd user timer, when attempting a system("rm -rf <dir>"), or 
alternatively using Find::File's rmtree, on several explicit full 
/mount/point/path/to/file, thus it is trying to do the rm and there isn't a 
problem with paths when running the script from cron/systemd.

On a RHEL7 system, only updated with CentOS or EPEL packages where needed, it 
works both from the command line or cron (didn't try systemd).
What extra permissions/configuration are needed to make it work on Fedora 34??

_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to