On Sunday 13 August 2006 21:22, Wade Jones wrote:
On Sunday 13 August 2006 14:18, Martin Love wrote:
Set the mode on the directory /export/project so that the group owner is migration and user/group/other can read and write to this directory.
Set the permission so that when a file is created in the directory /export/project the group migration is automatically assigned as the group owner.
I worked out the second paragraph... I used the chmod 2777 project.. This means that when a file is created it automatically gets the owner of Migration....
I'm still struggling with the first paragraph.... I can just do a chmod 777 and then everyone has full access, but I don't think this is the right way to do things...
Thanks, Martin *************************************************************************** ****** There are 3 permissions applied to directories and files. Read, Write, Execute 4 2 1 = 7 These permissions are applied to User, Group, and all Other.
You need to set Read and Write, but not execute for all three on the directory. (777 sets RWX for all, i.e. U,G,O)
For example, to set Read,Write,Execute for User, Read,Write for Group, and Read for Other, the mode would be: User,Group,Other 7 6 4
To set Read,Write for User, Read,Write for Group, and Read,Write for Other, the mode would be: User,Group,Other 6 6 6 i.e. #> chmod 2666 /export/project
Hi Wade, I did try that, but users of the group migration can't access the directory... or create files in the directory... It says permission denied The directory has root,migration The user pilot1 for example is a member of the migration group, but they can't access the directory /export/projects or create a file.. touch /export/project/test ... I get permissions denied again... But as soon as I add the X execute right they can access and create files etc.. Thanks, Martin