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??
Show replies by date