logo       

Re: [osol-discuss] no user mount of nfs filesystem: msg#00861

opensolaris-discuss

Subject: Re: [osol-discuss] no user mount of nfs filesystem


Use the automounter. :-)

Looks like we can use a nice direct map entry as we have discussed before. The system will automatically mount it upon first access (by any user).

This in /etc/auto_direct on the client should do:
/vzfsTest vzfs:/vzfsTest

Then, after "svcadm restart autofs" (or run "/usr/sbin/automount"), you should simply be able to "cd /vzfsTest" as any user on the client, and the directory should be mounted for you.

Personally, I would also make sure the mount point on the client is mode 777, and owned by root. Non-777 permissions can cause strange issues. I'm not sure about non-root ownership.

Regards,
Brian

Harry Putnam wrote:
Summary:
What do I need to do so that my user can mount an nfs filesystem being
offered by another osol OS?

Details:
The server (osol 2010.10 b118) created a zfs fs with sharenfs=on (no
special options)

mounted it at /vzfsTest

chown 1000:15 /vzfsTest (reader:wheel)
chmod g+s /vzfsTest (set-gid)

On a client (osol 2009.06 b111):
user reader is also uid 1000 gid 15 (reader:wheel)

mkdir /vzfsTest
chown 1000:15 /vzfsTest

On the client.. as user reader (uid 1000)
mount -Fnfs vzfs:/vzfsTest /vzfsTest
nfs mount: insufficient privileges



_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@xxxxxxxxxxxxxxx

--
Brian Ruthven
Solaris Revenue Product Engineering
Sun Microsystems UK
Sparc House, Guillemont Park, Camberley, GU17 9QG

_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@xxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise