Hi All, I'm not sure if this is the right place to post this question, but here goes. I'm currently studying for my SLES 9 exam and have been using the self study guide.. I'm trying to go through the LiveFire exercise, but I'm stuck. I have spent all day on these 2 paragraphs.. and I mean all day.. Since 09:00 GTM till now. I have searched the web and reread the section on the study guides, but still cant work it out. Here are the 2 paragraphs :- 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. The directory /export/project is created and the acl option has been added to the fstab. I also have created a group called migration. I changed the group owner to migration, so /export/project is :- drwxr-xr-x root migration project If anyone could point me in the right direction that would be great.. Any help much appreciated. Martin Hi Sorry for posting this again, but there was a problem with the email address I used before.
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.
This one does not need ACLs, in fact they won't help you automatically assign the group owner, but rather /giving someone/ (possibly a group) a set of permissions.
If anyone could point me in the right direction that would be great..
What is the actual problem? Jan Engelhardt --
On Sunday 13 August 2006 20:09, Jan Engelhardt 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.
This one does not need ACLs, in fact they won't help you automatically assign the group owner, but rather /giving someone/ (possibly a group) a set of permissions.
If anyone could point me in the right direction that would be great..
What is the actual problem?
Hi Jan, 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... I have tried, but I just can't get my head round the whole ACL.... Thanks, Martin
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
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
On Sun, 2006-08-13 at 21:35 +0100, Martin Love wrote:
On Sunday 13 August 2006 21:22, Wade Jones wrote:
*************************************************************************** ****** 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
You do indeed need to set the execute bit for directories in order to have access to the directory. Perhaps 2777 is more of what the problem is looking for as a solution. It provides read/write for all and sets the sticky bit so all files/directories are created as group migration. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
On Sunday 13 August 2006 21:14, Martin Love wrote:
Here are the 2 paragraphs :-
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.
mkdir /export/project chgrp migration /export/project chmod a+rw /export/project chmod g+s /export/project Enjoy! :-)
participants (5)
-
Jan Engelhardt
-
Ken Schneider
-
Martin Love
-
Silviu Marin-Caea
-
Wade Jones