Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: chrisj on November 24, 2009, 09:36:05 PM
-
Hi
I want to change permissions on two directories (and all the files in it), located in an ibay named Share but I can't do this using the permissions tab on the properties page for the directory when using a PC with XPPro SP2 on it. XP just says that the permissions cannot be changed and I noticed although I am on the permissions tab along with the everyone group none of the boxes are checked indicating that no-one has any permissions on the directory.
So can I change the permissions on directories on the server itself using the command line and if so can someone please help me with the syntax for it. I need the group 'everyone' to have full read / write / modify access as this is to be a completely shared directory for the everyone team.
Thanks
Chrisj
-
You should set the permissions in the Server-Manager > Ibays
But if you really want to set the permissions in the console do the following:
cd /home/e-smith/files/ibays/share/files
chgrp shared * -R
chmod 777 * -R
-
I want to change permissions on two directories (and all the files in it), located in an ibay named Share ...
I'd advice you not to do that. Re-organise your data instead, and use the permissions model which SME server already supports.
chmod 777 * -R
You should never use permissions of 777. It's always avoidable, and always wrong. User 'nobody' should never be able to create files anywhere.
-
ok, "chmod 660 * -R" then. (Readable & writable by user & group only)
but yes: most definitely "use the permissions model which SME server already supports"
-
Follow Charlie's advice. For sure if you heed his words, your posts for help will be diminished.
I've always found it best to play inside the rules as that ensures hassle free updates. YMMV
-
The SharedFolders (http://wiki.contribs.org/SharedFolders) contrib claims to give you better access control granularity (but I've never used it...)
-
Thanks guys for all your help and inputs. Really appreciated. I have taken the advice on board and will try the various advice on my test server before I implement here on the company's server. I will also have a look at Shared Folders as suggested.
Chrisj