You are not logged in.

#1 2013-03-02 19:14:20

Schoewilliam
Member
From: Réunion Island, France.
Registered: 2011-12-28
Posts: 26
Website

[SOLVED] Can't use su from my user account anymore.

Hi,

I have a problem since a few days now. I simply can't authenticate as root with su. It always does :

~ $ su -
Mot de passe : 
su: Échec d'authentification

which would be in english : "su: Authentication failure".
I've searched the web about it, and nothing solves it (including a few fixes concerning permissions on su binary, etc.)

n.b.: $ sudo su - works.

Last edited by Schoewilliam (2013-03-03 06:42:07)


blog (in french) · configs

Offline

#2 2013-03-02 21:22:23

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: [SOLVED] Can't use su from my user account anymore.

Are you sure the password is correct?

Offline

#3 2013-03-02 21:39:03

thesystematic
Member
Registered: 2013-02-08
Posts: 44

Re: [SOLVED] Can't use su from my user account anymore.

sudo takes by default your user password, su takes your root password. i'd suggest trying to change the root password with sudo then checking again to make sure you have the password right. That is, log in to root using sudo and run passwd.

Offline

#4 2013-03-03 05:50:53

Schoewilliam
Member
From: Réunion Island, France.
Registered: 2011-12-28
Posts: 26
Website

Re: [SOLVED] Can't use su from my user account anymore.

Barrucadu wrote:

Are you sure the password is correct?

Of course it is.

sudo takes by default your user password, su takes your root password. i'd suggest trying to change the root password with sudo then checking again to make sure you have the password right. That is, log in to root using sudo and run passwd.

thanks for replying. I'll try when I'll be home, but I don't think it'll change anything because I still can log in as root from tty : doesn't that tell that I have the password right ?
I'll try anyway and post again.

thanks smile

Last edited by Schoewilliam (2013-03-03 05:53:55)


blog (in french) · configs

Offline

#5 2013-03-03 06:11:26

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [SOLVED] Can't use su from my user account anymore.

Schoewilliam wrote:

sudo su - works

That's unimportant, because "su" and "sudo" use are separate applications. "su" uses the root password and "sudo" uses the user password.

Schoewilliam wrote:

I'll try when I'll be home, but I don't think it'll change anything because I still can log in as root from tty : doesn't that tell that I have the password right ?

So, you can become root using "su -" from a TTY terminal (no X) but you can't become root using "su -" from a terminal emulator in X?

Is there a special character in the root password that works correctly in a TTY but not in X?

Offline

#6 2013-03-03 06:34:25

Schoewilliam
Member
From: Réunion Island, France.
Registered: 2011-12-28
Posts: 26
Website

Re: [SOLVED] Can't use su from my user account anymore.

drcouzelis wrote:

So, you can become root using "su -" from a TTY terminal (no X) but you can't become root using "su -" from a terminal emulator in X?

Is there a special character in the root password that works correctly in a TTY but not in X?

No, I can't from both tty and urxvt (I thought I could only from tty, but now as I'm home, I'm seeing that no ; sorry about that.) .

Last edited by Schoewilliam (2013-03-03 06:34:45)


blog (in french) · configs

Offline

#7 2013-03-03 06:38:03

Schoewilliam
Member
From: Réunion Island, France.
Registered: 2011-12-28
Posts: 26
Website

Re: [SOLVED] Can't use su from my user account anymore.

thesystematic wrote:

sudo takes by default your user password, su takes your root password. i'd suggest trying to change the root password with sudo then checking again to make sure you have the password right. That is, log in to root using sudo and run passwd.

Okaaay, this fixed. I thought it would be more a more complex issue Oo. Thank you smile.


blog (in french) · configs

Offline

Board footer

Powered by FluxBB