LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
  Search this Thread
Old 04-23-2006, 09:15 AM   #1
I_Died_Once
LQ Newbie
 
Registered: May 2005
Posts: 7

Rep: Reputation: 0
Shared Directories, chroot, & my ftp server


On a first glance, this problem looks like it might be some elaborate setting with my FTP server, but it's documentation doesn't even go near my problem, but it seems like a basic function of the OS type of thing.

My goal is to have an FTP server that both anonymous users can use and see certain things, and that preselected people (re: users) can also log in to and get access to varying content.

I have sucessfully got up and running pure-ftpd, a nice little ftp program. It works great... Anonymous users go to the /srv/ftp/ directory, where I can place content there for anonymous users.

Now, I got it set up to use local users via the /etc/passwd file. Any user that can login to my computer can log into my ftp server. Which works well. Since I am "going off of" that, I'll use group membership and folder permissions to restict each user to their content.

The main part of my goal is to do something along the lines of create a user for my mom to share pictures of the family, one for a few friends to share music videos and audio files, and a couple other friends get access to my porn - and select users might get access to family pics and my music, and others can get my music and my porn (some people, I don't want having access to the family pictures, ya know?) So I'll create "music" "video" "porn" and "family" groups, assign the content to its rightful group, and add people to and from groups to manage content and get a system going.

That, and I got other stuff hosted on this machine, meaning I do not want ftp users snooping around all over my machine. So, I opt to "chroot" my users into their home directory, which seems like a good idea.

Now the problem, if I jail my users to their home directory, how do I share content from another partition? All the "good stuff" and content is mounted on, lets say /storage/. From there, it goes /storage/music and then theres /storage/family and so on.

Since the users are confined to their home directories, I cannot think of a way to share this content. Creating a link doesn't work. Well, it does if users are not confined to their home directory, but thats a heavy security risk. I cannot find anything in the pure-ftpd documentation that says anything about directing all logged in users to one directory, because if I could make it to where ALL users, anonymous AND authenticated, all go to the same destination (say /srv/ftp for instance)

So, my question is multipart. Any ends to one mean.

- Is there a way to create a shared directory, in a chroot environemnt, to give access to content on another partition?

- Is there a hidden option in pure-ftpd to direct ALL users to one predefined place?

- If you have read my scenario, and can think of another "work around" or solution, what is it?

Other info that might help is the server is running on Suse 9.3, its also acting as an HTTP server and a game server... an old Dell Dimension 8100. Boat anchor. Need anything else, ask!
 
Old 04-24-2006, 08:17 AM   #2
I_Died_Once
LQ Newbie
 
Registered: May 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Bump...?

Moderators, if this belongs in another forum, please move it there. Thx!
 
  


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
chroot jail with rssh / restricting users to individual directories rob_xx17 Linux - Security 3 01-23-2006 03:28 AM
chroot and shared libs not being found. netstv Linux - General 3 11-05-2004 11:36 AM
Access Shared Directories gotmonkey Linux - Networking 5 04-15-2004 09:20 PM
FTP Users are able to Traverse directories up to the root of my server stingay Red Hat 6 10-25-2003 03:22 AM
Question about accessing shared directories zikfreak Linux - Newbie 0 08-18-2001 04:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:34 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration