Re: Apache Permissions (addemdum)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I would suggest creating a new group rather than using the built-in apache group and add the apache user to that new group. The default permissions are 755 for /var/www and var/www/html, owner/group root.root. It might make sense to change the gid to a different group and the permissions to 2775, e.g.: 

chgrp -R admin www
chmod -R 2775 www
ls -ald www

	drwxrwsr-x    2 root     admin        4096 Feb 15 12:49 www

This will allow users in the example group (admin) to crate files and it will allow them to retain ownership of the files regardless of who edits them. If you don't use chmod g+s then the ownership of each file will change every time it's edited.

Ron





Justin Churchey wrote:
> 
> I used your advice and secured my directories quite
> well.  Everything is up and running now.  You were a
> lot of help.
> 
> Thanks for everything,
> 
> =====
> 
> Justin Churchey
> 
> sajchurchey@xxxxxxxxx
> 
> Check out My Website: http://sajchurchey.htmlplanet.com
> Join the Forums:  http://www.computertechnology2k.com
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance: Get your refund fast by filing online.
> http://taxes.yahoo.com/filing.html
> 
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

-- 

Global System Services Corporation (GSS)
650 Castro Street, Suite 120, Number 268, Mountain View, CA 94041, USA
+1 (650) 965-8669 phone, +1 (650) 965-8679 fax, +1 (650) 283-5241 mobile
rherardi@xxxxxxxxxx, http://www.gssnet.com

"The best way to predict your future is to create it." - Stephen Covey
begin:vcard 
n:Herardian;Ron
tel;pager:1 (877) 315-2878, 1 (601) 969-6840 PIN 8773152878
tel;cell:1 (650) 283-5241
tel;fax:1 (650) 965-8679
tel;home:6502835241@xxxxxxxxxxx 2-way e-mail to SMS/mobile phone
tel;work:1 (650) 965-8669
x-mozilla-html:FALSE
url:http://www.gssnet.com
org:Global System Services Corporation (GSS);Messaging, Directory Services, Groupware, Wireless
version:2.1
email;internet:rherardi@xxxxxxxxxx
title:<IMG SRC="http://www.gssnet.com/images/logo_globe.gif"; ALIGN=LEFT><BR><B>CEO</B>
adr;quoted-printable:;;650 Castro Street=0D=0ASuite 120, Number 268;Mountain View;California;94041;U.S.A.
note;quoted-printable:Netscape/iPlanet/Sun ONE Solution Expert=0D=0AMicrosoft Certified Professional (MCP)=0D=0ACertified Lotus Professional (CLP)=0D=0ACertified Enterprise Messaging Consultant=0D=0AMember, Project Management Institute (PMI)=0D=0ASenior Technical Editor, DominoPower Magazine (http://www.dominopower.com)=0D=0A=0D=0AAIM ID: gssnet=0D=0AYahoo IM ID: rherardi=0D=0AAlternate E-mail: mihran@xxxxxxxxxxxxxxxxxx=0D=0AAlternate E-mail: rherardi@xxxxxxxxxxxxx=0D=0AAlternate E-mail: 8773152878@xxxxxxxxxx (2-way e-mail to pager)=0D=0AAlternate E-mail: 6502835241@xxxxxxxxxxx (2-way e-mail to SMS/mobile phone)=0D=0A
fn:Ron Herardian
end:vcard

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux