[Top][All Lists]

[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: Mike van Hoof
Subject: Re: [Jailkit-users] a www folder as symlink to a failed folder
Date: Mon, 12 Jun 2006 23:05:11 +0200
User-agent: Thunderbird (Windows/20060516)

Olivier Sessink schreef:
Mike van Hoof wrote:

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


I think you misunderstood me, because i want the symbolic link to be in /var/www/html and this is outside the jail. It has to point to a directory inside the jail...
Or am i misunderstanding you??

- Mike

reply via email to

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