LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   root password doesn't work when I use sudo ... (https://www.linuxquestions.org/questions/linux-security-4/root-password-doesnt-work-when-i-use-sudo-253160/)

bucovaina78 11-10-2004 05:44 AM

root password doesn't work when I use sudo ...
 
I can use the root password when I type su and then fill out the root password but when I type sudo less /var/log/messages for example, it asks for a password I try 3 times and it says password incorrect, ...

That's kinda strange isn't it?

Thx
Wannes

n0sr 11-10-2004 05:52 AM

Try logging in as root and using the visudo command

This will let you put your user id into the sudoers file.

That should fix your problem.

bucovaina78 11-10-2004 05:54 AM

if I understand it
 
I am going to say who can access the root privileges from the sudo command

n0sr 11-10-2004 05:55 AM

That's exactly right. You can add any user that you want to have access, and the type of acces they can have.

bucovaina78 11-10-2004 06:03 AM

the sudoers manpage
 
I'm reading it but it's some kind of too hard to read for me, I'm a newbie and my mother language is not English so, ... I'm gonna try to find a howto on the Internet. Anyway many thanx.


Wannes

chort 11-10-2004 02:50 PM

wannessmet, the password that sudo needs is the user's password, not root's password. That's the whole point of using sudo: You don't have to give the root password to users. So if you're logged in as user "wannessmet" and you execute the sudo command, you would supply the password required for "wannessmet", not for "root".

Of course, you first have to setup the sudoers file by using the visudo command (as root).


All times are GMT -5. The time now is 05:04 AM.