Страница 1 из 1

sudo doesn't work

Добавлено: 26 фев 2006, 14:37
SVladimirI
Hi All,

Does domebody know why I have sudo command not working in my Mandiva 2006 ?

When I try something like 'sudo ls' I see prompt for the pasword. I enter the password (it's absolutelly correct), but the util says 'Sorry, try again'.
And I see 'sudo: 3 incorrect password attempts' after third try.

But the password is correct.

So I have to use 'su' instead of 'sudo' which is not very convinient.

I suppose I haven't just setup something, but what ?

Will appreciate any kind of help !

Добавлено: 26 фев 2006, 15:36
Llama
SVladimirI, you should read man sudoers and edit sudo config with visudo. If you don't like VI/VIM, you should export EDITOR varible to use diffrent editor - like EDITOR=nano visudo

Добавлено: 26 фев 2006, 15:56
kif0rt
You should add this string in the end of /etc/sudoers :

Код: Выделить всё

<your_login>   ALL=NOPASSWD: ALL

Добавлено: 26 фев 2006, 16:54
SVladimirI
Thanks !
That helped.

Now I'm going to read 'man sudo' and make it asking the password before executing a command.

Thanks again.

Добавлено: 26 фев 2006, 17:29
Llama
<your_login> ALL=(ALL) ALL