Unable to sudo

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
prince_mallow
Posts: 14
Joined: 2010/06/02 19:58:51

Re: Unable to sudo

Postby prince_mallow » 2010/06/03 20:21:14

Modified /etc/ssh/sshd_config

added to Allow users the userx

This allowed me to log in via ssh as userx via

ssh userx@server

but sudo root returns the same
sorry, try again
3 incorrect password attempts

prince_mallow
Posts: 14
Joined: 2010/06/02 19:58:51

Re: Unable to sudo

Postby prince_mallow » 2010/06/03 21:40:48

Thank you for helping I think my problem may lie here:
https://bugzilla.redhat.com/show_bug.cgi?id=519017

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Unable to sudo

Postby pschaff » 2010/06/04 01:45:05

Since that is an RHEL-5 report and is supposedly closed ERRATA, not sure how it applies to you. Should be easy enough to check as it is an SELinux problem -

Code: Select all

setenforce 0

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Unable to sudo

Postby pschaff » 2010/06/04 10:07:29

Don't know exactly what, but I'm willing to bet that something in your security settings is killing sudo. Any way you can test this on an unmodified 4.8 install?

prince_mallow
Posts: 14
Joined: 2010/06/02 19:58:51

Re: Unable to sudo

Postby prince_mallow » 2010/06/04 15:25:17

I emailed our VPS provider asking him about it and he directed me to a module within the WHM of our server called "Manage Shell Access"

Here it list all the users that were created using the WHM but none of the ones that I created from the shell. There are three options to set Normal Shell, Jailed Shell, and no Shell. So I logged in to the shell using the other accounts and tried to sudo and I got the same errors again.

I'm currently downloading the Centos 4.8 DVD iso and it will take several hours before the download completes itself but I did test it last night on a Ubunto distro (I had the cd available) and the first time I messed up the Sudoers file and rendered it useless, but the second time it worked fine.

prince_mallow
Posts: 14
Joined: 2010/06/02 19:58:51

Re: Unable to sudo

Postby prince_mallow » 2010/06/10 16:15:30

Ok so I installed Sun's Virtual Box and also installed Centos 4.8 Server

I did all the steps I did before and I was able to log in successfully and issue a sudo command


Return to “CentOS 4 - Server Support”

Who is online

Users browsing this forum: No registered users and 2 guests