Re: /bin/su wont work inside a chroot?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Am 01.08.2010 20:55, schrieb JohnS:
> 
> On Sun, 2010-08-01 at 13:22 -0400, Jason Pyeron wrote:
> 
>> [root@devserver21 etc]# sudo su -l apache
>> failed to get default context
>> [root@devserver21 etc]# sudo su apache
>> failed to get default context
>> [root@devserver21 etc]# sudo
>> [root@devserver21 etc]#
> -----
> Well how are you creating the chroot? and why do you want to build an
> rpm as apache? and is this over nfs? If so it will not work as you would
> think.
> 
> Try creating the chroot in /tmpfs?
> 
> Heres what I get 
> [root@ethies ~]# sudo su -l apache
> This account is currently not available.
> 
> [root@ethies ~]# su apache
> This account is currently not available.

apache has no login shell.

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@ethies ~]# su postgres
> bash-3.2$ 

postgres has a login shell.

getent passwd postgres

> John

Alexander

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux