PDA

View Full Version : Full Rights to a Dir!


weisan
04-18-2009, 01:23 PM
How can I give a group called 'testgroup' full rights to their private dir ??
So all the group members can upload/delete the others files inside that private dir ??

razoor
04-18-2009, 07:48 PM
SITE CHATTR +h =testgroup
will sort so just testgroup is abel to see that dir.

then look under permissions in the .ini file
Just add the group there.

Yil
04-19-2009, 12:32 AM
1) site chattr +h DirName =testgroup
2) site chmod -R 777 DirName
3) edit the .ini file to make sure things like Delete are valid for users in that section... "Delete = /Path/DirName/* 1VM =testgroup". Use quotes around path if it contains spaces. You could open up /Path/* to everyone and rely on the private group setting to control who can enter that dir, but it's probably safer to enumerate the rights in the .ini though it's more work... Probably something I should think about making easier to do so people don't need to edit the .ini file like making the private dir setting use named permission templates... hmm...

weisan
04-19-2009, 05:42 AM
Yeh .. seems to work now after I did these changes to .ini file:

#Delete = /* 1VM
Delete = /GROUPS/testgroup/* 1VM =testgroup

What about if I want to add more groups ??? Seems not to work if I don't comment out the first "Delete" line.

Yil
04-19-2009, 12:59 PM
Read the comments above in the .ini file... The rights are determined by the first matching line in the [VFS] section. Thus more specific paths must occur first. The original Default= line matches everything and thus it found first. Just move the /GROUPS/ stuff above the defaults.

weisan
04-19-2009, 06:06 PM
I'm a bad reader :( ... works fine now :) Thx for all the help!