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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-10-2003, 10:47 PM
|
#1
|
Member
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343
Rep:
|
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
|
|
|
11-11-2003, 12:16 AM
|
#2
|
Member
Registered: Nov 2002
Distribution: Slackware
Posts: 155
Rep:
|
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.
|
|
|
11-11-2003, 12:17 AM
|
#3
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
11-11-2003, 12:57 AM
|
#4
|
Member
Registered: Aug 2003
Distribution: Gentoo/Ubuntu
Posts: 134
Rep:
|
i have it apache.apache with permissions chmod -R 555
|
|
|
11-11-2003, 10:49 AM
|
#5
|
Member
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343
Original Poster
Rep:
|
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
|
|
|
11-11-2003, 08:03 PM
|
#6
|
Member
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343
Original Poster
Rep:
|
Well according to this article the suggestions here are almost right (no disrespect intended)
http://www.squirrelmail.org/wiki/en_...oryPermissions
chmod 300 data
|
|
|
11-12-2003, 05:29 AM
|
#7
|
Senior Member
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 12:51 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|