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 |
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. |
if I understand it
I am going to say who can access the root privileges from the sudo command
|
That's exactly right. You can add any user that you want to have access, and the type of acces they can have.
|
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 |
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. |