sudo works, su doesn't

Ibm / X3650
May 29, 2009 at 08:17:08
Specs: Red Hat Enterprise 4
I know the root password and can ssh directly to the server as root, but what I can't do is ssh to the box as a normal user and su to root (I don't ever like logging on as root). I can 'sudo su root' just fine, but when I try 'su -', I receive 'su: incorrect password' (again, I know the root password just fine).

/etc/sudoers has:
root ALL=(ALL) ALL
%wheel ALL=(ALL) ALL

And /etc/group has:

Any ideas? I have surfed the web high and low, and have found work-arounds, but I would like to determine what the root cause of this behavior.
Thx, UtahTechDad

See More: sudo works, su doesnt

Report •

May 29, 2009 at 11:11:23
This is the Networking forum. This question would be better asked in the Linux or UNIX forums.

Report •

May 29, 2009 at 13:59:30
You shouldn't be able to ssh as root. It is already borked.

You have confused a group named wheel and a user named wheel. for example.

"Best Practices", Event viewer, host file, perfmon, antivirus, anti-spyware, Live CD's, backups, are in my top 10

Report •

May 29, 2009 at 14:48:42
You shouldn't be able to ssh as root.

Not sure what you mean here jefro. I do it all the time. Either when logged in as root (ie: shh or when logged in with my normal 'user' level account and I'm connecting to another Linux/UNIX box as root (ie: ssh Both work perfectly fine for me.

Report •

Related Solutions

Ask Question