1834364 Members
2075 Online
110066 Solutions
New Discussion

Re: /etc/netgroup config

 
Lee Huei
Regular Advisor

/etc/netgroup config

hi,

i need to achive the requirement below:
i want to share some nfs file system to 2 host but to certain users . not root.

this is what i've done:
NSF server
=========
/etc/netgroup:
shareuser (host1,luser1, ), (host2,user2, )

/etc/exports:
/test -access=shareuser

# exportfs -a
# showmount -e <<== can see entry

NFS client
=========
log in as root , can mount /test ?? why

i do not use NIS, is thsi mandotory ? kindly guide me.. thanks

4 REPLIES 4
G. Vrijhoeven
Honored Contributor

Re: /etc/netgroup config

Mico,

check man netgroup:
For remote mounts, the information in netgroup classifies machines.for remote logins and remote shells, it classifies users.

Regards,

Gideon
Sridhar Bhaskarla
Honored Contributor

Re: /etc/netgroup config

Hi,

You have to be root to mount NFS filesystems. That's the behaviour. Your export options will not prevent root from mounting the NFS mount points.

Try writing into that directory.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Lee Huei
Regular Advisor

Re: /etc/netgroup config

hi,

From man page:
"For remote mounts, the information in netgroup classifies machines;

for remote logins and remote shells, it
classifies users. "

What it it mean by remote mount ?

I'm accessing the NFS client via telnet session. Thanks
Lee Huei
Regular Advisor

Re: /etc/netgroup config

Hi,

I've givent eh user1 & user2 root acces(UID=0).

When i login as root , i can write into the files shared
when i login as user1 & user2, i can do the same.

any idea?