Computing.Net > Forums > Networking > sudo works, su doesn't

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

sudo works, su doesn't

Reply to Message Icon

Name: UtahTechDad
Date: May 29, 2009 at 08:17:08 Pacific
OS: Red Hat Enterprise 4
Product: Ibm / X3650
Subcategory: Servers
Comment:

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:
root:x:0:userx
wheel:x:10:userx

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



Sponsored Link
Ads by Google

Response Number 1
Name: Curt R
Date: May 29, 2009 at 11:11:23 Pacific
Reply:

This is the Networking forum. This question would be better asked in the Linux or UNIX forums.


0

Response Number 2
Name: jefro
Date: May 29, 2009 at 13:59:30 Pacific
Reply:

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.

http://www.sudo.ws/sudo/sample.sudoers for example.

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


0

Response Number 3
Name: Curt R
Date: May 29, 2009 at 14:48:42 Pacific
Reply:

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 xxx.xxx.xxx.xxx) or when logged in with my normal 'user' level account and I'm connecting to another Linux/UNIX box as root (ie: ssh root@xxx.xxx.xxx.xxx) Both work perfectly fine for me.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Lost Toolbar remapping drives



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Networking Forum Home


Sponsored links

Ads by Google


Results for: sudo works, su doesn't

internet works, network doesn't www.computing.net/answers/networking/internet-works-network-doesnt/32128.html

second NIC doesn't work properly www.computing.net/answers/networking/second-nic-doesnt-work-properly/11045.html

Int. Connect. Sharing Wiz doesn't work www.computing.net/answers/networking/int-connect-sharing-wiz-doesnt-work/4776.html