how to have files created by CMS have the same ownership as SSH user

Posted by Cam on Super User See other posts from Super User or by Cam
Published on 2010-05-10T04:41:50Z Indexed on 2010/05/10 4:49 UTC
Read the original article Hit count: 219

Filed under:
|
|
|
|

I am having difficulty on our ubuntu server whereby I have an SSH user that when I create files using this user the ownership is web_user:www-data

The problem is when a file is uploaded or created using a content management system like joomla. When files are uploaded through Joomla - such as components / modules...

The ownership is set to www-data:www-data

This means that I need to then chown all new files to web_user:www-data so we can edit the files.

Is there a way to set for a directory and sub-directories that all new files created have the ownership of web_user:www-data?

Do I need to use something like setuid or setgid?

Any help would be greatly appreciated.

© Super User or respective owner

how to have files created by CMS have the same ownership as SSH user

Posted by Cam on Server Fault See other posts from Server Fault or by Cam
Published on 2010-05-10T04:41:50Z Indexed on 2010/05/10 22:55 UTC
Read the original article Hit count: 219

Filed under:
|
|
|
|

I am having difficulty on our ubuntu server whereby I have an SSH user that when I create files using this user the ownership is web_user:www-data

The problem is when a file is uploaded or created using a content management system like joomla. When files are uploaded through Joomla - such as components / modules...

The ownership is set to www-data:www-data

This means that I need to then chown all new files to web_user:www-data so we can edit the files.

Is there a way to set for a directory and sub-directories that all new files created have the ownership of web_user:www-data?

Do I need to use something like setuid or setgid?

Any help would be greatly appreciated.

© Server Fault or respective owner

Related posts about ubuntu

Related posts about file