You are not logged in.
Pages: 1
So the other day I was with a friend who owns a Mac (Gasp!) and we wanted to share a file over an ethernet cable and weren't able to; partly because we didnt kow much about what we were doing.
Anyway that made me realize I dont know how to use NFS. So today i went to the arch wiki and followed the steps there and trying to start a local NFS server and connect to it from the same machine. It doesnt appear to be working and displays:
mount.nfs: access denied by server while mounting 127.0.0.1:/home/bashir/Other/Scratch
I have no idea why this is happening. Any ideas? I should have access since it is the same machine.
here is the only uncommented line in my /etc/exports
/home/bashir/Other/Scratch 127.0.0.1(rw,sync) # Read-write access to a client at IP address
Only uncommented lines in my /etc/host.allow
nfsd: 127.0.0.1/255.255.255.255
rpcbind: 127.0.0.1/255.255.255.255
mountd: 127.0.0.1/255.255.255.255
I dont have the services autostart but i run these to start them
sudo /etc/rc.d/rpcbind start
sudo /etc/rc.d/nfs-common start
sudo /etc/rc.d/nfs-server start
I then try to connect as a client with
sudo mount 127.0.0.1:/home/bashir/Other/Scratch /mnt/Scratch
Both the folders /home/bashir/Other/Scratch and /mnt/Scratch exist.
If there is any other information I need to provide please let me know. Thanks a ton for the help.
EDIT: I never installed any firewalls or anything.
Last edited by linuxguy (2011-03-28 21:37:08)
Offline
IIRC this is an error saying that your permissions don't match. Try temporarily setting permissions for the host-folder to 777 and see what happens...
On second thought: you didn't mention the contents of your /etc/exports? Did you set it up conform the wiki?
Offline
i mentioned the contents of /etc/exports. Only uncommented line in there is:
/home/bashir/Other/Scratch 127.0.0.1(rw,sync) # Read-write access to a client at IP address
I think that should be correct.
I tried setting it to 777 and it didnt change anything.
I have also been playing around with samba and that works fine. Even works with the built in gnome tools: can make a samba share with System >> Shared Folders application and mount it with nautilus or from the command line.
sudo mount -t cifs -o username=bashir,password=*** //127.0.0.1/Scratch /mnt/Scratch
Because it works with samba i dont think the paths are an issue; but then again i dont see any reason why it isnt working.
Offline
I have it working with nfs v4. In v4, you need to define the NFS root - maybe try doing that?
https://wiki.archlinux.org/index.php/NFSv4#Exports
Offline
are you sure that 127.0.0.1 is the correct address ? Running "ifconfig" will give you the information you need.
Offline
Hi,
Have you specified a domain in /etc/idmap.conf as per the wiki instructions?
https://wiki.archlinux.org/index.php/NFSv4#ID_mapping
This file needs to be editied on both the SERVER and CLIENT. The Domain entry should match on both.
Since you are doing a test on the loopback interface (127.0.0.1), you should only have to modify this once. However, your other, physical, client PCs will need to have this edited. I am not 100% positive, but this should translate to any *NIX system where NFSv4 is installed.
Offline
Pages: 1