Operating System - HP-UX
1754294 Members
2644 Online
108813 Solutions
New Discussion юеВ

Setting group level permission on nfs mount

 
sreeram n
Frequent Advisor

Setting group level permission on nfs mount

I have requirement from one of the application team.
They want to set group level permission for directories under nfs mount.

That means for a given directory they want to give RWX permission for group1 and RX permission for group2.

Is it possible?

Thanks in advance.
Sreeram
Sreeram N
7 REPLIES 7
Horia Chirculescu
Honored Contributor

Re: Setting group level permission on nfs mount

Hello,

It is possible if Group2 would be "others", meaning that you would chown the directory and files under this directory to some user from group1 then

chmod -R o-rw directory
chmod -R u+RW directory


Horia.
Best regards from Romania,
Horia.
sreeram n
Frequent Advisor

Re: Setting group level permission on nfs mount

Yes but this way all users on the system will get that permission (the permission which we are going to grant to others)
Sreeram N
Dennis Handly
Acclaimed Contributor

Re: Setting group level permission on nfs mount

>but this way all users on the system will get that permission (the permission which we are going to grant to others)

Then you need to use ACLs to setup your special permissions.
Dennis Handly
Acclaimed Contributor

Re: Setting group level permission on nfs mount

>Then you need to use ACLs to setup your special permissions.

Oops, you can't do this for NFS.
sreeram n
Frequent Advisor

Re: Setting group level permission on nfs mount

Any reason why ACL is not recomented for NFS

Thanks
Sreeram
Sreeram N
Johnson Punniyalingam
Honored Contributor

Re: Setting group level permission on nfs mount

NFS is well suited for sharing entire file systems with a large number of known hosts in a transparent manner. However, with ease of use comes a variety of potential security problems

soft mounts is not recommended as they can generate I/O errors in very ... since the most recent ACL technology is not compatible

ACLs cannot be used over NFS connections at the present. This means:

ACLs are respected on the server side. The system behaves as if the mapped user which accesses files via NFS is working locally on the server.
ACLs are invisible on the side of the accessing computer. The ACLs can neither be displayed, nor be changed. The client behaves as if it would access a file system which doesn't support ACLs.
Problems are common to all, but attitude makes the difference
sreeram n
Frequent Advisor

Re: Setting group level permission on nfs mount

Thanks All. I decided to create a user and make owner of the required folders and give sudo access to the group members to su to that user.

Thanks to all of you.

Thanks
Sreeram
Sreeram N