You are not logged in.

#1 2013-07-04 19:08:34

Alligator
Member
Registered: 2013-07-04
Posts: 3

[solved] FAILED to open PAM security session

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

#2 2013-07-04 20:02:32

Alligator
Member
Registered: 2013-07-04
Posts: 3

Re: [solved] FAILED to open PAM security session

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

#3 2013-07-05 02:11:38

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: [solved] FAILED to open PAM security session

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

#4 2013-07-05 10:42:35

Alligator
Member
Registered: 2013-07-04
Posts: 3

Re: [solved] FAILED to open PAM security session

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

#5 2013-07-05 23:23:45

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: [solved] FAILED to open PAM security session

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

Board footer

Powered by FluxBB