sudo & su
pauls at utdallas.edu
Thu Mar 3 13:56:27 PST 2005
--On Thursday, March 03, 2005 09:39:01 PM +0000 Pietro Cerutti
<pietro.cerutti at gmail.com> wrote:
> Hi folks,
> I have to questions:
> 1) I can I tell sudo to ask for a password everytime it's invoked?
Sure. Use visudo to edit /etc/sudoers and set:
root ALL = (ALL) ALL
wheel ALL = (ALL) ALL
If NOPASSWD is in there, take it out.
man (5) sudoers
> 2) how can it be that, after updating root and toor passwords, sudo
> asks for the old root password?
Sudo doesn't ask for *root*'s password. It asks for *your* password. If
you knew root's password, you wouldn't need to use sudo. You could use su.
Paul Schmehl (pauls at utdallas.edu)
Adjunct Information Security Officer
The University of Texas at Dallas
AVIEN Founding Member
More information about the freebsd-questions