editing files served by Apache - write permissions

If none of the more specific forums is the right place to ask

editing files served by Apache - write permissions

Postby daidalus13 » 2006-05-14 10:39

I need to frequently edit files on my webserve's document tree. These files are curretnly owned by root and belong to the root group. For example:
-rw-r--r-- 1 root root 1033 2005-09-05 14:09 index.html.zh-tw.big5
-rwxr-xr-x 1 root root 1733 2006-05-07 21:46 index.php

I don't want to be root to edit these files. So I think I have the following options:

It is sensible to make a new group, like 'webdev', and give ownership of all the files under the server's document tree to this new group ('webdev'). If I give write permission to the group that owns the files then I can add myself to the this new 'webdev' group and be able to edit my files.

Another alternative is to make myself owner of all the files. The owner of the files has write permissions already.

What do you think?

Thx in advance for any feedback
Posts: 16
Joined: 2006-05-01 11:08
Location: UK

Postby ajdlinux » 2006-05-14 20:36

The webdev group idea seems best to me if this is a production server. It of course has the added flexibility of being able to add other users in to that group as needed.
Posts: 2480
Joined: 2006-04-23 09:37
Location: Port Macquarie, NSW, Australia

Return to General Questions

Who is online

Users browsing this forum: No registered users and 10 guests