LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-10-2003, 11:47 PM   #1
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Rep: Reputation: 30
user/group permissions for /var/www/html/


What should be the permissions for /var/www/html/. It is defaulted as
user=root
group=root

shouldn't this be
User=apache
Group=apache

Thats what it is indicating in the http.conf file. I cant seem to get a clear answer to this one, and before I make this change I just wanted to clerify the answer. Because I have read that user s/b apache and groupe s/b root.

Thanks,
AD
 
Old 11-11-2003, 01:16 AM   #2
Bluesuperman
Member
 
Registered: Nov 2002
Distribution: Slackware
Posts: 155

Rep: Reputation: 30
It really does not matter -- I have apache 2.X built and have left the default document root, but under a user (the one I normally ) I have create a www directory containing htdocs and cgi-bin. This is where I have a virtual host enter point to for my web server default and some other request.

This way this user can make changes to the web site and root access is not required.

Michael.
 
Old 11-11-2003, 01:17 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Its really your choice. I have my html directory for my website as:

User: drew
Group: web

drew is my own account and web is the group I created, etc.
 
Old 11-11-2003, 01:57 AM   #4
stuNNed
Member
 
Registered: Aug 2003
Distribution: Gentoo/Ubuntu
Posts: 134

Rep: Reputation: 15
i have it apache.apache with permissions chmod -R 555
 
Old 11-11-2003, 11:49 AM   #5
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
well thanks guys for helping me to clarify this. It must not be to big of a deal what the permissions are then. But I think I will stay with what have read apache/apache for now. I just wanted to know if there was a standard

Thanks again,
AD
 
Old 11-11-2003, 09:03 PM   #6
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
Well according to this article the suggestions here are almost right (no disrespect intended)
http://www.squirrelmail.org/wiki/en_...oryPermissions

chmod 300 data
 
Old 11-12-2003, 06:29 AM   #7
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Well it does not matter if your permissions are 755, but when choosing more restrictive permissions (which you SHOULD do for security reasons), it should be 640. So you have a user, let's call that one ftp and a group let's say web and the files are owned by ftp with group web.
 
  


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
How do I give a user permission to save files to /var/www/html? rotnay6000 Linux - Newbie 10 07-14-2009 09:45 PM
help in /var/www/html/!! chidomen Linux - Newbie 4 01-13-2005 12:02 PM
ownership of /var/www/html haobaba1 Linux - Security 1 08-04-2003 03:58 PM
chmod of /var/www/html alTereD Linux - Security 1 12-16-2002 03:43 PM
Giving a user CHMOD rights to the /var/www/html directory? scubes13 Linux - Networking 3 08-18-2002 04:38 PM


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