Re: su command not working within request script

From: Dragan Cvetkovic (me_at_privacy.net)
Date: 03/17/05

  • Next message: carlvh_at_gmail.com: "Apache2 (SOLARIS 10)"
    Date: Thu, 17 Mar 2005 13:42:44 -0500
    
    

    Oscar del Rio <delrio@mie.utoronto.ca> writes:

    > Shekar wrote:
    >
    >> I would like to know if I am thinking on right lines. I would also like
    >> to know if there is an alternate method to determine user's shell by
    >> root.
    >
    > getent passwd username | cut -d: -f7

    But beware of accounts with no shell. E.g.

    % grep nobody4 /etc/passwd
    nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
    % getent passwd nobody4 | cut -d: -f7

    %

    Dragan

    -- 
    Dragan Cvetkovic, 
    To be or not to be is true. G. Boole      No it isn't.  L. E. J. Brouwer
    !!! Sender/From address is bogus. Use reply-to one !!!
    

  • Next message: carlvh_at_gmail.com: "Apache2 (SOLARIS 10)"

    Relevant Pages