Re: difference of opinion re: Sudo and security - 2 approaches

From: Bodo Eggert (7eggert_at_7eggert.dyndns.org)
Date: 09/19/05

  • Next message: base60: "Re: difference of opinion re: Sudo and security - 2 approaches"
    Date: Mon, 19 Sep 2005 20:25:28 +0200
    
    

    Manager <Manager_member@newsguy.com> wrote:

    > The applications group needs the ability to run a few things with higher
    > privileges, e.g. need to be able to start and stop apache, and a number of
    > other things, hence the need for sudo. In the past they have had the root
    > password, and would su to root directly when higher priviledges were required,
    > and then back down to the relevant application account.
    >
    > The systems admin group wants the application group to log onto the machines
    > (apps groups come in on the same subnet which is switched) using named
    > accounts e.g. based on their personal id (e.g. jbrown), then sudo su to the
    > application
    > accounts as required. They have indicated that they wish the only the web
    > account (which owns and runs apache out to the public) to be the only account
    > that can sudo ALL under the concept of least priviledge. The indicate that
    > they are concerned about giving sudo ALL priviledge to the personal accounts
    > for the applications group in case that account is compromised.

    The web account SHOULD NOT be able to sudo to anything but a helper script
    controlled by yourself. Anything else would be too dangerous.

    You can assign a password for a user group (e.g. webmaster). The newgrp
    command will ask for a password if the user is not part of that group and
    provide a shell with access to that group. You can allow only this group to
    e.g.execute sudo /etc/init.d/apache {start,stop}.

    If you do this, the webmasters will still be logged by name but if one
    of their accounts is compromised, it will not grant immediate system
    access. However, if I 0wn3d one of these webmaster accounts, I'd install
    a customized sudo in ~/bin. Using a dedicated webmaster account would still
    be worse since everybody would know the password.

    There's still a problem: What do you do if a webmaster is downsized?
    You'll probably need to put all webmasters into a second group and
    add another group check either to the configuration or to a wrapper script.

    BTW:
    I'm using su1 instead of sudo, mostly because it's easier to find, compile
    and configure su1 than to read the first paragraph of the sudo manual and
    partly because it is much leaner and I had less google hits with
    'exploit su1' than with 'exploit sudo' when I searched for a su tool.

    (With su1, you'll need a non-webmaster group and use
     "refuse *.nowebmaster ...\n allow webmaster ...")

    Since su1 is _very_ hard to find: http://www.canb.auug.org.au/~dbell/

    -- 
    Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF
    verbreiteten Lügen zu sabotieren.
    

  • Next message: base60: "Re: difference of opinion re: Sudo and security - 2 approaches"

    Relevant Pages

    • Re: Which way is correct to implement sudo
      ... Consider finding another systems admin service, ... the other is applications) regarding the best way to set up sudo. ... >back down to the relevant application account. ... >that can sudo ALL under the concept of least priviledge. ...
      (comp.sys.sun.admin)
    • Which way is correct to implement sudo
      ... the other is applications) regarding the best way to set up sudo. ... Solaris servers from a remote location normally They are ... I also have an in-house applications group (again a couple of people - with some ... back down to the relevant application account. ...
      (comp.sys.sun.admin)
    • difference of opinion re: Sudo and security - 2 approaches
      ... the other is applications) regarding the best way to set up sudo. ... Solaris servers from a remote location normally They are ... I also have an in-house applications group (again a couple of people - with some ... back down to the relevant application account. ...
      (comp.security.unix)
    • Re: difference of opinion re: Sudo and security - 2 approaches
      ... > The web account SHOULD NOT be able to sudo to anything but a helper script ... I'd've expected the webadmin role account to be different from the webdata ... > I'm using su1 instead of sudo, mostly because it's easier to find, compile ...
      (comp.security.unix)
    • Re: Easy way/script to add another user like me?
      ... do to give a user sudo privileges is to add them to the admin group. ... I used my root account to add joker to the "admin group" via ...
      (Ubuntu)

    Loading