LinuxQuestions.org
Social Bookmarking all things Linux and Open Source
Go Back   LinuxQuestions.org > Forums > Linux > 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
 
Thread Tools Search this Thread
Old 08-27-2003, 11:51 AM   #1
ereeno
Member
 
Registered: Jul 2003
Location: New Westminster BC, Canada
Distribution: mandrake 9.1
Posts: 58
Thanked: 0
vsftpd - creating links that can be used remotely


[Log in to get rid of this advertisement]
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
ereeno is offline     Reply With Quote
Old 08-31-2003, 06:25 PM   #2
affeee
LQ Newbie
 
Registered: Aug 2003
Distribution: Debian Sarge - 2.6.8
Posts: 14
Thanked: 0
did you solve it?... i trying to do the same thing here.
affeee is offline     Reply With Quote
Old 08-31-2003, 07:04 PM   #3
affeee
LQ Newbie
 
Registered: Aug 2003
Distribution: Debian Sarge - 2.6.8
Posts: 14
Thanked: 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 07:05 PM..
affeee is offline     Reply With Quote
Old 08-31-2003, 07:15 PM   #4
gundelgauk
Member
 
Registered: Jul 2003
Distribution: Gentoo
Posts: 168
Thanked: 0
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!
gundelgauk is offline     Reply With Quote
Old 03-06-2008, 02:25 AM   #5
ruwindada
LQ Newbie
 
Registered: Aug 2007
Posts: 11
Thanked: 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 ~] #
ruwindada is offline     Reply With Quote
Old 10-16-2008, 06:38 AM   #6
aneel.ramireddy
LQ Newbie
 
Registered: Oct 2008
Posts: 1
Thanked: 0
I am also having the same problem

I got resolve by "mount --bind"


Thanks a lot
aneel.ramireddy is offline     Reply With Quote

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


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


All times are GMT -5. The time now is 05:08 PM.

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.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration