Mike van Hoof wrote:
Hello,
My previous problem has been solved, so i hope you can help me with
this one.
I am running apache and want a folder (/punbb) to be symbolically
linked to the folder /home/jail/home/pizr/html/punbb.
So I did a ln -s /home/jail/home/pizr/html/punbb ./punbb and i
created a nice symbolic link for me... the only thing is that i can't
approach this directory. If I go to http://hostname/punbb it gives me
and access denied (i also made an index.php in the
/home/jail/home/pizr/html/punbb to be sure...)
from the FAQ:
------
Symlinks in the jail do not work?
If the symlink contains an absolute path, for example
/home/jail/var/tmp, it will not work for a jailed user. Because the
jailed user has /home/jail as root, it means this symlink points to
/home/jail/home/jail/var/tmp. The symlink should contain the path
/var/tmp if you want it to point to /home/jail/var/tmp. Relative links
do not have this problem.
------
if you want to have something accessible from outside the jail use a
bind mount
mount /mypath /jail/mypath -o bind
regards,
Olivier