Page 3 of 3

Re: Unable to sudo

Posted: 2010/06/03 20:21:14
by prince_mallow
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

Re: Unable to sudo

Posted: 2010/06/03 21:40:48
by prince_mallow
Thank you for helping I think my problem may lie here:
[url=https://bugzilla.redhat.com/show_bug.cgi?id=519017]https://bugzilla.redhat.com/show_bug.cgi?id=519017[/url]

Re: Unable to sudo

Posted: 2010/06/04 01:45:05
by pschaff
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]setenforce 0[/code]

Re: Unable to sudo

Posted: 2010/06/04 10:07:29
by pschaff
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?

Re: Unable to sudo

Posted: 2010/06/04 15:25:17
by prince_mallow
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.

Re: Unable to sudo

Posted: 2010/06/10 16:15:30
by prince_mallow
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