Apache Group and User names

Stephen R Laniel steve at laniels.org
Fri Jan 27 17:19:54 UTC 2006


On Fri, Jan 27, 2006 at 11:08:55AM -0600, Wade Smart wrote:
> Ok. I changed the permission to www-data as user and group for the file Im
> working with. I then ran the script. I can write to the file but I cannot read
> from it. There are no errors that show though.

You have to be a little more precise. When you say you can't
read from it, do you mean that you can't do so on your local
machine, or that the web server can't, or something else?

This is a very frequent problem with web scripts: you want
to be able to edit the script at the command line, which
means that your regular user (wsmart or whatever) needs to
be able to read from it and write to it. But the web server
also needs to be able to read from it and sometimes write to
it. One approach is to create a group that www-data and
wsmart belong to -- call it 'webusers' -- and then change
the group ownership on the relevant files to 'webusers'.
Then make the files group-readable and -writable.

-- 
Stephen R. Laniel
steve at laniels.org
Cell: +(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060127/12429304/attachment.pgp>


More information about the ubuntu-users mailing list