PAM 24 June 2023, 07:47:29 (Trying to su to root on laptop) "su: Authentication service cannot retrieve authentication info" so I added to su in /etc/pam.d: "auth sufficient pam_succeed_if.so user ingroup admin"which group I had created as root and user is member, but same message. Do I have to put user in sudoers.d? Trying to understand PAM. Any advice deeply appreciated. Quote Selected Last Edit: 25 June 2023, 20:16:03 by Hitman
Re: PAM Reply #1 – 24 June 2023, 08:00:34 Quote from: JHendry – on 24 June 2023, 07:47:29 Any advice deeply appreciated.What about:Code: [Select]sudo -i Quote Selected
sudo Reply #2 – 24 June 2023, 10:22:10 Thanks, lq, probably good solution. In fact I'm worried whether my PAM is ok. I looked at sudo and not being a vim aficionado, set an environment variable SUDO_EDITOR to nano. Maybe no need. A few configuration things sounded like yesterday's solution and I got syntax errors using visudo so I might stick to PAM. Heaven knows PAM syntax is far from intuitive either. Quote Selected
PAM Reply #3 – 25 June 2023, 05:20:24 Has anyone had the message "Authentication service cannot retrieve authentication info"? What do I have to do to fix PAM? Quote Selected
PAM Reply #5 – 26 June 2023, 07:09:53 If anyone could shed some light on "Authentication service cannot retrieve authentication info", I'd be most obliged. Also how to delete a thread I started. Quote Selected Last Edit: 26 June 2023, 13:54:58 by JHendry
PAM Reply #6 – 26 June 2023, 08:56:46 Would PAM be affected if I changed the owner:group of PAM files from root:root to root:admin and perm to 775 so other admins can administer it? Only 1 laptop, not a commercial enterprise at all. Quote Selected
PAM, sudo Reply #7 – 26 June 2023, 09:36:58 Just for interest and because I have a problem with PAM at the moment and because someone suggested I use sudo, PAM and sudo are compatible, right? It's not the case that sudo is an older solution and PAM a better one. Old is not necessarily rusty, is it, and I daresay the interface using visudo has stood the test of time. I suppose I wonder which packages are maintained and which aren't and how to find out. Quote Selected Last Edit: 26 June 2023, 09:56:02 by JHendry
Re: PAM, sudo Reply #8 – 26 June 2023, 23:21:01 Sudo already depends on PAM for a long time, if you want to bypass that run Code: [Select]su -c 'command'@JHendry I merged all of your past four threads, to delete one go to More - Remove.Your current issue is about "Authentication service cannot retrieve authentication info", did this happen after modifying what exactly, /etc/sudoers or something else? Quote Selected Last Edit: 26 June 2023, 23:30:18 by Hitman
PAM Reply #9 – 27 June 2023, 05:07:47 Thx for combining thread, hitman, problem persists. I get the error attempting su from another user. Other user is in admin group with root. Most of my files were installed with owner:group root:root. I used chgrp to make them root:admin and permission 775. This is so I can administer the system as the other user and perform one task in particular (install LFS). Btw "more.." doesn't offer me "remove". Quote Selected Last Edit: 27 June 2023, 05:35:42 by JHendry
Re: PAM Reply #10 – 27 June 2023, 05:13:42 Quote from: JHendry – on 26 June 2023, 09:36:58... and because someone suggested I use sudo, ...lolRTFM:https://wiki.archlinux.org/title/Sudo Quote Selected
sudo Reply #11 – 27 June 2023, 05:43:11 Pardon my ignorance of sudo, lq, and thx for the link. I see it has advantages over su but can't I do without both by appropriate groups and PAM files? Quote Selected
Re: PAM Reply #12 – 29 June 2023, 12:04:28 Quote from: JHendry – on 26 June 2023, 09:36:58Just for interest and because I have a problem with PAM at the moment and because someone suggested I use sudo, PAM and sudo are compatible, right? It's not the case that sudo is an older solution and PAM a better one. Old is not necessarily rusty, is it, and I daresay the interface using visudo has stood the test of time. I suppose I wonder which packages are maintained and which aren't and how to find out.how can you use sudo without pam? https://www.redhat.com/sysadmin/pluggable-authentication-modules-pampam has been the authenication agent for Linux for maybe decades. Quote Selected
Re: PAM Reply #13 – 16 July 2023, 02:00:14 I don't want to use sudo without PAM, mtbrklyn, I want PAM in working order. The error message "authentication service cannot retrieve authentication info" suggests it may not be. So I wondered if I had mucked up the permissions. Quote Selected
Re: PAM Reply #14 – 08 August 2023, 14:28:01 Quote from: JHendry – on 16 July 2023, 02:00:14 I don't want to use sudo without PAM, mtbrklyn, I want PAM in working order. The error message "authentication service cannot retrieve authentication info" suggests it may not be. So I wondered if I had mucked up the permissions.It suggests to me you don't have a root user in /etc/passwd or something like that. It says it can't find it, not that it is not working.It can't be you have no root user. Quote Selected