#1  
Old 27th September 2008, 08:43
rbradshaw rbradshaw is offline
Junior Member
 
Join Date: Aug 2008
Posts: 15
Thanks: 5
Thanked 0 Times in 0 Posts
Default folder sharing with ftp

when using an ftp program to connect to the server it only shows the users home directory. is it possible to have a folder which every user can access from their home directory?

e.g. i have a folder /home/shares. can this be set up to be accessed via /home/user/shares.

thanks.
Reply With Quote
Sponsored Links
  #2  
Old 28th September 2008, 13:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

You can try to set up a symlink from /home/user/shares to /home/shares.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 28th September 2008, 21:03
rbradshaw rbradshaw is offline
Junior Member
 
Join Date: Aug 2008
Posts: 15
Thanks: 5
Thanked 0 Times in 0 Posts
Default

i tried a symlink but when trying to access the folder with an ftp program (i use filezilla) it says failed to retrieve directory listing but it works in the terminal. ive made sure that the user and group permisions are set to the link and folder.
Reply With Quote
  #4  
Old 28th September 2008, 22:06
chipsafts chipsafts is offline
Senior Member
 
Join Date: Nov 2007
Posts: 184
Thanks: 2
Thanked 6 Times in 6 Posts
Default

What are you using for the ftp server?
Reply With Quote
  #5  
Old 28th September 2008, 22:07
rbradshaw rbradshaw is offline
Junior Member
 
Join Date: Aug 2008
Posts: 15
Thanks: 5
Thanked 0 Times in 0 Posts
Default

im using proftpd
Reply With Quote
  #6  
Old 28th September 2008, 22:09
rayit rayit is offline
Member
 
Join Date: Nov 2005
Posts: 93
Thanks: 0
Thanked 2 Times in 2 Posts
Default maybe this helps??

If you are using proftp you could change this setting

pico /etc/proftpd.conf

Look for this line it Locks all the users in home directory
DefaultRoot ~

But it's not advisable for security reasons?
Maybe this helps you further?

gr
Raymond
RayIT
Reply With Quote
  #7  
Old 28th September 2008, 22:12
rbradshaw rbradshaw is offline
Junior Member
 
Join Date: Aug 2008
Posts: 15
Thanks: 5
Thanked 0 Times in 0 Posts
Default

thanks, but i would prefer to keep it locked to the user directory if there is another way around it.
Reply With Quote
  #8  
Old 28th September 2008, 23:05
rayit rayit is offline
Member
 
Join Date: Nov 2005
Posts: 93
Thanks: 0
Thanked 2 Times in 2 Posts
Default give it a try

i never used it but maybe you can do following

mount --bind olddir newdir

so:

cd /home/ftp
mkdir extra
mount --bind /otherdir extra

to keep it after reboot add line to /etc/fstab
/otherdir /home/ftp/extra none bind 0 0

RayIT
Reply With Quote
  #9  
Old 28th September 2008, 23:12
rbradshaw rbradshaw is offline
Junior Member
 
Join Date: Aug 2008
Posts: 15
Thanks: 5
Thanked 0 Times in 0 Posts
Default

which is the folder that contains the shared files and which is the folder that links to the shared files?
Reply With Quote
  #10  
Old 28th September 2008, 23:30
rayit rayit is offline
Member
 
Join Date: Nov 2005
Posts: 93
Thanks: 0
Thanked 2 Times in 2 Posts
 
Default

cd /home/user
mkdir shares
mount --bind /home/shares shares

give it atry
but maybe this is not a good sollution if you have multi users.

Maybe someone has a better idea?

gr
RaYIT
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
FTP - symlinks (site url) to folder (eg web20) dont work robit Installation/Configuration 2 20th July 2008 17:21
Question about Virtual Hosting With Proftpd And MySQL (Incl. Quota) On Debian Etch ikkem HOWTO-Related Questions 30 26th February 2008 19:38
ftp problems tgansert Installation/Configuration 20 27th May 2006 19:06
WEB UI FTP not working gimhan90 Installation/Configuration 2 16th March 2006 08:03
Website users? ctroyp General 25 6th January 2006 18:02


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


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