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
Unable to sudo
-
- Posts: 14
- Joined: 2010/06/02 19:58:51
Re: Unable to sudo
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]
[url=https://bugzilla.redhat.com/show_bug.cgi?id=519017]https://bugzilla.redhat.com/show_bug.cgi?id=519017[/url]
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: Unable to sudo
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]
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: Unable to sudo
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?
-
- Posts: 14
- Joined: 2010/06/02 19:58:51
Re: Unable to sudo
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.
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.
-
- Posts: 14
- Joined: 2010/06/02 19:58:51
Re: Unable to sudo
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
I did all the steps I did before and I was able to log in successfully and issue a sudo command