Welcome to WebmasterWorld Guest from 3.214.184.124

Forum Moderators: bakedjake

Message Too Old, No Replies

su to root login incorrect

"su" fails from remote connection with ssh

     
4:30 pm on Apr 13, 2006 (gmt 0)

New User

10+ Year Member

joined:Sept 21, 2005
posts:30
votes: 0


Here's my problem: when I log into server remotely, using ssh, I cannot change the user ("su" fails - "su: incorrect password" - I know for sure the password is ok), because I had to reneable RootLogin and it works to login directly as root.

I have tried the directions at [trustix.org...] and that didnt do a bit of good.

5:14 pm on Apr 13, 2006 (gmt 0)

Preferred Member

10+ Year Member

joined:Apr 12, 2005
posts:371
votes: 0


iceman42,

When you log into using the non-root account, if you type `id`, it should show a list of groups you are a member of - is root in that list? If it isn't, then check /etc/group to make sure you added your username to the root group correctly. If it is in the list, then check /etc/pam.d/su. There should be a line like:

auth required /lib/security/pam_wheel.so group=root

If there is a different group, then you should add yourself to that group in /etc/group. Otherwise, try commenting out that line, and see if `su` works then.

Chad

6:43 pm on Apr 13, 2006 (gmt 0)

New User

10+ Year Member

joined:Sept 21, 2005
posts:30
votes: 0


id shows root, admin, wheel
/etc/pam.d/su

auth sufficient /lib/security/$ISA/pam_wheel.so trust group=root
# Uncomment the following line to require a user to be in the "wheel" group.
auth required /lib/security/$ISA/pam_wheel.so group=root

and I still get incorrect password.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members