DeveloperSide.NET Forums

DeveloperSide.NET => Building a Web Server, for Linux => Topic started by: mylinuxku on July 06, 2004, 04:17:39 AM



Title: apache setting or file ownership
Post by: mylinuxku on July 06, 2004, 04:17:39 AM
1.    I had webserver (redhat 9.0).
at the apache setting in httpd.conf i put

user www
group www

2.    I had a perl CGI programming use to update, add or
delete content or file thru website.
But i'm using 'myaccess' as user/group file control

what happening is, when i try to do maintenance,
the file cant delete or add. But if i try to use 'www'
as user/group it is works.

so,

which part is my mistake.
        a. httpd.conf

              or

       b. file ownship

and how to solve it.

thanks my friends.


Title: apache setting or file ownership
Post by: admin on July 06, 2004, 07:17:09 PM
So if it works with www/www, why not leave it there?

Also, you can 'chmod 666' and give the file write permissions.


Title: apache setting or file ownership
Post by: mylinuxku on July 08, 2004, 11:58:01 AM
This what I've done,
Please correct me If I’m wrong

my Cgi programming is in the /home/myaccess/public_html/…..

image from /www/images
and I give soft link ( ln –s /www/images to /home/myaccess/public_html/ )
and user = myaccess, and , group = www.
drwxr-xr-x myaccess www 422 Jul 5 11:12 images/

so that user myaccess able to write to the image directory
means, the system able add new image-file thru the system running on web-http

It’s works on the add new image-file.
Even it able to overwrite the image, when I add a new image-file with the same filename.


But the problem is i cant delete the image-file that i'had created

---------------------------------------

I cant implement the system in the www directory for security issues.
The administrator wont give the passwd to me since there are a lot of system running under the www username/directory.

-------------------------------------------

if worse come to worse,
is there any possiblility to create a folder in the www directory like 'myaccess', and set a password for the directory.
and unhide/disallow other directory to retrieve or access.


Thanks so much to all the GURU