Quote:
Originally Posted by Craftman
My jail directory = /home/jail
/bin and /lib64 are copied into my jail directory
Passwd and group are also copied into my jail directory.
I've also created a new user called Alex and password= Alex
|
You probably followed instructions at
https://docs.oracle.com/cd/E37670_01...l/ch24s05.html, but to use
su, you need more than that.
For example,
su uses PAM for authentication, which requires
/etc/pam.d and of course also all PAM binaries (which might be under
/lib64). Try again after copying
/etc/pam.d to the jail.
Apart from
/bin, you may also want to have binaries under
/usr/bin,
/sbin and
/usr/sbin in your jail. This depends on what exactly you want to achieve.
By the way, since the various
bin and
lib directories are essentially read-only, you are better off just bind-mounting them similarly to this:
Code:
# mkdir /home/oracle/jail/bin
# mount -o bind /bin /home/oracle/jail/bin
However,
/etc should be copied rather than bind-mounted, since it contains files that will be written from within the jail.