LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 11-23-2003, 07:44 PM   #1
tris
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Rep: Reputation: 0
apache + proftpd


Hi,

I'm setting up a webserver and I was wondering about the best way to setup website and user directories.

I would like for a user to log in to ftp and see two folders.
/web and /user

I want /web to map to /var/www/html/theirdomain and /user to map to /home/username/public_html

is there a way to do this?

Thanks
 
Old 11-23-2003, 10:19 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Probably the easiest way to do this is do the following:

1. Create the user and assign their home directory.
2. Create the symlinks to appropiate locations you specified above.
3. If you don't want them to see other directories or browse, chroot them or jail them to their home directory.
4. Setup and change the permissions accordingly on the two directories they will have links to from their home directory.
5. For added security, give your users a false shell, so they can basically only ftp to the server to update their web pages, you can do this by changing their shell to something like /bin/false and add that to your /etc/shells file.

Hope this helps you out.
 
Old 11-27-2003, 05:11 PM   #3
tris
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Sorry, like I said I am still new to linux however thanks to the help of guys like you an learning fast. So thanks again!

Ok, what I don't understand is step 3 if I chroot them to the home directories then they wont be able to get to /var/www/html/theirsite because their home directories are in /home/user

This is the main part I don't understand how to get around and I was wondering what other people do... mainly, for instance, what web hosting companies do when it comes to directory structure and large numbers of users. I would like to host a few friends websites and I'd like to let them have multiple users associated with the one domain.

And in step 4.
Would I create a group called their domain and allow access just from those associated users? It sounds like the way to me.

Thanks again for your help.
 
  


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
User management in Apache and Proftpd kektex Slackware 1 03-25-2004 11:11 PM
proftpd config w/ apache TruckStuff Linux - Networking 1 02-27-2004 05:59 PM
Apache and proftpd preinstalled? lonny Slackware 2 12-01-2003 12:03 PM
Need tips on Apache and ProFTPd Silly22 Linux - Security 1 03-28-2003 12:50 PM
proftpd and apache Kaiser_Sose Linux - Software 8 01-20-2002 05:36 PM

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

All times are GMT -5. The time now is 08:53 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration