HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Linking to ftp user home directory with proftp (http://www.howtoforge.com/forums/showthread.php?t=15296)

mendoza 4th September 2007 08:08

Linking to ftp user home directory with proftp
 
Hello,

I use proftpd, i don't use ispconfig, i have only few users. system is debian 4.0, proftpd is 1.2.10. i think proftpd is not chrooted.

i'm looking for idea about good way to link other directories from file system (e.g. /var/www/pythonframework to users directory) to user who logs in via ftp.

I tried to use "mount --bind" command (e.g. mount --bind /var/www/pythonframework /home/user/pythonframework) and then i changed permission for directory but when i log in using ftp client (filezilla) i'm not able to access pythonframework directory (filezilla gives error).
Otherwise i can navigate from command line to that directory and e.g. change name of the file.

I'm looking for something flexible so i can link or dis-link some directories often or when necessary.

thanks for any idea.

till 5th September 2007 11:00

Have you tried to use symlinks. Command syntax:

ln -s /var/www/pythonframework /home/user/pythonframework

mendoza 7th September 2007 19:45

Quote:

Originally Posted by till
Have you tried to use symlinks. Command syntax:

ln -s /var/www/pythonframework/images /home/user/images


I tried this and also changing permission to particular user but filezilla gives (although folder is there with little arrow):

550 images: No such file or directory
Error: Could not retrieve directory listing

I read that proftp has directives similar to apache directives like "<directory>" or "User" so i'll look at it and i'll let you once i test it.

mendoza 7th September 2007 19:54

mount --bind works!
 
so i had to do something wrong when i did mount cmd.

but now i can see that directory and upload or download.
correct way was:

/home/user: mkdir images
/home/user: mount --bind /var/www/images images
/home/user: chown -R user:user images

I have it from:

http://gentoo-wiki.com/HOWTO_ProFTPD


All times are GMT +2. The time now is 01:46.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.