LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-09-2013, 03:44 PM   #1
dhvl2712
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Rep: Reputation: Disabled
Looked everywhere, NFS mount gives me a permission denied error. [Fedora 19]


So I've looked as much as I can and I can't find the solution to this.

I can't mount the NFS exports of my Fedora 19 machine on my laptop. The client is 192.168.1.101 and the server is 192.168.1.100

This are the outputs of the following commands

This is mount -v
Code:
$ mount -v 192.168.1.100:/home/user/Documents

mount.nfs: timeout set for Sat Aug 10 01:10:42 2013
mount.nfs: trying text-based options 'vers=4,addr=192.168.1.100,clientaddr=192.168.1.101'
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting dhaval:/home/dhaval/Documents
This is rpcinfo from the client:

Code:
$ sudo rpcinfo -p 192.168.1.100

rpcinfo: can't contact portmapper: RPC: Remote system error - No route to host
This is my exports file
Code:
$ sudo cat /etc/exports

/home/dhaval/Documents 192.168.1.101(rw,sync,nohide)
This is /etc/sysconfig/nfs
Code:
#
# Optinal options passed to rquotad
RPCRQUOTADOPTS=""
#
# Optional arguments passed to in-kernel lockd
#LOCKDARG=
# TCP port rpc.lockd should listen on.
LOCKD_TCPPORT=32803
# UDP port rpc.lockd should listen on.
LOCKD_UDPPORT=32769
#
# Optional arguments passed to rpc.nfsd. See rpc.nfsd(8)
RPCNFSDARGS=""
# Number of nfs server processes to be started.
# The default is 8. 
RPCNFSDCOUNT=8
# Set V4 grace period in seconds
#NFSD_V4_GRACE=90
#
# Optional arguments passed to rpc.mountd. See rpc.mountd(8)
RPCMOUNTDOPTS=""
#
# Optional arguments passed to rpc.statd. See rpc.statd(8)
STATDARG=""
#
# Optional arguments passed to rpc.idmapd. See rpc.idmapd(8)
RPCIDMAPDARGS=""
#
# Optional arguments passed to rpc.gssd. See rpc.gssd(8)
RPCGSSDARGS=""
# Enable usage of gssproxy. See gssproxy-mech(8).
GSS_USE_PROXY="no"
#
# Optional arguments passed to rpc.svcgssd. See rpc.svcgssd(8)
RPCSVCGSSDARGS=""
#
# To enable RDMA support on the server by setting this to
# the port the server should listen on
#RDMA_PORT=20049 
#
# Optional arguments passed to blkmapd. See blkmapd(8)
BLKMAPDARGS=""
MOUNTD_PORT=892
STARTD_PORT=662

Firewall is disabled and I've done 'setsebool nfs_use_home_dirs 1'

I don't know what else to do honestly. Could someone please help me? Am I missing something? What am I doing wrong?
 
Old 08-09-2013, 05:04 PM   #2
itlb
LQ Newbie
 
Registered: Aug 2013
Distribution: Debian
Posts: 29

Rep: Reputation: Disabled
Looked everywhere, NFS mount gives me a permission denied error. [Fedora 19]

Is portmapper service running on the server and client? can you telnet/nmap to portmapper/rpc ports on server(not sure what they are off top of my head)? sounds like you could have issues with the network, can ping the server from the client?
 
Old 08-09-2013, 05:39 PM   #3
dhvl2712
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by itlb View Post
Is portmapper service running on the server and client? can you telnet/nmap to portmapper/rpc ports on server(not sure what they are off top of my head)? sounds like you could have issues with the network, can ping the server from the client?
I can definitely ping to the server. nmap says that port 111 is open, so I think portmapper is running. I tried it in a fresh CentOS installation and connecting both PCs via a LAN cable, and still I get the same problem. Only with CentOS, showmount gives me "Program Not registered"
 
Old 08-10-2013, 04:55 PM   #4
dhvl2712
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Solved

[SOLVED]


1: I enabled the no_root_squash option in the exports

2: I started the nfs services on the client, which I didn't earlier

3: I didn't start all the services on the server that I was supposed to (I think).

Services I started on SERVER: nfs-server, nfs-lock, nfs-idmap, nfs-mountd, nfs-rquotad

On CLIENT: All above services except nfs-server. I don't know which one exactly fixed it, but they did.

Also, on the CENTOS server: I started the nfs, rpc, and nfslock services.

And yeah, it worked. With proper permissions and everything.
 
  


Reply

Tags
denied, fedora, nfs, permission, route


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
remote mount of nfs gives permission denied error - FUSE file sytem, bob.keslin@oracle.com Linux - Newbie 1 04-06-2011 05:50 PM
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 12:34 PM
Permission Denied Error Message when trying to mount an NFS share kaplan71 Fedora 1 02-14-2009 08:26 AM
NFS: Permission Denied on mount RaelOM Linux - Server 7 11-14-2007 11:03 AM
nfs mount problem on Fedora - permission denied hueofwind Linux - Networking 2 04-12-2006 08:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration