Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Set default owner and group in folder

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
semkius
Posts: 1
Joined: 2016-11-16 10:24

Set default owner and group in folder

#1 Post by semkius »

After I typed chown -R root:www-data /etc/folder/ all files that is created in /etc/folder gets owner www-data and group www-data as well (www-data:www-data). How to make that new files that is created in /etc/folder directory would have root as a owner and www-data as a group (root:www-data) ?

after chmod +s dir/ command new files that are created with root,other user is fine (they become owned by root and www-data group). But when I launch bash script from web,php (exec('bash.sh')) the new file is still created with owner and group as www-data:www-data.

Post Reply