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

Re: symbolic links for ftp access



On Tue, Jan 01, 2002 at 06:07:49PM -0800, twig les wrote:
> My problem is that when I put a symbolic link into the
> user's directory (/usr/home/[username]) to the
> filesystem I want to give them access to it doesn't
> work.

This is probably because you also want your users being chrooted (restricted
to the content of their home directory) . When 'john' is chrooted to
/usr/home/john, everything outside /usr/home/john is hidden. You can't reach
it, even with symbolic links.

As a workaround, you can mount directories in multiple places. For instance :

mkdir /usr/home/john/mp3
mount_null /var/mp3 /usr/home/john/mp3

And ~john/mp3 will be a copy of /var/mp3 . You can use mount_null multiple
times for the same shared directory.

Best regards,

         -Frank.