Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Mar 2002 21:49:51 +0100
From:      Nicolas Rachinsky <list@rachinsky.de>
To:        FreeBSD Security <freebsd-security@FreeBSD.ORG>
Subject:   Re: su -c user command not working
Message-ID:  <20020322204951.GB529@pc5.abc>
In-Reply-To: <20020322153657.A3593@mail.slc.edu>
References:  <20020322165816.A561@iib.unsam.edu.ar> <20020322153657.A3593@mail.slc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
* Anthony Schneider <aschneid@mail.slc.edu> [2002-03-22 15:36:57 -0500]:
> the -c flag passes a command to the shell of the user you are su'ing to,

man su
...
     -c class
             Use the settings of the specified login class.  Only allowed for
             the super-user.
...


> so since user man's shell is /sbin/nologin, /sbin/nologin is (according
> to su) supposed to interpret the command 'catman' and execute it,
> however /sbin/nologin doesn't interpret commands, it just prints the
> message "This account is currently unavailable" (just as it did for you)
> and then exits.  for 'su -c' to work, the user you are su'ing to needs
> something to actually interpret the command.  i suggest you either change
> that user's passwd info to have such a shell, or you to an account that
> has such a shell.

I think for 'su -c' to work as expected here, you have to use some
linux distri ;-)

Nicolas

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020322204951.GB529>