LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-13-2006, 09:34 PM   #1
riemann_noodles
Member
 
Registered: Feb 2005
Location: San Diego
Posts: 43

Rep: Reputation: 15
Linking a directory for ftp user


Hi All,

So, I have done this before, but after a fresh install of Slack 11, I can't for the life of me figure out what I am doing wrong this time.

I want a symbolic link in the /home/ftp directory to a /data/files directory mounted on a seperate drive, so that an anonymous ftp user can navigate to the 'files' subdirectory and download it's contents.

The link is as follows:

lrwxrwxrwx files -> /data/files

The permissions of the entire /data folder are:

drwxr-xr-x me:users

On the server as the ftp user I can navigate the link. But ftp-ing in from another box, I am denied access to the folder. I tried all sorts of random permissions when all logic failed, to no avail.

Anyone see my error? Or have a better solution.


Thanks
 
Old 11-14-2006, 01:57 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,895

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Could you please be more specific and answer the following questions.
What ftp server are you using? Is it running chrooted? Do you allow you server to follow symlinks?
 
Old 11-14-2006, 04:04 AM   #3
riemann_noodles
Member
 
Registered: Feb 2005
Location: San Diego
Posts: 43

Original Poster
Rep: Reputation: 15
Thanks for the reply.

Im using vsftpd (sorry I intended to include that in the original post)

It is not running chrooted.

Apparently as I read while digging around on the net, vsftp does not allow symlinks in any case- which would be my problem if true.

I have since solved my problem, however, with the option I overlooked anon_root=/data/files. Which works for now : )
 
Old 11-14-2006, 11:15 PM   #4
acummings
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Rep: Reputation: 49
A disk partition from elsewhere can be mounted underneath /home/ftp

for example mkdir the hd2 dir in the next

/home/ftp/hd2


since your disk partition (dp) containing /data/files is already mounted elsewhere

then, now you can use the -bind option with mount to mount this same dp a second time.

thus the entire /dev/hdX containing /data/files gets mounted again, a 2nd time, using -bind it gets mounted onto /home/ftp/hd2

It works. I've done it. It's a way to add disk space onto the ftp.

--
Alan.
 
  


Reply

Tags
ftp, linking, permissions, vsftpd


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
create ftp user for vsftpd server without home directory cccc Linux - Networking 2 07-30-2005 06:32 AM
NEED HELP WITH FTP user account and directory setup aikym1 Linux - Security 1 10-06-2004 06:33 AM
need help setting up ftp user accounts and directory structures aikym1 Linux - Newbie 4 07-19-2004 03:17 PM
linking directory problem lomaree Linux - General 3 01-05-2004 01:25 AM
How can I limit my ftp user to just one directory mtn356 Linux - Software 1 10-28-2003 02:45 PM


All times are GMT -5. The time now is 11:27 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.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration