Koozali.org: home of the SME Server

Symbolic Link in FTP

ChanChong

Symbolic Link in FTP
« on: March 06, 2003, 10:00:34 AM »
Hi,

Is there anyway after creating a symblic link, a user when logon using ftp, is able to navigate and upload to that link? Meaning, after logging using their ftp account, besides the default home and Maildir directory, the user is able to navigate to say this symbolic link call "link1"? This "link1" which says points to /home/e-smith/files/ibays/english/html has already been created in shell mode by the administrator.

Simply, all I want to achieve is that a user is able to upload or download to a few directory besides only to home.

I understand that there is a rpm call chroot ftp. But that only points to one directory. I wish to go to a few.

Hope that is clear enough.

Thanks.

Welsh

Re: Symbolic Link in FTP
« Reply #1 on: March 06, 2003, 10:38:59 AM »
Grant the english directory read and write right to those ftpuser. Better do it with care and know what are you doing when you allow people to upload stuff to your server.
good luck.

ChanChong

Re: Symbolic Link in FTP
« Reply #2 on: March 06, 2003, 12:32:23 PM »
Thanks for the reply. Perhaps I am not clear enough. I have already set all the permissions.

However, how can I say when a user log in using ftp, the user will see his "home" directory, "maildir", and also the directory that I allow him to upload information to.

Reynolds

Re: Symbolic Link in FTP
« Reply #3 on: March 06, 2003, 08:47:15 PM »
Try the following it might help to get you closer to what you want.

http://dungog.net/sme/howto/chroot.php

Chow!

Welsh

Re: Symbolic Link in FTP
« Reply #4 on: March 07, 2003, 11:43:10 AM »
When your user simply go to
ftp://ftp.yoursite.com
then at your workstation (possible win envor) and change the login identity like
login as : kel
pass: *********

then kel will directly go to his own home directly

if you want you user to access certain ibay
ftp://ibayname@yoursite.com

If your ibay need password, it will ask you. if not, the user can see it all.
 
Good luck

Derek

Re: Symbolic Link in FTP
« Reply #5 on: March 07, 2003, 06:19:17 PM »
If you are using SME 5.6:

- mkdir /home/e-smith/files/users/username/home/newdirectory
- mount --bind /home/e-smith/files/ibays/english/html /home/e-smith/home/e-smith/files/users/username/home/newdirectory

Then find out the syntax for adding this mount point to fstab and tell me how to do it :-)