Koozali.org: home of the SME Server

Second HDD for extra ftp space

Dominik

Second HDD for extra ftp space
« on: June 28, 2002, 07:17:31 PM »
OK, here is my problem:

I use a second HDD which is mounted to /mnt/second with the rights 755.
Now I copied some data to this HDD (all data have 755). After that I made a sym. link at /home/e-smith/files/primary/files like this:

ln -s /mnt/second/linux           for a folder

The problem now is that when I try to connect as anonymus (or a normal user) I can not get into the folder (or to get the data file). I tired to change the rights for the files or folders to 777 but it doesn't work. I use this machine only for internal lan ftp transferes.
I made every change as root and for testing as normal user. Nothing helped.

Can someone give me a tip to get it work with the mounted second HDD.

Thank you.

Dominik

Steve

Re: Second HDD for extra ftp space
« Reply #1 on: June 30, 2002, 08:47:18 AM »
This probably isn't the problem, but you might check the ownership of the files.
'ls -al'
If you need to change the owner, use
'chown -R : '

Dominik

Re: Second HDD for extra ftp space
« Reply #2 on: June 30, 2002, 12:39:39 PM »
I tried to change the ownership and the group already before. I set everything to 777 or after that try to 755 and different users and groups (root, user, public, ..., shared, ...) but I always get the message for example when I try to get into the folder linux which is at /mnt/second/linux and made a sym link to /home/e-smith/files/primary/files/ for that folder:

CWD linux
550 linux: No such file or directory

For a samba connection with my client PC I can access the folder.
Do I have to change something in the proftp.conf file or what can I do?

Thank you.

Dominik

Dominik

Re: Second HDD for extra ftp space
« Reply #3 on: June 30, 2002, 01:41:48 PM »
I have searched for a solution for my problem. It is the problem I thing about. I found the proftp problem in the FAQs:
---
Symlinks

Symlinks will not work from within a chrooted area. The reason should be clear from a casual inspection of the nature of the chroot command. It is not possible to have a symbolic link to a directory which can't be reached beacuse it's outside of the current chroot. Work arounds to allow access to other parts of the file system include exporting the part of the filesystem to be accessed from inside the chroot and mounting via NFS, using hard file links or (on Solaris) using lofs to mount the directory via the loopback.

mount -Flofs /home/data1 /ftp/data1
mount -Flofs /home/data2 /ftp/data2


As of the 2.4.x Linux kernel tree it is possible to mount filesystems multiple times and to mount subdirectories of filesystems elsewhere on the filesystem.
---
But the mount solution doesn't work at my server. That doesn't matter. I think I will change the mountpoint to the primary folder.

Thanks a lot.

Dominik