|
Users Cannot Write to a Public Share
“
We are facing some troubles with file/directory permissions. I can log on the domain as admin user (root),
and there's a public share on which everyone needs to have permission to create/modify files, but only
root can change the file, no one else can. We need to constantly go to the server to
chgrp -R users *
and
chown -R nobody *
to allow
other users to change the file.
”
There are many ways to solve this problem, and here are a few hints:
-
Go to the top of the directory that is shared.
-
Set the ownership to whatever public user and group you want
$ find `directory_name' -type d -exec chown user:group {}\;
$ find `directory_name' -type d -exec chmod 1775 {}\;
$ find `directory_name' -type f -exec chmod 0775 {}\;
$ find `directory_name' -type f -exec chown user:group {}\;
|
|