From owner-freebsd-questions@FreeBSD.ORG Thu Mar 3 21:56:27 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4201C16A4CF for ; Thu, 3 Mar 2005 21:56:27 +0000 (GMT) Received: from smtp1.utdallas.edu (smtp1.utdallas.edu [129.110.10.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0141243D2D for ; Thu, 3 Mar 2005 21:56:26 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from utd49554 (utd49554.utdallas.edu [129.110.3.85]) by smtp1.utdallas.edu (Postfix) with ESMTP id 9E530388CED; Thu, 3 Mar 2005 15:56:26 -0600 (CST) Date: Thu, 03 Mar 2005 15:56:26 -0600 From: Paul Schmehl To: Pietro Cerutti , FreeBSD Message-ID: <2F1BC4E1DAFE0EE0733135BA@utd49554.utdallas.edu> In-Reply-To: References: X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: sudo & su X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Paul Schmehl List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2005 21:56:27 -0000 --On Thursday, March 03, 2005 09:39:01 PM +0000 Pietro Cerutti 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