Apache/PHP error/warning(s)

Alexander Dalloz alexander.dalloz at uni-bielefeld.de
Sun Jun 6 15:00:56 UTC 2004


Am So, den 06.06.2004 schrieb Fedora List um 16:41:

> I can understand the difference between 'world writable' and 'writable
> by the webserver' in concept, but how would I go about manipulating
> these variables? I've perused the 'chmod' man page, but don't know what
> to set the permissions to.

> Stuart

world writable for a file or directory means: chmod o=w

If you have for instance a directory /var/www/html/test which is "chown
root:root" and it is needed that Apache is able to write into that
directory, then either you give "the world", means all others than owner
and group, write permissions by running "chmod o+w" - be critical when
doing so, because now not only the apache user can write! - or by
changing the ownership to i.e. "chown root:apache".

So, in short:
chown means change ownership, speaking for owner and group
chgrp means change group, changes only group ownership
chmod means change permissions, where they are: u=owner, g=group,
o=others; and each is build together by 1 for execute, 2 for write, 4
for read permission.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 2 (Tettnang) on Athlon CPU kernel 2.6.5-1.358 
Serendipity 16:51:32 up 4 days, 17:09, load average: 0.24, 0.38, 0.31 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040606/ef5a24d4/attachment-0001.sig>


More information about the fedora-list mailing list