Problems accessing a Linux NFS share as a normal user
William A. Mahaffey III
wam at hiwaay.net
Tue Oct 7 03:30:34 UTC 2014
On 10/06/14 22:16, Martin wrote:
> I am at the brink of pulling my hair out on this one.
>
> I have a Debian Linux box server that is sharing some directories on LAN using NFS.
>
> The /etc/export:
>
> /pub1/ foobox(crossmnt,rw,async,no_subtree_check)
>
> I can, as a normal user, on any Linux box on the LAN mount this directory and because it is shared as "rw" I can both read and write.
>
> However, I also need to mount this on a FreeBSD box as a normal user, not root.
>
> The directory is setup on the FreeBSD box in fstab:
>
> share:/pub1 /home/user/mnt/share/pub1 nfs noauto,rw 0 0
>
> The user is in group "wheel" and "network", however he cannot mount whether he is using fstab or not. The 'nfs_client_enable="YES"' is in rc.conf too.
>
> $ mount mnt/share/pub1
> mount: mnt/share/pub1: unknown special file or file system
>
> Trying full path:
>
> $ mount /home/user/mnt/share/pub1
> [tcp] share:/pub1: Permission denied
>
> Trying without fstab:
>
> $ mount -t nfs share:/pub1 mnt/share/pub1
> [tcp] share:/pub1: Permission denied
>
> $ mount -t nfs share:/pub1 /home/user/mnt/share/pub1
> [tcp] share:/pub1: Permission denied
>
> I can mount and write without problems as root.
>
> How do I solve this?
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
Try adding 'users' to your fstab arguments: 'noauto,rw,users' .... You
might also check the permissions of the share mount-point on the host
machine, w/ the share unmounted, that can give issues as well. I don't
have a good sol'n for the latter problem, since I have the same non-root
user on all boxen on my soho LAN, but I know it can be worked around
.... $0.02, no more, no less ....
--
William A. Mahaffey III
----------------------------------------------------------------------
"The M1 Garand is without doubt the finest implement of war
ever devised by man."
-- Gen. George S. Patton Jr.
More information about the freebsd-questions
mailing list