NFS mounting for regular users

I am trying to mount an NFS share with permissions for a normal user to copy files. I keep getting the error: nfs mount: insufficient privileges if I try to use the mount command as the user. If I mount the share a root, then I can't copy files to the share unless i'm root.

This is to a linux server in case that makes any difference, any help would be appreciated..

Thanks,

[396 byte] By [unixman99a] at [2007-11-26 21:30:34]
# 1

> I am trying to mount an NFS share with permissions

> for a normal user to copy files. I keep getting the

> error: nfs mount: insufficient privileges if I try

> to use the mount command as the user. If I mount the

> share a root, then I can't copy files to the share

> unless i'm root.

Normal users can't issue a mount. If you need a normal user to mount a device, set up the automouter for it. The fact that root performs the mount does not affect the permissions on the mount point.

You'll need to check the permissions on the device, uids, etc. What version of NFS are you using v2/v3 or v4? What are the share options on the server?

> This is to a linux server in case that makes any

> difference, any help would be appreciated..

Then you'd need the export options. I'm also presuming that it does not use v4 by default. So I'd check on UID issues.

--

Darren

Darren_Dunhama at 2007-7-10 3:11:24 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2
Thanks, I suspect it must UID issues like you suggested. I just wonder what is the correct way to allow UID's to map over when Solaris uses a different range for regular users than linux does. Changing the UID is not really an option, neither is NIS. Any ideas?Thanks,
unixman99a at 2007-7-10 3:11:24 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3

NFS v2/v3 require the UIDs to map. There is no other option. It doesn't care for usernames. Only the UID is sent over the wire.

NFS v4 maps via username, but has other issues. Solaris 10 supports v4. You can probably get v4 support for Linux, but I have no idea how.

--

Darren

Darren_Dunhama at 2007-7-10 3:11:24 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 4

I just realized, UID's can't be the issue because its just copying the files with whatever the solaris UID happens to be, regardless of what it corresponds to on the linux box. As it turned out, the directory I mounted the share to always had root's ownership, so I had to mount it, then do a chown, andthen it worked fine. I'm not sure why solaris has this problem...

unixman99a at 2007-7-10 3:11:25 > top of Java-index,Solaris Operating System,Solaris 10 Features...