Loading...
 
Skip to main content

Architecture / Installation


file permissions in your htdocs/tikiwiki directory

hi guys, i'm just wondering, what are the permissions for the files like in your tikiwiki directory?

i know the installation instructions didnt mention "su"-ing to a normal user (or a particular user) before extracting the tarball, but i'm sure that's always fixable with a 'chown -R'.

But that just caused me to think - from a security point of view, what should be the best permissions for the files in the directory (excusing the directories that 'setup.sh' creates, and the files that the wiki itself creates)?

for eg. -

my 'ls -l' in my tikiwiki directory -

-------
total 2258
-rw-r--r-- 1 1001 1001 3777 Aug 1 2003 INSTALL
-rw-r--r-- 1 1001 1001 1133 Nov 21 11:29 README
-rw-r--r-- 1 1001 1001 1375 Jan 5 23:17 article_image.php
drwxrwsr-x 2 nobody nobody 72 Feb 7 19:54 backups
-rw-r--r-- 1 1001 1001 831 Dec 13 08:32 banner_click.php
-rw-r--r-- 1 1001 1001 1028 Dec 13 08:32 banner_image.php
-rw-r--r-- 1 1001 1001 1462 Nov 15 18:17 categorize.php
-rw-r--r-- 1 1001 1001 1448 Aug 6 2003 categorize_list.php
-rw-r--r-- 1 1001 1001 73932 Jan 30 07:39 changelog.txt
-rw-r--r-- 1 1001 1001 11213 Jan 16 07:28 comments.php

...
-----

My apache is running as nobody. Can i, and should i say 'chown root:nobody (files)' and 'chmod 640 (files)'?

thanks for any guidance on this.

> jovial_man:
> the user and group of all my tikiwiki files are "apache"
> there's no reason to set it as root, and setting it will create major security issues.

thanks, jovial, for replying, but is there any reason why? If you could explain that to me (say, with an example), i would be very grateful.

My own line of thinking is for root to own the files, and "nobody" (or whatever user/group apache runs under) to be only given, say read permissions only. Hey, if root gets compromised, then surely everything is done for already, right? (let's just ignore stuff like kernel enhancements)


the user and group of all my tikiwiki files are "apache"
there's no reason to set it as root, and setting it will create major security issues.

> jovial_man:
> the user and group of all my tikiwiki files are "apache"
> there's no reason to set it as root, and setting it will create major security issues.

thanks, jovial, for replying, but is there any reason why? If you could explain that to me (say, with an example), i would be very grateful.

My own line of thinking is for root to own the files, and "nobody" (or whatever user/group apache runs under) to be only given, say read permissions only. Hey, if root gets compromised, then surely everything is done for already, right? (let's just ignore stuff like kernel enhancements)

> jovial_man:
> the user and group of all my tikiwiki files are "apache"
> there's no reason to set it as root, and setting it will create major security issues.

test


> jovial_man:
> the user and group of all my tikiwiki files are "apache"
> there's no reason to set it as root, and setting it will create major security issues.

test


Under linux nothing should be root unless its needed.

Mine are owed by a username:username and only those needed in setup.sh owned by username:apache

I have a small security guide mainly about removing files on your tiki install once your up and running on mods.tikiwiki.org

Damian

> Damian:
>
> I have a small security guide mainly about removing files on your tiki install once your up and running on mods.tikiwiki.org
>
> Damian

oh hey great - thanks, man!!! finally - a doc... thanks.


> Damian:
>
> I have a small security guide mainly about removing files on your tiki install once your up and running on mods.tikiwiki.org
>
> Damian

oh hey great - thanks, man!!! finally - a doc... thanks.