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.
-Hans
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
On the server do “rpcinfo -p localhost” in a terminal. This will give a listing of running RPC programs that has to include mountd, portmapper, nfs, and nlockmgr.
On the client do “rpcinfo -p”, which has to return status, portmapper, and nlockmgr as running.
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
root's password:
sudo: rpcinfo: command not found
hansoffate@reborn:~/Desktop>
From client:
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?
-Hans
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:
setserial imagemagick
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 136 not upgraded.
Take a look at your exports file. I believe you want 192.168.1.0/24 to export to all machines on your network. After changing it, as root, run exportfs -ra to re-export the shares.
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.
What do you see in the log on your server? I did a quick test setup using the defaults that Yast presented and using openSUSE 11.1 as the server and a Ubuntu 8.04 machine as the client.
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.