[CentOS] /bin/su wont work inside a chroot?

JohnS jses27 at gmail.com
Sun Aug 1 19:13:39 UTC 2010


On Sun, 2010-08-01 at 20:58 +0200, Alexander Dalloz wrote:
> Am 01.08.2010 20:55, schrieb JohnS:

> > 
> > Heres what I get 
> > [root at ethies ~]# sudo su -l apache
> > This account is currently not available.
> > 
> > [root at ethies ~]# su apache
> > This account is currently not available.
> 
> apache has no login shell.

Right :-)

> getent passwd apache
> 
> > Looks like it is meant or not in sudoers....to be like this or it is a
> > bug.  SELinux is Active also.   Maybe someone else can confirm this?  I
> > do not think some service accounts allow this but I know postgres does.
> > 
> > [root at ethies ~]# su postgres
> > bash-3.2$ 
> 
> postgres has a login shell.
> 
> getent passwd postgres
> 
> > John
> 
> Alexander
---
Alex would be right!  I went to the kitchen and thought about it and
come up with the same thing No /bin/bash.  :-)





More information about the CentOS mailing list