LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SUDO not working but SU WORKS (https://www.linuxquestions.org/questions/linux-newbie-8/sudo-not-working-but-su-works-553882/)

jCash 05-14-2007 05:36 PM

SUDO not working but SU WORKS
 
Can anyone tell me why that occuring? Sudo command is not working when I provide the right password, but su works.

thnx.

Brian1 05-14-2007 06:07 PM

I would say sudo is not setup. You have to edit /etc/sudoers file. But to edit that file you have to use the program called visudo. As root type the command ' visudo ' to edit the file. most default sudoers file contain examples as to do what you are after.

Brian

reddazz 05-14-2007 06:10 PM

Quote:

Originally Posted by jCash
Can anyone tell me why that occuring? Sudo command is not working when I provide the right password, but su works.

thnx.

What Linux distribution are you using? Most distros don't use sudo by default (like what Ubuntu does).

chrism01 05-15-2007 02:11 AM

Just in case you (or anyone else reading this) don't already know this, note that sudo asks for YOUR current password, whereas su asks for the TARGET USER'S password ...

Edit; that's the default of course. Think I've seen a mention that you can force sudo to ask for the root passwd every time.


All times are GMT -5. The time now is 06:38 AM.