[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: userhandling



Look at the sudoers file (man sudoers).  It let's you define user
groups and give them access to certain root commands that you specify.
It sounds exactly the type of thing you're looking for.  Once setup
your friend should be able to execute the commands you give him access
to by typing "sudo" before the command.

Example:
sudo shutdown -hp now

Also, you can set it up so that your friend doesn't have to enter a
password to do sudo commands, but it's setup so that he or she would
have to enter their password to be able to do sudo commands.  As you
can see, you wouldn't have to give them the root password.

I hope this helps,

rvb


   > -----Original Message-----
   > From: owner-misc@openbsd.org
   > [mailto:owner-misc@openbsd.org]On Behalf Of
   > rembrandt@rootboard.org
   > Sent: Saturday, February 01, 2003 5:34 PM
   > To: misc@openbsd.org
   > Subject: userhandling
   >
   >
   > I have a server and my friend need root-rights but i
   > wont give him my root-password.
   > Is it possible to add him to a group (like in Win
   > 'Administrator') so that he have the
   > needed rights?
   >
   > I have the follorign groups:
   >
   > wheel kmem sys tty operator staff guest
   >
   > I know 'guest' and 'wheel'.
   > Wheel is for users wich need 'su' (so i understood it).
   > I add him to 'operator' but he hasn't the needed permissions.
   >
   >
   > In wich group should I add him?
   > And what's about the other groups?
   >
   >
   > mfg. Sebastian :)
   > *sorry for any english mistakes :) *