LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Sudo no password (https://www.linuxquestions.org/questions/linux-newbie-8/sudo-no-password-882276/)

musiqdefunk 05-23-2011 10:35 AM

Sudo no password
 
I have an old server running RHEL 5.5 and I normally just type sudo nothing else and I'm instantly root. I copied my sudoers file from here to a new server but it seems not to work cause I type sudo and it ask for usage. Is something else besides the sudoers file that prevents me from logging in with sudo only, thanks.

AlucardZero 05-23-2011 10:41 AM

you need to run "sudo -i" or "sudo -s" or "sudo su -"

musiqdefunk 05-23-2011 10:56 AM

That is strange cause on my old server I literally only type "sudo" and I automatically am root.

TobiSGD 05-23-2011 11:03 AM

May be you have set up an alias for sudo. By the way, it is very bad for the security of the server to have a passwordless sudo.

musiqdefunk 05-23-2011 11:29 AM

I understand the circumstances, its a closed development network, I'll keep poking around to see if I can duplicate what I did before. I'll post it on here in case any one wants to know, thanks.

AlucardZero 05-23-2011 12:06 PM

alias sudo="sudo -i"


All times are GMT -5. The time now is 10:45 AM.