Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 722736 - app-admin/sudo-1.9.0 needs /etc/pam.d/sudo-i to allow `sudo -i`
Summary: app-admin/sudo-1.9.0 needs /etc/pam.d/sudo-i to allow `sudo -i`
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-12 17:08 UTC by Dennis Schridde
Modified: 2020-05-12 17:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2020-05-12 17:08:12 UTC
When executing `sudo -i` with app-admin/sudo-1.9.0, I see:
```
# sudo -i
sudo: account validation failure, is your account locked?
```

stracing it gives me:
```
...
stat("/etc/pam.d", {st_mode=S_IFDIR|0755, st_size=654, ...}) = 0
openat(AT_FDCWD, "/etc/pam.d/sudo-i", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/pam.d/sudo-i", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/pam.d/other", O_RDONLY) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=128, ...}) = 0
read(6, "auth       required\tpam_deny.so\n"..., 4096) = 128
openat(AT_FDCWD, "/lib64/security/pam_deny.so", O_RDONLY|O_CLOEXEC) = 7
...
```

After copying /etc/pam.d/sudo to /etc/pam.d/sudo-i `sudo -i` works again.
Comment 1 Larry the Git Cow gentoo-dev 2020-05-12 17:17:35 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba3a21f38848625a068afa30ec8e0f250985cc99

commit ba3a21f38848625a068afa30ec8e0f250985cc99
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2020-05-12 17:17:13 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2020-05-12 17:17:29 +0000

    app-admin/sudo: Revbump to add /etc/pam.d/sudo-i
    
    Reported-by: Dennis Schridde <devurandom@gmx.net>
    Closes: https://bugs.gentoo.org/722736
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 app-admin/sudo/{sudo-1.9.0.ebuild => sudo-1.9.0-r1.ebuild} | 1 +
 1 file changed, 1 insertion(+)