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

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



On Sun, 2010-08-01 at 14:10 -0500, Les Mikesell wrote:
> 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]#
> > 
> 
> References to 'context' would have something to do with SELinux, not normal 
> permissions.
---
That's is also because his echoed "0" context is not active yet.  It
requires a reboot every time I have done it.  But the other way around
it does not.

No matter how hard you try in a default EL4 or 5 instance you will never
get logged into an apache account.  Root or Not...  Unless you change
the login shell..or exploit it...

apache = /sbin/nologin
postgres = /sbin/bash
#################################################
Jason,

Nasty things happen when you build rpms like that.  
See www.owlriver.com , Russ has an article there about it [1].

[1] http://www.owlriver.com/tips/non-root/


John

_______________________________________________
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