Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Mar 2005 15:56:26 -0600
From:      Paul Schmehl <pauls@utdallas.edu>
To:        Pietro Cerutti <pietro.cerutti@gmail.com>, FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: sudo & su
Message-ID:  <2F1BC4E1DAFE0EE0733135BA@utd49554.utdallas.edu>
In-Reply-To: <e572718c05030313394a3bb5f0@mail.gmail.com>
References:  <e572718c05030313394a3bb5f0@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--On Thursday, March 03, 2005 09:39:01 PM +0000 Pietro Cerutti 
<pietro.cerutti@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@utdallas.edu)
Adjunct Information Security Officer
The University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2F1BC4E1DAFE0EE0733135BA>