Re: (mis)using RBAC...

From: Darren J Moffat (Darren.Moffat_at_Sun.COM)
Date: 04/14/05

  • Next message: Glenn M. Brunette, Jr.: "Re: (mis)using RBAC..."
    To: Jonathan Katz <jonathan.katz@gmail.com>
    Date: Thu, 14 Apr 2005 14:12:09 -0700
    
    

    On Tue, 2005-04-12 at 12:19, Jonathan Katz wrote:

    > 3) I then added the role to my account on the server in /etc/user_attr:
    > jkatz::::type=normal;profiles=Web Administration,Basic Solaris User

    Correction you added the profile to your account. You haven't
    yet created a role.

    A role is a shared account that has its own uid/gid/home dir
    etc. The only real difference between a role and an normal user
    account is that roles can not directly login to the system - the
    pam_roles.so.1 module enforces this.

    My general guidance is if you would normally have a shared
    account a role is the correct way to do this. For example the
    oracle account would IMO always be a role.

    root is best though of (and can actually be) a role - ie it isn't
    a real person.

    > 4) Finally, I changed my shell to /bin/pfcsh. Now, with my regular
    > user account I can start and restart our webservers.
    >
    > My questions are, is this a normal practice (are there other people
    > doing it) and is it supported? What unintended consequences am I
    > missing? I understand that if a user's account is compromised, the
    > webserver services can be stopped and started at-will. I also
    > understand that our sysadmin group will be restricted to using
    > pfcsh/pfksh/pfsh and cannot use bash or tcsh (although we can still
    > leave those set, type 'exec pfsh' and then do what we need to do as
    > the Profile.)

    Or they can do this:

    tcsh% pfexec /opt/app/iplanet/https-myserver/start

    It really depends on what you are trying to achieve wither roles
    or direct profile assignment is best. To take a different example,
    I would assign the Printer Management profile directly to users
    rather than making lp a role and giving users the ability to become
    the lp user.

    In order to address your particular example, is the web content
    intended to be updatable by the same people that can restart the
    server ? If so maybe the content (but NOT the server binaries)
    should be owned by a role and the role given the ability to
    restart the service. The actions would then be:

    jkatz% su webservd
    webservd% vi index.html
    webservd% /opt/app/iplanet/https-myserver/start

    Now having said all of that..... if this is just about restarting
    services then there is a better way in Solaris 10 via SMF. Each
    SMF service can have associated with it an RBAC authorisation that
    allows a user the ability to restart the service, you don't need
    pfexec or pf*sh to do this since svc.startd checks the authorisations
    and the user just needs to run svcadm(1m).

    See: service_bundle(4), smf_security(5), svcadm(1m)

    -- 
    Darren J Moffat
    

  • Next message: Glenn M. Brunette, Jr.: "Re: (mis)using RBAC..."

    Relevant Pages

    • Re: 1 Notebook unable to log in
      ... NETDOM RESETPWD Resets the machine account password for the domain ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ... | need to migrate their old domain profile [favorites, My Documents, ...
      (microsoft.public.windows.server.sbs)
    • Re: MSN Dial Up Wiped Out Mysteriously
      ... | a corrupted profile can produce all the symptoms I mentioned. ... | to somehow create a new account, move things over from the corrupt ... | then eliminate the corrupt account. ... | dialogue box and click on "Properties" nothing comes up or happens. ...
      (microsoft.public.win2000.general)
    • Re: Outlook 2003 and XP SP2
      ... profile, ... You can only have one exchange account ... Diane Poremsky [MVP - Outlook] ... Outlook & Exchange Solutions Center: http://www.slipstick.com ...
      (microsoft.public.office.setup)
    • Re: Unable to delete user profile folder using default Admin. acco
      ... I recognize that this isn't Microsoft Tech Support. ... about removing this pesky little profile folder and I'm done. ... the second account's original profile folder is giving me ... It appeared to have been deleted like the first account when I ...
      (microsoft.public.windowsxp.help_and_support)
    • Re: Help with configuration
      ... option cleared on the RDP-tcp connection Client properties tab for "Use ... If I do NOT specify a roaming profile path, do I still need to enable ... Users should logon to the workstation using their domain account ... Your GPO settings do not apply to your Terminal Server. ...
      (microsoft.public.windows.terminal_services)