jailkit-users
[Top][All Lists]
Advanced

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

Re: [Jailkit-users] a www folder as symlink to a failed folder


From: Olivier Sessink
Subject: Re: [Jailkit-users] a www folder as symlink to a failed folder
Date: Mon, 12 Jun 2006 20:36:50 +0200
User-agent: Thunderbird 1.5.0.2 (X11/20060516)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]