Hi,
Is there any way that whenever any user will create any file or directory . The root will become its user and group owner by default. Basically I want this scenario in /var/www/html directory..
Hi,
Is there any way that whenever any user will create any file or directory . The root will become its user and group owner by default. Basically I want this scenario in /var/www/html directory..
Please give me suggestions........
You can setgid a folder so that all files and folders created in that folder will automatically take the group ownership of that folder's owner.
You may need to sudo.Code:chmod g+s /folder/name
I don't know how to make all files set to a specific owner though, because Linux ignores setuid on folders.
chown will change the owner of a file / dir
file
directoryCode:chown <user> <file>
Code:chown -R <user> <dir>
Last edited by paul_be; June 8th, 2012 at 11:49 AM.
linux-user#492021/ubuntu-user#27918
Google is my homeboy
Bookmarks