LINUX.ORG.RU

История изменений

Исправление vtVitus, (текущая версия) :

Всем привет, подскажите, смешной вопрос но все же, как то юзал опенсузю и там была такая фишка (наверно она раньше когда то во всех линуксах была) - созданный пользователь по которым сам юзер работает к выполнению админских действий непричастен, зато есть нормальный рут пользователь с отдельным паролем, т.е. когда юзер выполняет sudo надо ввести пароль рута

чтоб такой эффект - ввод пароля рута,а не пользователя, был в убунте, надо:

sudo visudo

добавь

Defaults targetpw

targetpw          If set, sudo will prompt for the password of the user specified by the -u option (defaults to root) instead of the password of the invoking user when running a command or editing a file.  Note that this flag precludes the use of a user-ID not listed in the passwd database as an argument to the -u option.  This flag is off by default.

Исходная версия vtVitus, :

sudo visudo

добавь

Defaults targetpw

targetpw          If set, sudo will prompt for the password of the user specified by the -u option (defaults to root) instead of the password of the invoking user when running a command or editing a file.  Note that this flag precludes the use of a user-ID not listed in the passwd database as an argument to the -u option.  This flag is off by default.