You are not logged in.
When assignments Crond returns errors:
# crond -x ext
log_it: (root 7436) PAM ERROR (Cannot make/remove an entry for the specified session)
log_it: (root 7436) FAILED to open PAM security session (Cannot make/remove an entry for the specified session)
Logs is empty.
How to fix it?
Last edited by Alligator (2013-07-05 10:43:01)
Offline
I changed /etc/pam.d/crond:
auth required pam_unix.so
# without the following two lines of work refuses to
auth required pam_nologin.so
auth required pam_rootok.so
auth required pam_env.so
account required pam_access.so
account required pam_unix.so
account required pam_time.so
# session required pam_loginuid.so # with this line does not work
session required pam_limits.so
session required pam_unix.so
session required pam_loginuid.so # if to put this line here - works
and Crond works.
PS: Problem fixed, topic can to close. Thanx.
Last edited by Alligator (2013-07-05 11:19:30)
Offline
Welcome to Arch.
You should not need to do that and it may have security implications.
However, if you consider the topic done, please mark the thread [solved] by editing your original post and tagging the subject line. Thanks.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Maybe it's not very safe, but i don't have servers, external traffic is blocked by a firewall (allowed only established connections) and physical access to the PC is only me. I don't think that someone will be able to exploit this vulnerability.
In any case, i will be grateful if someone offers a better solution.
Offline
Well I think you would have to tell us more about your installation of crond e.g. which package you installed, how you start it, what errors you saw in logs before making those changes etc. All I can say is that it works OK here with the default /etc/pam.d/crond so something must be different about your set up.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline