FS#38739 - [sudo] pam settings for sudo incomplete

Attached to Project: Arch Linux
Opened by Brent Hostetler (bch24) - Friday, 31 January 2014, 03:37 GMT
Last edited by Evangelos Foutras (foutrelis) - Sunday, 09 February 2014, 15:37 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The settings of /etc/pam.d/sudo are incomplete to allow authentication without defaulting to /etc/pam.d/other.

If you change /etc/pam.d/other to default deny then you will get the following error.

$ sudo pacman -Syu
[sudo] password for rking:
sudo: account validation failure, is your account locked?

This can be fixed by changing the following to /etc/pam.d/sudo:

== orig sudo ==

#%PAM-1.0
auth required pam_unix.so
auth required pam_nologin.so


== modified sudo ==

#%PAM-1.0
auth required pam_securetty.so
auth requisite pam_nologin.so
auth include system-local-login
account include system-local-login
session include system-local-login


This allows users to change default other policy to deny such as:

#%PAM-1.0
auth required pam_warn.so
auth required pam_deny.so
account required pam_warn.so
account required pam_deny.so
password required pam_warn.so
password required pam_deny.so
session required pam_warn.so
session required pam_deny.so



Additional info:
* package version(s)

$ pacman -Qi pambase
Name : pambase
Version : 20130928-1
Description : Base PAM configuration for services
Architecture : any
URL : http://www.archlinux.org
Licenses : GPL
Groups : None
Provides : None
Depends On : None
Optional Deps : None
Required By : pam
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 2.00 KiB
Packager : Thomas Bächler <thomas@archlinux.org>
Build Date : Sat 28 Sep 2013 02:23:48 PM PDT
Install Date : Wed 04 Dec 2013 06:04:21 PM PST
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature


* config and/or log files etc.


Steps to reproduce:

1. change /etc/pam.d/other to default of deny
2. try to use sudo. It does not authenticate.
3. Add system-local-login include to /etc/pam.d/sudo to allow authentication.
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Sunday, 09 February 2014, 15:37 GMT
Reason for closing:  Fixed
Additional comments about closing:  sudo 1.8.9.p5-1
Comment by Evangelos Foutras (foutrelis) - Thursday, 06 February 2014, 16:21 GMT
The etc/pam.d/sudo file in sudo-1.8.9.p5-1 (currently in [testing]) now contains the following:

#%PAM-1.0
auth include system-auth
account include system-auth
session include system-auth

This should work well enough and address the issue at hand.

Loading...