LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 08-27-2003, 10:51 AM   #1
ereeno
Member
 
Registered: Jul 2003
Location: New Westminster BC, Canada
Distribution: mandrake 9.1
Posts: 58

Rep: Reputation: 15
vsftpd - creating links that can be used remotely


Hello,

I am in the process of setting up vsftpd as an ftp server on my linux machine.

I have a user "ftp" set up, and when you log in you can see everything in the ftp folder. I was wondering how i can create links in that folder to other areas on my machine so that i don't have to actaully copy all the folders i want the ftp to give access to?

i tried making a symbolic link using

ln -s /mnt/e/music /var/ftp

and the link was created but couldn't be opened when logged in.

anyone know what the problem could be?

thanks in advance for any help given
 
Old 08-31-2003, 05:25 PM   #2
affeee
LQ Newbie
 
Registered: Aug 2003
Distribution: Debian Sarge - 2.6.8
Posts: 14

Rep: Reputation: 0
did you solve it?... i trying to do the same thing here.
 
Old 08-31-2003, 06:04 PM   #3
affeee
LQ Newbie
 
Registered: Aug 2003
Distribution: Debian Sarge - 2.6.8
Posts: 14

Rep: Reputation: 0
i think i solved it:

mount --bind /path/you/want/to/include /path/to/vsftpd/docroot/subdir


Last edited by affeee; 08-31-2003 at 06:05 PM.
 
Old 08-31-2003, 06:15 PM   #4
gundelgauk
Member
 
Registered: Jul 2003
Distribution: Gentoo
Posts: 168

Rep: Reputation: 30
Exclamation

Most likely file- and directory-permissions are the problem.

Say you have a folder /home/ftp. the user ftp can access it because both /home and /home/ftp have the proper permissions set. Let's say you want the user ftp to be able to access a file in /home/linuxer. first you will have to make sure that the user may actually enter the directory. You can do that by issuing

chmod o+x /home/linuxer

, however that may be unwise from a security point of view. You can also add the ftp user to the group of /home/linuxer's owner. To be able to actually download files from that directory, you need to set the proper permissions on the files inside it, for example

chmod o+r /home/linuxer/foo.mp3

. Another possibility (and maybe a more secure one) is creating links only to the files you want ftp to be able to access instead of whole directories. The permission issue still applies, you need to make sure ftp has the rights to access those files.


Good luck!
 
Old 03-06-2008, 01:25 AM   #5
ruwindada
LQ Newbie
 
Registered: Aug 2007
Posts: 11

Rep: Reputation: 0
Smile symbolic links not working in vsftpd

Hi !!

i had the very same problem.......... got sort it out !!

thank you very much.
[root@convenientinfo ~] #
 
Old 10-16-2008, 05:38 AM   #6
aneel.ramireddy
LQ Newbie
 
Registered: Oct 2008
Posts: 1

Rep: Reputation: 0
I am also having the same problem

I got resolve by "mount --bind"


Thanks a lot
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd server: can connect locally, not remotely propz Linux - Networking 2 10-24-2005 12:59 AM
vsftpd not working remotely nmucats Linux - Networking 1 12-21-2004 08:56 PM
how to make links in vsftpd? pablovschby Linux - Networking 4 11-09-2004 08:00 PM
VSFTPD - Change Password Remotely? foxbat77 Linux - Networking 0 08-31-2004 08:46 AM
Sym Links and vsFTPd Datacraft Linux - Software 1 05-24-2003 05:20 PM


All times are GMT -5. The time now is 03:54 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration