View previous topic :: View next topic |
Author |
Message |
kaizushi n00b
Joined: 22 Sep 2018 Posts: 70
|
Posted: Sun Feb 16, 2020 10:50 pm Post subject: Issues with cron regarding PAM and authentication |
|
|
I am having issues with cron, where I get this error if I try to edit my crontab...
Code: |
crontab -e
You (kaizushi) are not allowed to access to (crontab) because of pam configuration.
|
The auth.log shows this error:
Code: |
Feb 16 17:48:58 stack unix_chkpwd[4353]: could not obtain user info (kaizushi)
|
I have tried turning off SELinux, and the permissions for /var/spool/crontabs seems fine, for some reason I get that auth error. I can log in fine via SSH, so I am not sure why it is doing this.
pwck -r
Code: |
# pwck -r
pwck: no changes
|
getent passwd kaizushi
Code: |
kaizushi:x:1000:1000::/home/kaizushi:/bin/bash
|
my user in shadow with password omitted:
Code: |
kaizushi:omitted:18308:0:99999:7:::
|
The issue was filecaps and I just needed to reinstall 'pam' to fix things. I loaded a backup which did not have the correct extended attributes. _________________ I cook a delicious onion stew without any chili peppers. |
|
Back to top |
|
|
Frautoincnam Apprentice
Joined: 19 May 2017 Posts: 294
|
Posted: Sun Apr 18, 2021 7:47 pm Post subject: (SOLVED] Re: Issues with cron regarding PAM and auth |
|
|
kaizushi wrote: | The issue was filecaps and I just needed to reinstall 'pam' to fix things. I loaded a backup which did not have the correct extended attributes. |
I had the same problem and your post helped me. Re-emerging pam did the trick.
Thanks |
|
Back to top |
|
|
mimosinnet l33t
Joined: 10 Aug 2006 Posts: 713 Location: Barcelona, Spain
|
Posted: Mon Mar 18, 2024 8:02 pm Post subject: |
|
|
Thanks for the help! I have come across this issue and, after many internet searches, this is the solution. Gentoo rocks! _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved.
Take care of the community answering unanswered posts. |
|
Back to top |
|
|
|