[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Client connect to NFS server as user?



On 06/21/2009 07:51 AM, Bob Goodwin wrote:
I'm still trying to mount as user "bobg" without success! 192.168.1.48
is the server, 192.168.1.9 is a client and in the "box9" client I have
the following lines in /etc/fstab:

192.168.1.48:/home /home/NFS-files nfs rw,users 0 0
> 192.168.1.9:/home  /home/NFS-files nfs rw,users 0 0
I'm not certain both are required but when I su to root everything works
as expected. As user "bobg" I get the following:

Don't list the client in fstab. You should have only one line specifying any given mount point. (That is, the second field should be unique)

[bobg box9 ~]$ mount.nfs box48:/home/NFS-files /mnt/home
mount.nfs: permission denied: no match for /mnt/home found in /etc/fstab

/mnt/home is the directory on the client where the server files should
appear

Well, then, that's what you should have said in /etc/fstab:

box48:/home	/mnt/home	nfs	users	0 0

With that in /etc/fstab, a user should be able to mount the directory by "mount /mnt/home" and unmount with "umount /mnt/home".


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]