[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-developers] Httpd User- Copying files



Hi All,

I wish to copy file from a users dir to the home web using a php command...

Exec( "cp /home/sites/DOMAIN/users/USER/file.html /home/sites/DOMAIN/web/" );

However there is a permissions error as httpd user does not have correct access . 
Can I safely add httpd to a group to make this work or is that unsafe. 
Is there another way around this that is a fix that will work for any site rather than me having to make changes everytime a new site is created?

Kind regards 9and thanks for any help)

Matt


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed.  If you have received this mail in error please notify
the system manager.
 
This footnote also confirms that this email message has been virus
checked.
**********************************************************************