LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   "su" not requesting password (http://www.linuxquestions.org/questions/slackware-14/su-not-requesting-password-4175428274/)

gezley 09-20-2012 03:32 PM

"su" not requesting password
 
Slackware64 14 RC4

"su" is going straight to root without asking for a password. So far I've tested this in xterm, konsole, and virtual terminals. Is this a bug or have I done something silly? Trouble is, I can't remember what I've done recently that might have caused it.

ReaperX7 09-20-2012 03:37 PM

You DID set a root password, right?

gezley 09-20-2012 03:50 PM

Quote:

Originally Posted by ReaperX7 (Post 4785369)
You DID set a root password, right?

Aha, perhaps that's it. I upgraded as follows: 13.37 -> 14 RC1 -> 14 RC4

I had a user and a root password in 13.37, but perhaps only the user password is carried forward during an upgrade and the root password not? (I tend to do clean installs rather than upgrades so I haven't noticed this before.)

alekow 09-20-2012 03:58 PM

could you show your /etc/sudoers file?

gezley 09-20-2012 04:07 PM

Quote:

Originally Posted by alekow (Post 4785376)
could you show your /etc/sudoers file?

Is sudo relevant to this question?

alekow 09-20-2012 04:59 PM

Quote:

Originally Posted by gezley (Post 4785381)
Is sudo relevant to this question?

Nope, sorry ;-)

Didier Spaier 09-20-2012 06:06 PM

If there is no password entry for root in /etc/shadow I would just use the passwd command to set it.

The /etc package was updated on September 4, so if you don't have a shadow.new file in /etc, chances are you chose to overwrite the old one when asked...

yars 09-20-2012 08:58 PM

Some programs can change the /etc/sudoers file, aading like string:
Code:

ALL (ALL) NOPASSWD: ALL
and then su and sudo do not ask the password. In a my country we have a mobile service provider "Megafon", which produces the program named "MobilePartner". On installing these program in /etc/sudoers will added entered line above.

afreitascs 09-20-2012 09:22 PM

Quote:

Originally Posted by Didier Spaier (Post 4785421)

The /etc package was updated on September 4, so if you don't have a shadow.new file in /etc, chances are you chose to override the old one when asked...

I chose to overwrite and not had this problem.
I have no file shadow.new.

I use Slackware64 current multilib

gezley 09-21-2012 09:38 AM

Thanks one and all for the replies. My fault for not paying attention when upgrading. I do still find it strange, however, that my user password survived the upgrade while root's did not.

yilez 09-21-2012 10:29 AM

Maybe root's password got blanked just in case it went catastrophic. If you can't login a user, at least you could log in as root and reset password. I don't know though. Just a guess.

TobiSGD 09-21-2012 10:32 AM

That is really weird. I have a machine with -current installed. Because of driver issues I reverted it back to 13.37 and later back to -current, but at no time any password was blanked. I assume that this is not a standard behavior.


All times are GMT -5. The time now is 04:15 PM.