I am trying to get nfs to work, but my client machine . . .
I am trying to get nfs to work, but my client machine keeps telling me permission denied. Is there a simple solution?
This is the first time I have used nfs. The two OS's are Gentoo and Linux mint. They both have nfs installed on them. They are both a 16 port 10/100 Mb/s switch. |
Make sure you have set up /etc/exports so that the client has permission to mount, then re-export the shares.
|
This is what the file looks like.
[code] # /etc/exports: NFS file systems being exported. See exports(5). /storage 192.168.1.2(rw) # Clients IP address. [code] Well I am unsure if that is what is needed. |
Ok, and did you start the NFS server daemon?
If you run "showmount -e servername" what is returned? |
Code:
localhost branden # showmount -e servername |
You need to replace "servername" with the name (or IP) of your NFS server.
|
Code:
localhost ~ # showmount -e 192.168.1.5 |
Looks fine to me. What makes you think it isn't working?
|
The client keeps saying something denied access from server.
Edit: This is what the client says. Code:
laurie@laurie-desktop ~ $ sudo mount 192.168.1.5:/storage /mnt/nfs |
Ok, and is there any relevant message in /var/log/messages or /var/log/syslog about this on the server?
I assume the client is really 192.168.1.2 and the server is really 192.168.1.5? |
Quote:
|
Hi darkstarbyte,
as far as I know the daemon nfsd is listening on port 2049. You may use nmap to check if the port is really open. Code:
nmap -p 2049 192.168.1.5 Markus |
Quote:
Starting Nmap 5.21 ( http://nmap.org ) at 2010-12-05 10:14 MST Nmap scan report for 192.168.1.5 Host is up (0.00012s latency). PORT STATE SERVICE 2049/tcp closed nfs Nmap done: 1 IP address (1 host up) scanned in 0.14 seconds localhost branden # |
Quote:
Did you restart the daemon after editing the /etc/exports file? Markus |
How would I do that?
|
I don't know about the directory-structure of Mint. There should be a directory /etc/init.d or /etc/rc.d where the daemons reside which are started by the startscripts. Look which name the daemon has in your distribution, nfsd or rc.nfsd. then execute
Code:
/etc/init.d/nfsd restart Be sure to configure nfsd to start while systemstart. Markus |
All times are GMT -5. The time now is 06:04 PM. |