LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-24-2020, 04:45 PM   #1
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware, Proxmox, Debian, CentOS
Posts: 1,519

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
Possible new behavior with PAM and utils-linux


I do not have a PAM enabled Slackware Current test environment. I am hoping others can answer my questions.

At work I am testing Debian 10. There are two notable changes with the su command.

One change is explained here. Please browse the linked bug report to further understand the change.

Another change is as root, when executing su - some_user_name, there now is a prompt to provide the user's password. An odd request for the root account. A little digging seems to indicate that using su in that manner now is discouraged and instead the runuser command should be used. I looked at the PAM enabled util-linux package and there is a new runuser command.

Does Slackware with PAM inherit these same two new behaviors?

I am only curious. I am not asking for a debate or a fuster cluck discussion.

Thanks again.
 
Old 03-24-2020, 05:19 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,921

Rep: Reputation: 6591Reputation: 6591Reputation: 6591Reputation: 6591Reputation: 6591Reputation: 6591Reputation: 6591Reputation: 6591Reputation: 6591Reputation: 6591Reputation: 6591
Quote:
Originally Posted by upnort View Post
Another change is as root, when executing su - some_user_name, there now is a prompt to provide the user's password. An odd request for the root account.
Slackware's 'su' can do that too, no PAM needed. Read "man suauth".
 
1 members found this post helpful.
Old 03-24-2020, 11:34 PM   #3
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 1,885

Rep: Reputation: 6080Reputation: 6080Reputation: 6080Reputation: 6080Reputation: 6080Reputation: 6080Reputation: 6080Reputation: 6080Reputation: 6080Reputation: 6080Reputation: 6080
Quote:
Originally Posted by upnort View Post
Does Slackware with PAM inherit these same two new behaviors?
I'd have to do some research on the first one. As far as "su - <someuser>", it works the same as it always did.
 
2 members found this post helpful.
Old 03-25-2020, 09:55 PM   #4
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware, Proxmox, Debian, CentOS
Posts: 1,519

Original Poster
Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
Update:

Regarding su - some_user_name, that was PEBKAC. In my Debian 10 test system I inadvertently deleted /etc/pam.d/su-l. Restoring the file restored the expected behavior. Specifically, losing the auth include su directive cause the described behavior. The Current PAM util-linux package contains the su-l file so all should be well with that.

Sorry for the noise on that one.

Still trying to work around the new su - behavior that drops environment variables.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/etc/pam.d/system-auth-ac vs. /etc/pam.d/password-auth-ac vs. /etc/pam.d/sshd christr Red Hat 2 08-01-2014 07:08 PM
pam-ldap and pam-mysql gangadhar402 Linux - Software 2 03-09-2013 04:50 AM
Linux PAM:How can the PAM operation be logged?? ono1331 Linux - Newbie 13 06-30-2010 12:51 PM
Help with PAM and PAM modules bourne Linux - Security 6 11-02-2008 11:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration