Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Issues with cron regarding PAM and authentication
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
kaizushi
n00b
n00b


Joined: 22 Sep 2018
Posts: 70

PostPosted: Sun Feb 16, 2020 10:50 pm    Post subject: Issues with cron regarding PAM and authentication Reply with quote

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
View user's profile Send private message
Frautoincnam
Apprentice
Apprentice


Joined: 19 May 2017
Posts: 294

PostPosted: Sun Apr 18, 2021 7:47 pm    Post subject: (SOLVED] Re: Issues with cron regarding PAM and auth Reply with quote

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
View user's profile Send private message
mimosinnet
l33t
l33t


Joined: 10 Aug 2006
Posts: 713
Location: Barcelona, Spain

PostPosted: Mon Mar 18, 2024 8:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum