Date: Mon, 06 Oct 2014 22:36:41 -0500 From: "William A. Mahaffey III" <wam@hiwaay.net> To: freebsd-questions@freebsd.org Subject: Re: Problems accessing a Linux NFS share as a normal user Message-ID: <54335FC9.80405@hiwaay.net> In-Reply-To: <164141412651763@web23m.yandex.ru> References: <164141412651763@web23m.yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54335FC9.80405>