Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 4th September 2007, 08:08
mendoza mendoza is offline
Junior Member
 
Join Date: Jul 2007
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default 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.
Reply With Quote
Sponsored Links
  #2  
Old 5th September 2007, 11:00
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,009
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
Default

Have you tried to use symlinks. Command syntax:

ln -s /var/www/pythonframework /home/user/pythonframework
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
mendoza (14th September 2007)
  #3  
Old 7th September 2007, 19:45
mendoza mendoza is offline
Junior Member
 
Join Date: Jul 2007
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #4  
Old 7th September 2007, 19:54
mendoza mendoza is offline
Junior Member
 
Join Date: Jul 2007
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
directories in /home/admispconfig/ispconfig renamed? Spudchat General 10 12th April 2007 20:37
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 18:17
Mysterious Install Problem tgansert Installation/Configuration 5 9th May 2006 16:35
setup fails on debian 3.1 dtrumbower Installation/Configuration 7 7th March 2006 14:42
Website users? ctroyp General 25 6th January 2006 19:02


All times are GMT +2. The time now is 14:03.


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