Koozali.org: home of the SME Server

Permissions problem

Offline chrisj

  • **
  • 27
  • +0/-0
Permissions problem
« 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

Offline Gert

  • *****
  • 208
  • +0/-0
    • http://www.huge.co.za
Re: Permissions problem
« Reply #1 on: November 24, 2009, 10:45:28 PM »
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

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Permissions problem
« Reply #2 on: November 25, 2009, 02:09:54 AM »
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.

Quote
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.




Offline Gert

  • *****
  • 208
  • +0/-0
    • http://www.huge.co.za
Re: Permissions problem
« Reply #3 on: November 25, 2009, 06:46:25 AM »
ok, "chmod 660 * -R" then. (Readable & writable by user & group only)

but yes: most definitely "use the permissions model which SME server already supports"

Offline johnp

  • *****
  • 312
  • +0/-0
Re: Permissions problem
« Reply #4 on: November 25, 2009, 08:02:07 AM »
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

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Permissions problem
« Reply #5 on: November 25, 2009, 01:33:23 PM »
The SharedFolders contrib claims to give you better access control granularity (but I've never used it...)


Offline chrisj

  • **
  • 27
  • +0/-0
Re: Permissions problem
« Reply #6 on: November 25, 2009, 03:50:35 PM »
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