(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



uw7 root privileges sudu asroot


What is this stuff?

If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):



From: Roberto Zini <r.zini@strhold.it>
Subject: Re: system shutdown by regular users - asroot won't do it
Date: Tue, 24 Jul 2001 18:18:50 +0200
References: <9jje47$fhu$06$1@news.t-online.com> <tlqvco2otthb94@corp.supernews.com> <9jk2nc$iul$05$1@news.t-online.com> 

Jochen Hartmann wrote:
> 
> Hi,
> 
> unfortunately, the asroot command (which I used with Open Server) is no
> longer available on UnixWare 7, so that didn't help. Thanks anyway, and
> maybe there are other suggestions around.
> 
> Jochen

Well, we don't like "asroot" under UnixWare7 :-) but we do
like alternative commands such as tfadmin, adminrole and
things.



See the following excerpts from Matt Schalit's FAQ (keep up
the good work pal !) 

=== cut here === 8< ===

  6.4   What are privileges?
  7 Dec 1999
  --------------------------------------
   Users need to be granted the privilege to run important system commands
   like kill, shutdown, and ifconfig.  Privileges are an additional way, 
   besides permissions, to control who can run sensitive commands like 
   shutdown and ifconfig.  By using privileges, root can grant the right 
   to run a command or group of commands, rather than give out the root 
   password and telling the user to use su.  When a user has been granted 
   privileges to use a command, they execute that command as if they were
   root, using that command as an argument to the tfadmin command, as in

      /sbin/tfadmin shutdown -g0 -y -i6

   (The system maintains a security privilege database, and it can get 
   corrupted.  Check it by typing /sbin/initprivs and fix it with
   /etc/security/tools/setpriv -x.

   See also Sections (1.15) and (6.6).






  6.5   What are the alternatives to su?  A user needs a privilege.
  25 Oct 1999
  --------------------------------------
   Instead of granting every right by giving out the root password and
   telling someone to use su, we use the tfadmin command and the privilege
   mechanism.  This allows us to grant specific access.




  6.6   How do I use tfadmin, adminuser, and adminrole, instead of su?
  18 Dec 2000
  --------------------------------------
   To use privileges instead of su, we do the following:

      A)  Create a group of commands that a user needs, called a role,
          with the adminrole command
      B)  Assign a user or users to that role with adminuser.
      C)  Then they can execute the commands using tfadmin.

   This is straightforward enough.  The following is an example, where I'll 
   grant the privilege to use 'kill' and 'shutdown' to Yurtle:


   Script started on Mon Oct 25 20:56:10 1999
   # id | awk '{ print $1 " " $2 }'
   UID=0(root) GID=3(sys)
   #
   # /bin/adminrole -n SCRAM
   # /bin/adminrole -a kill:/bin/kill:allprivs SCRAM
   # /bin/adminrole -a shutdown:/sbin/shutdown:allprivs SCRAM
   # /bin/adminuser -n -o SCRAM yurtle
   # 
   # ^D
   
   script done on Mon Oct 25 21:00:45 1999


   That's all there is to it.  Yurtle can kill and shutdown now,
   as long as initprivs returns nothing and they type their command like:

     /sbin/tfadmin shutdown -g0 -y -i0

=== cut here === 8< ===

Kudos to Matt for his work,
Roberto
-- 
---------------------------------------------------------------------
Roberto Zini                                email : r.zini@strhold.it
Technical Support Manager -- Strhold Evolution Division  R.E. (ITALY)
---------------------------------------------------------------------
"Has anybody around here seen an aircraft carrier?"                
        (Pete "Maverick" Mitchell - Top Gun)




Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



Auto FTP Manager

/Bofcusm/1205.html copyright 1997-2004 (various authors) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.



More:
       - OSR5
       - Bofcusm


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress