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

Gordon Messmer yinyang at eburg.com
Mon Aug 2 00:35:29 UTC 2010


On 08/01/2010 12:28 PM, JohnS wrote:
> That's is also because his echoed "0" context is not active yet.  It
> requires a reboot every time I have done it.

No, rebooting will reset any changes made to files in /selinux.

> 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...

It's not hard, you just have to specify a shell to use:

# su - apache -s /bin/bash



More information about the CentOS mailing list