Re: SU privileges

From: Adams Kevin J (kevin.adams_at_PHS.COM)
Date: 06/24/04

  • Next message: Mills, John T (9814): "Re: switch from full-system partition to lpar"
    Date:         Thu, 24 Jun 2004 11:32:25 -0700
    To: aix-l@Princeton.EDU
    
    

    If you know a userid you want to limit the ability to su too (like root),
    create a group (like suroot), add the users you want to allow to su to root,
    and add the name of the group to the root's SU GROUPS user entry. Now only
    those users in group suroot can su to root. You can use multiple groups this
    way too. You still need to know the password too.

    You can also limit the ability to SU to an account via the user entry
    "Another user can SU TO USER?" set to false. This is all or nothing.

    Another way would be to set an ACL on the su command. You can limit the
    ability to use the command this way.

    SUDO is an excellent tool too, but doesn't limit someone who knows a
    password from SUing.

    Kevin Adams

    PacifiCare Behavioral Health
    3120 Lake Center Drive
    Mail Stop LC01-394
    Santa Ana, CA 92704

    Email: kevin.adams@phs.com
    Work: 714-445-0343
    Fax: 714-445-0475

    -----Original Message-----
    From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
    Jan-Frode Myklebust
    Sent: Thursday, June 24, 2004 5:10 AM
    To: aix-l@Princeton.EDU
    Subject: Re: [aix-l] SU privileges

    On Thu, Jun 24, 2004 at 06:49:06AM -0500, David Zarnoch wrote:
    >
    > How would I set up a group to allow SU privileges?

    To limit that only specific users are allowed to use the 'su' command?
    Then adding these users to group=security and changing the permissions
    on /usr/bin/su should do the trick:

            % ls -ld /usr/bin/su
            -r-sr-xr-x 1 root security 18980 Apr 30 2003 /usr/bin/su
            % chmod 4550 /usr/bin/su
            -r-sr-x--- 1 root security 18980 Apr 30 2003 /usr/bin/su

    > Could I create a group "rootprvl" or would I need to use "sudo"?

    If you want to give a group of users the possibility to run 'su -
    $username' without needing to know the password of $username, then I
    think 'sudo' is the best solution.

      -jf

     (awaiting a flood of vacation messages from misconfigured vacation
      programs from the users on this list)

    This electronic message transmission, including any attachments, contains information from PacifiCare Health Systems Inc. which may be confidential or privileged. The information is intended to be for the use of the individual or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited.
    If you have received this electronic transmission in error, please notify the sender immediately by a "reply to sender only" message and destroy all electronic and hard copies of the communication, including attachments.


  • Next message: Mills, John T (9814): "Re: switch from full-system partition to lpar"

    Relevant Pages

    • Re: SU privileges
      ... If you know a userid you want to limit the ability to su too (like root), ... Another way would be to set an ACL on the su command. ... If you have received this electronic transmission in error, please notify the sender immediately by a "reply to sender only" message and destroy all electronic and hard copies of the communication, including attachments. ...
      (AIX-L)
    • Re: managing su after implementing sudo
      ... If you know a userid you want to limit the ability to su too (like root), ... those users in group suroot can su to root. ... managing 'su' after implementing sudo ...
      (AIX-L)
    • Re: Permissions Question & Re: Permissions advice needed
      ... root has much power. ... where you're giving them exactly one permission: the ability ... to execute one specific read-only command. ...
      (freebsd-questions)
    • Re: Root dir in open file dialog
      ... Then set the flag that disables the ability of the user to ... Unfortunately, this may be overkill. ... directory is a subdirectory of the root, you let it go by, otherwise, you revert to the ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
      (microsoft.public.vc.mfc)
    • Re: [SLE] Multiple Desktops ...How?? [BTW]
      ... > I am not referring to virtual desktops. ... I mean one's ability to log in as ... > root in a new session in the VT. ...
      (SuSE)