LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-08-2008, 01:56 AM   #1
dreamer.redeemer
LQ Newbie
 
Registered: Jan 2008
Distribution: Ubuntu, Suse 11, etc...
Posts: 20

Rep: Reputation: 0
Apache2 userdir in vsftpd ftpShared


I'm pretty new to linux, so I've been setting up this home server by the seat of my pants. I'm running a ubuntu gutsy gibbon lamp server with vsftpd, intended only for use of ftp and apache for now. I have user home directories set to /media/*/ftpShared/user. I placed the public_html directory in the user home directory. The permissions for ftpShared and user directories are 751 and public_html is 755. Does this situation pose any security risks? Thanks.
 
Old 08-08-2008, 08:13 PM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Nothing obvious stands out. The chosen home directory paths are a little unorthodox (why not just /home ?), but insignificant.

I presume user's own their home and public_html directories, so they can write files. If user's aren't chroot'd into their home dirs, the only concern is a DoS via uploading very large files.

Do you allow shell access?
 
Old 08-09-2008, 05:08 PM   #3
dreamer.redeemer
LQ Newbie
 
Registered: Jan 2008
Distribution: Ubuntu, Suse 11, etc...
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks for the response. The user home directories are there because when I was setting that part up I didn't know how to get each directory to point to different disks. I wasn't aware of symbolic links, and I'm still not exactly sure how I'd do it anyway. Since it's already done I guess I'll worry about that next time. As far as shell access, I have ssh installed but I don't think it's configured to allow those users. I'll have to take a look at that. Thanks again!
 
Old 08-09-2008, 06:00 PM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
You're welcome.

The typical mechanism for mapping /home over separate disks is as you mentioned, via sym links. It looks generally like this:

Code:
$ ls -1 /disks/disk*
/disks/disk1:
user1
user2

/disks/disk2:
user3
user4

$ ls -l /home
... user1 -> /disks/disk1/user1
... user2 -> /disks/disk1/user2
... user3 -> /disks/disk2/user3
... user4 -> /disks/disk2/user4
 
  


Reply



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
Apache2 userdir "almost" works - can't serve images directory jpantone Linux - Server 14 07-15-2008 01:25 PM
Configuring USERDIR apache2 option. naaman Linux - Server 6 06-27-2008 02:16 AM
openSUSE 10 RC1 - Apache2 userdir forbidden Smartcat99S SUSE / openSUSE 9 02-11-2006 10:12 PM
apache2 UserDir: where do I start? Brother Michael Debian 2 01-07-2005 10:22 PM
UserDir not working in apache2 hamish Linux - Networking 4 06-29-2004 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:41 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