Fedora Linux Support Community & Resources Center
  #1  
Old 4th April 2006, 02:55 AM
raoul Offline
Registered User
 
Join Date: Sep 2005
Location: Hellas
Posts: 126
Question VSFTPd virtual filesystem?

I have no experience with ftp servers. I decided to ask just in case the answer is in the manual, but it's me that cannot find it... So, is it possible to create a virtual directory structure with vsftpd with its own permissions plus the real filesystem's permissions, like apache does, or this can be only done by creating the real directories/symlinks and setting permissions on the directories?

What I am trying to accomplish in my home lan is the following scenario:

1 - the ftp users to be able to access their home directories (Read/Write) plus a public directory (Read only)
2 - anonymous users to be able to access only the public dir (read only)
3 - the public directory has also an incoming directory, on which everyone can upload, but ftp users are able to view the uploads, while anonymous users cannot.

I have managed to partially create something similar to this by playing with directory permissions, but my real problem is with #1:
How to make it possible for ftp users, apart from their home dirs, to have access to the public directory, while making also possible to change between the home dir and the public dir with the same ftp session?

I hope you understand what I want to do. If it's not clear, I'll try to rephrase.

Thanks in advance.
Reply With Quote
  #2  
Old 4th April 2006, 03:57 AM
gavinw6662 Offline
Registered User
 
Join Date: Feb 2005
Age: 34
Posts: 1,281
Quote:
Originally Posted by raoul
I have no experience with ftp servers. I decided to ask just in case the answer is in the manual, but it's me that cannot find it... So, is it possible to create a virtual directory structure with vsftpd with its own permissions plus the real filesystem's permissions, like apache does, or this can be only done by creating the real directories/symlinks and setting permissions on the directories?

What I am trying to accomplish in my home lan is the following scenario:

1 - the ftp users to be able to access their home directories (Read/Write) plus a public directory (Read only)
2 - anonymous users to be able to access only the public dir (read only)
3 - the public directory has also an incoming directory, on which everyone can upload, but ftp users are able to view the uploads, while anonymous users cannot.

I have managed to partially create something similar to this by playing with directory permissions, but my real problem is with #1:
How to make it possible for ftp users, apart from their home dirs, to have access to the public directory, while making also possible to change between the home dir and the public dir with the same ftp session?

I hope you understand what I want to do. If it's not clear, I'll try to rephrase.

Thanks in advance.
Your best bet would be to use the vsftpd chroot option, and chroot the user into their home directory. Once there, then create a symlink to the external (public directory). If they need to access that public directory, then will just have to 'cd' into it. Make sense?
__________________
I read your e-mail
Reply With Quote
  #3  
Old 4th April 2006, 04:52 AM
raoul Offline
Registered User
 
Join Date: Sep 2005
Location: Hellas
Posts: 126
This is exactly what I tried to do, but, once chrooted, the user cannot follow the symlink. This seems logical, but maybe I miss something here...

Also, after some web searching I found the following:
http://www.am-utils.org/project-unionfs.html
http://podgorny.cz/moin/UnionFsFuse

I really do not know if these could help, but I 'll read about them more thoroughly at some later time.

There is no particular reason that i want to do this for, except for... just do it. Any help/idea is appreciated.
Reply With Quote
Reply

Tags
filesystem, virtual, vsftpd

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Vsftpd virtual shows all of filesystem Mr. Print Servers & Networking 4 18th January 2009 02:40 PM
Vsftpd - Virtual Users DanielGE Servers & Networking 3 5th February 2007 09:02 PM
vsftpd virtual users in FC5 -w-db3 jhp1 Servers & Networking 0 18th April 2006 02:37 AM
vsftpd and Apache Virtual Domains fjk5146 Servers & Networking 7 10th January 2006 10:21 AM
vsftpd virtual&local users sstone Servers & Networking 2 2nd March 2005 08:48 PM


Current GMT-time: 22:39 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat