Apache Group and User names

Wade Smart wade at wadesmart.com
Fri Jan 27 17:29:46 UTC 2006


01272006 1126 GMT-6

Sorry about not being specific.

The tutorial was to create a file called quotes.txt, open the file and 
write a quote to it, then close the file.

The next tutorial was to open the file called quotes.txt, and randomly 
read one of the quotes.

Now, I did change the owner like I said and after I restarted Firefox, I 
could read and write.

So that part of my problem is completed.

Thanks.

Wade

Stephen R Laniel wrote:

>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.
>
>  
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060127/8da22bf7/attachment.html>


More information about the ubuntu-users mailing list