View Issue Details

IDProjectCategoryView StatusLast Update
0004929Kali LinuxGeneral Bugpublic2018-08-31 00:35
Reporterninp0 Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionunable to reproduce 
Product Version2018.2 
Summary0004929: su - <user> or sudo su - prompts for root password despite being a sudoer or already root
Description

In a terminal when executing:

su - jenkins
su - psql
su - <arbitrary_user>

a password prompt appears instead of simply logging in as the user and resetting environmental variables. This also occurs when running:

sudo su -

as a regular user. Interestingly enough, running

sudo su

works and logs in as root, however, doesn't reset env variables (as expected since the "-" is missing at the end). I checked /etc/pam.d/su and it contains:

auth sufficient pam_rootok.so

This started happening following an apt full-upgrade from earlier today. Is this behavior reproducible on your end?

Activities

ninp0

ninp0

2018-08-24 21:14

reporter   ~0009522

fwiw, sudo -i works, so this may be a bug in the su command. Running the following:

su -l jenkins

or sudo su -l

results in a password prompt as well.

elwood

elwood

2018-08-31 00:35

reporter   ~0009552

Thank you for your interest in Kali but this bug report is not actionable.
Please read https://kali.training/chapter-6/filing-a-good-bug-report/ first. We
are a small team and we expect you to provide a much more detailed bug report.

Once you have done the necessary research (possibly with the help of the
community on http://forums.kali.org or on IRC #kali-linux on irc.freenode.net),
feel free to re-open this bug with more information or to open a new report.

Issue History

Date Modified Username Field Change
2018-08-24 21:01 ninp0 New Issue
2018-08-24 21:14 ninp0 Note Added: 0009522
2018-08-31 00:35 elwood Status new => closed
2018-08-31 00:35 elwood Resolution open => unable to reproduce
2018-08-31 00:35 elwood Note Added: 0009552