I'm trying to set up an NFS server to browse files from a remote Ubuntu server on a Mac client.
I'm having trouble finding out what to put as my client hostname/address in the
/etc/exports entry. I assume it is supposed to be the client's IP address, but I seem to be running into permissions issue. The only thing that seems to work is using the wildcard
* as the hostname/address.
On the Mac client, I execute the following:
$ ifconfig | grep "inet " | grep -v 127.0.0.1 inet 192.168.1.112 netmask 0xffffff00 broadcast 192.168.1.255
I use that IP address in Ubuntu server's
/etc/exports file like this:
/etc/auto_master looks like this:
/net -hosts -nobrowse,nosuid,locallocks,nfc,actimeo=1
sudo exportfs -vra on the server and
sudo automount -vc on my Mac client, I still get "Permission denied" when I try run:
$ ls /net/<REMOTE IP>/home/user ls: /net/<REMOTE IP>/home/user: Permission denied
However, when I change the server's
/etc/exports to just a wildcard, I can run the
ls command successfully:
However, I know that this is not optimal from a security standpoint.
I've tried a few different variations of my Mac's IP address, but I can't seem to get around the permissions issue unless I use the wildcard to specify, which leads me to believe that my other settings are fine except for the address.
How can I find the correct address to put in this