...

View Full Version : User:Group ownership problems



jayellis
04-29-2006, 05:15 AM
if have a code and i create any file with fopen(), but the user and group say httpd:httpd and i can't edit them. I need them to say jayellis:jayellis

Vin0rz
04-29-2006, 11:31 AM
hey i wish to answer your query.
but your preblem specification is not accurate.

You might consider publishing it here ... it will be answered in few hours.

That's a forum with six members!?!


if have a code and i create any file with fopen(), but the user and group say httpd:httpd and i can't edit them. I need them to say jayellis:jayellis

You would have to have access to the server with root priviledges. Assuming it's a Linux server, you would have to go to a terminal and type
$ sudo chown jayellis:jayellis filename.php

You can't do that in PHP. Anyway, if I read this, apparently your scipts are executed as user httpd and not as jayellis, so why would you want to change that?

firepages
04-29-2006, 04:00 PM
<?php chmod($file, 0777);?> will make the files editable (by anyone~ so remember to reset the permissions afterwards)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum