cifs (autofs) access denied to script when running from cron or systemd timer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux