DeveloperSide.NET Forums
November 15, 2019, 03:56:32 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: apache setting or file ownership  (Read 8036 times)
0 Members and 1 Guest are viewing this topic.
mylinuxku
Member
*
Posts: 2

ibwan@hotmail.com
View Profile
« 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.
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #1 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.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
mylinuxku
Member
*
Posts: 2

ibwan@hotmail.com
View Profile
« Reply #2 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!