LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-25-2008, 11:00 PM   #1
neocontrol
Member
 
Registered: Jul 2005
Posts: 273

Rep: Reputation: 31
apache + userdir + proper user directory permissions = ????


Hey everyone.

I would like to use the userdir module with apache. I have it working, but I'm not sure if it's working to the best way it should.

For example, I needed to either set the users directories to 775 or add the apache group to users directory, and give apache permission to their directory as well.

Is this really the right way to do this? Usually I would think that there would be a more elegant way to do this.....

For example, whats the point of calling 'userdir disable root' if you haven't given anyone else permission to use that directory.

For every new account will I have to add permissions and groups to the user directories?

My other thought is I can give the apache group access to all folders users directories via an acl to help cut down on the admin.

Any thoughts?
 
Old 03-26-2008, 10:23 AM   #2
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
Unless every user has a private group set the directory permissions to 755. Apache will have to execute the directory and parent directories of each web space which is normally done by making the 'all' bit r-x. I guess you could make the parent directory --x if you wanted.
There really shouldn't be security concerns since the data is intended to be served via the web anyway (anything in that directory is intended to be public)
 
  


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
Proper permissions for a user? Urban Hermit Slackware - Installation 12 05-28-2007 02:39 PM
Apache user directory permissions AMMullan Linux - Software 11 12-23-2004 01:56 AM
home directory permissions get reset periodically, preventing use of apache UserDir rennard Linux - Security 2 08-03-2004 07:21 PM
userdir cg-bin directory ( apache server) abd_bela Programming 0 08-21-2003 11:59 AM
'Proper' file and directory permissions etherdeath Linux - General 5 03-02-2003 03:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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