From owner-freebsd-questions@FreeBSD.ORG Thu Mar 3 22:47:11 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 3A78016A4CE for ; Thu, 3 Mar 2005 22:47:11 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDFCD43D31 for ; Thu, 3 Mar 2005 22:47:10 +0000 (GMT) (envelope-from pietro.cerutti@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so481769rng for ; Thu, 03 Mar 2005 14:47:10 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=PMegJc7as3qVxxz2Z5s4vK/V86YNQlFzZk76P05jJX7mXloOQg2sggnCpO0Z35fRZaQEIkdl7o6r/jDr9Kb/c29lFmh8AAaz3potYIu5cnWXbZ/07oaGssULU0DvwULG3n9GQIM2/wKZ9PxzSy8LNa5yx8PWfiLNHKboWzrWZjs= Received: by 10.38.24.59 with SMTP id 59mr166229rnx; Thu, 03 Mar 2005 14:47:09 -0800 (PST) Received: by 10.38.13.13 with HTTP; Thu, 3 Mar 2005 14:47:09 -0800 (PST) Message-ID: Date: Thu, 3 Mar 2005 22:47:09 +0000 From: Pietro Cerutti To: Paul Schmehl In-Reply-To: <2F1BC4E1DAFE0EE0733135BA@utd49554.utdallas.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <2F1BC4E1DAFE0EE0733135BA@utd49554.utdallas.edu> cc: FreeBSD Subject: Re: sudo & su X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Pietro Cerutti List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2005 22:47:11 -0000 On Thu, 03 Mar 2005 15:56:26 -0600, Paul Schmehl wrote: > 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. There isn't any NOPASSWD, but if I give the password the first time, sudo doesn't ask for it anymore in the next 5 min or so... > 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. I think I really misunderstood the purpose of sudo. I thought that it was used to automatically login as root, give a command, and log back out to user who invoked the command. So what's the purpose of asking for the password of the actually logged in user? Thank you -- Pietro "Piter" Cerutti Beansidhe - SwiSS Death / Thrash Metal Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming or what?"