I have configured the NFS Server through the Yast2 module on my newly installed openSUSE box. I created a /share mount from my second hard drive which have the folders Musik and Videos. Here is my /etc/exports
I also use an Ubuntu system as my HTPC which I’d like to be able to have access to these folders. However, when I try to mount it, I get an access denied error. I made sure my firewall is off (for the time being) and that my ip address is correct.
Any help would be greatly appreciated.
hansoffate@grunt:/share/Videos$ sudo mount 192.168.1.112:/share/Videos /share/Videos/Upstairs_Videos/
mount.nfs: access denied by server while mounting 192.168.1.112:/share/Videos
hansoffate@grunt:/share/Videos$ sudo mount 192.168.1.112:/share/Musik /share/Musik
mount.nfs: access denied by server while mounting 192.168.1.112:/share/Musik
hansoffate@reborn:~/Desktop> rpcinfo -p localhost
Program 'rpcinfo' is present in package 'glibc', which is installed on your system.
Absolute path to 'rpcinfo' is '/usr/sbin/rpcinfo', so it might be intended to be run only by user with superuser privileges (eg. root).
bash: rpcinfo: command not found
hansoffate@reborn:~/Desktop> sudo rpcinfo -p localhost
sudo: rpcinfo: command not found
hansoffate@grunt:~/Documents/steve/ppdp-fastaget$ rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
I also changed /etc/sysconfig/nfs so that NFS4_SUPPORT=“no”
I wonder why rpcinfo isn’t working on the server, even though it says the package is installed.
Thanks for the help msharnden. I was able to get rpcinfo working and it looks like everything is running correctly. Also, when trying the apt-get install line on my client ubuntu system, those packages seem to be installed. Do you think I’m having the nfs issue because I haven’t setup /etc/hosts.allow? I am not using any firewall, so I don’t think this is the issue. Any other ideas what might be causing this issue?
hansoffate@grunt:~/Documents/steve/ppdp-fastaget$ sudo apt-get install portmap nfs-common
[sudo] password for hansoffate:
Reading package lists... Done
Building dependency tree
Reading state information... Done
portmap is already the newest version.
nfs-common is already the newest version.
The following packages were automatically installed and are no longer required:
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 136 not upgraded.
I tried changing it to 192.168.1.0/24 and 192.168.1.109 (ip of the client) and just *. All of them had the same access denied error when typing : sudo mount 192.168.1.112:/share/Videos /share/Videos/Upstairs_Videos/
Could it be a directory permissions/ownership problem? I can’t believe this share is causing such a problem. Every other time I have made my nfs shares with ubuntu, mandrake, or fedora, I never ran into this problem.
I have had nfs4 turned off. I just tried turning it on , but I still have the same issue. When I get home tonight, I am going to reload the openSUSE box and setup the NFS share first thing to see if it will work.
I just did a fresh install of openSUSE. I installed the YAST2 NFS server, turned off the firewall, then launched the configuration gui, and set up my shares. I tried connecting with my ubuntu box, and I still have the error, mount.nfs: access denied. I don’t understand what can be causing this problem because it was working with my ubuntu installation 4 days ago.
After waiting a few days, reinstalling opensuse another time, and going over my logs on both my client and server, I have finally got it working. The thing is, I have changed nothing in my setup procedure. I think the client was the one to blame for the error though.