Forum Moderators: phranque

Message Too Old, No Replies

Change Apache directory ownership

         

Lastwords

10:02 am on Apr 17, 2008 (gmt 0)

10+ Year Member



Hi,

We have a php application that creates folders in the www directory. The directory is called workingfiles and the sftpuser owns the files within there:

drwxr-xr-x 2 sftpuser sftpgroup 4096 2008-04-17 10:43 workingfiles

When our application creates a new directory within workingfiles the apache user (www) and group (www) has ownership, like this:

drwxr-xr-x 2 www www 4096 2008-04-17 10:44 testapp

How can I make sure the newly created directory gets the same user and group as the workingfiles directory (sftpuser sftpuser)?