1831479 Members
3457 Online
110025 Solutions
New Discussion

Restrict NFS access

 
george_57
Occasional Advisor

Restrict NFS access

Hi Experts,
Is there any way I could restrict certain users access to NFS mounts?

Thanks in advance
none
3 REPLIES 3
Michael Tully
Honored Contributor

Re: Restrict NFS access

Change the permissions of the mount to only the groups of users that require it.

e.g. Joe, Fred and George are part of group 'nfsaccess'

# chgrp nfsaccess /mynfs

Anyone for a Mutiny ?
Paula J Frazer-Campbell
Honored Contributor

Re: Restrict NFS access

Hi

Also the file /etc/exports can be configuted to allow/disallow mounts of the NFS file system

e.g.

sysadmin@N-0/>cat /etc/exports
/avroTWO -anon=65534,ro,root=k1:k2,access=k1:k2
/avro -anon=65534,ro,root=k1:k2,access=k1:k2
/MONTHEND -anon=65534,ro


See man NFS.


HTH

Paula
If you can spell SysAdmin then you is one - anon
Steve Labar
Valued Contributor

Re: Restrict NFS access

You could setup netgroups to define what access you want. In /etc/netgroup add lines

groupname (hostid,userid,domain)

Then in /etc/exports assign the export access by netgroup name. You can do a man netgroup for more information.

Good Luck.

Steve