Date: Thu, 3 Mar 2005 22:47:09 +0000 From: Pietro Cerutti <pietro.cerutti@gmail.com> To: Paul Schmehl <pauls@utdallas.edu> Cc: FreeBSD <freebsd-questions@freebsd.org> Subject: Re: sudo & su Message-ID: <e572718c05030314475384d7e3@mail.gmail.com> In-Reply-To: <2F1BC4E1DAFE0EE0733135BA@utd49554.utdallas.edu> References: <e572718c05030313394a3bb5f0@mail.gmail.com> <2F1BC4E1DAFE0EE0733135BA@utd49554.utdallas.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 03 Mar 2005 15:56:26 -0600, Paul Schmehl <pauls@utdallas.edu> 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 <pietro.cerutti@gmail.com> <piter@beansidhe.ch> Beansidhe - SwiSS Death / Thrash Metal <www.beansidhe.ch> Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming or what?"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e572718c05030314475384d7e3>