You are not logged in.

#1 2005-10-25 05:45:02

AceTheFace
Member
From: Ulm/Germany
Registered: 2005-03-21
Posts: 14

su results in wrong password

Hi,

I can login as root, but after I try to get root-rights in typing "su" I always get "wrong password". But the password is correct.

Here's mine /etc/pam.d/su:

#%PAM-1.0
auth            sufficient      pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth           sufficient      pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
auth            required        pam_wheel.so use_uid
auth            required        pam_unix.so
account         required        pam_unix.so
session         required        pam_unix.so

And here's the output of "id":

uid=501(hanf) gid=100(users) Gruppen=10(wheel),91(video),92(audio),93(optical),96(scanner),100(users),501(hanf),502(burning),503(wwwadmin)

So you see I am in the "wheel"-group. I played a bit with the pam.d/su-file, but nothing helped. Problem begans with the last update I think.

Any hints?

Greets,
Ace

Offline

#2 2005-10-25 21:42:33

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: su results in wrong password

Just to get the obvious out of the way...when you type <code>su</code> and it asks for a password, you're putting in the root password, correct?  I got confused with this at first, since when you use <code>sudo</code> you have to put in your own password, but <code>su</code> requires the actual root password.

Offline

#3 2005-10-25 22:24:38

AceTheFace
Member
From: Ulm/Germany
Registered: 2005-03-21
Posts: 14

Re: su results in wrong password

elasticdog wrote:

Just to get the obvious out of the way...when you type <code>su</code> and it asks for a password, you're putting in the root password, correct?  I got confused with this at first, since when you use <code>sudo</code> you have to put in your own password, but <code>su</code> requires the actual root password.

Yes, I'm typing the correct password the right way.

Greets,
Ace

Offline

#4 2005-11-05 15:34:38

hjorthboggild
Member
From: Denmark
Registered: 2005-11-05
Posts: 89

Re: su results in wrong password

What are the rights on your /bin/su file?

ls -la /bin/su

Offline

#5 2005-11-06 09:40:13

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: su results in wrong password

I think I started having this problem yesterday too sad

Offline

#6 2005-11-06 12:27:54

hjorthboggild
Member
From: Denmark
Registered: 2005-11-05
Posts: 89

Re: su results in wrong password

The rights on my /bin/su file are:

-rwsr-sr-x  1 root root

I also had this problem recently, and then compared the rights on the su file with the rights I had on that file on another computer. I then followingly changed the rights on my su file to what you see above, and it was working again

Offline

#7 2005-11-06 13:49:24

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: su results in wrong password

hmm..my su works fine but has different rights:

-r-sr-xr-x  1 root root  19912 2004-12-16 01:55 su

Offline

Board footer

Powered by FluxBB