sudo & su
albi at scii.nl
albi at scii.nl
Thu Mar 3 15:04:40 PST 2005
On Thu, 3 Mar 2005 22:47:09 +0000
Pietro Cerutti <pietro.cerutti at gmail.com> wrote:
> 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...
>
see : man sudoers
the timestamp_timeout section
> 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.
more or less, yes
> So what's the purpose of asking for the password of the actually
> logged in user?
with sudo you can allow normal users to do certain things without the
need for sharing the root-password
here are some examples :
http://www.courtesan.com/sudo/man/sudoers.html#examples
More information about the freebsd-questions
mailing list