LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-04-2010, 07:41 PM   #1
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 234

Rep: Reputation: 2
Red face 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.
 
Old 12-04-2010, 10:39 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
Make sure you have set up /etc/exports so that the client has permission to mount, then re-export the shares.
 
Old 12-04-2010, 10:43 PM   #3
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 234

Original Poster
Rep: Reputation: 2
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.
 
Old 12-04-2010, 11:01 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
Ok, and did you start the NFS server daemon?

If you run "showmount -e servername" what is returned?
 
Old 12-04-2010, 11:03 PM   #5
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 234

Original Poster
Rep: Reputation: 2
Red face

Code:
localhost branden # showmount -e servername
showmount: can't get address for servername
localhost branden #
 
Old 12-04-2010, 11:52 PM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
You need to replace "servername" with the name (or IP) of your NFS server.
 
Old 12-05-2010, 12:01 AM   #7
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 234

Original Poster
Rep: Reputation: 2
Code:
localhost ~ # showmount -e 192.168.1.5
Export list for 192.168.1.5:
/storage 192.168.1.2
localhost ~ #
 
Old 12-05-2010, 10:05 AM   #8
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
Looks fine to me. What makes you think it isn't working?
 
Old 12-05-2010, 04:00 PM   #9
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 234

Original Poster
Rep: Reputation: 2
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 
mount.nfs: access denied by server while mounting 192.168.1.5:/storage
laurie@laurie-desktop ~ $

Last edited by darkstarbyte; 12-05-2010 at 04:07 PM.
 
Old 12-05-2010, 04:50 PM   #10
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
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?
 
Old 12-05-2010, 05:03 PM   #11
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 234

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by AlucardZero View Post
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?
Those are the ip's and there is no relevant information in those logs.
 
Old 12-05-2010, 06:00 PM   #12
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,974

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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
You may use this command either on the client or on the server.

Markus
 
Old 12-05-2010, 06:13 PM   #13
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 234

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by markush View Post
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
You may use this command either on the client or on the server.

Markus
localhost branden # nmap -p 2049 192.168.1.5

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 #
 
Old 12-05-2010, 06:19 PM   #14
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,974

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Quote:
Originally Posted by darkstarbyte View Post
localhost branden # ...
Host is up (0.00012s latency).
PORT STATE SERVICE
2049/tcp closed nfs...
Well, here we are, the port is closed. There must be a problem with the configuration of the server.
Did you restart the daemon after editing the /etc/exports file?

Markus

Last edited by markush; 12-05-2010 at 06:25 PM.
 
Old 12-05-2010, 06:49 PM   #15
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 234

Original Poster
Rep: Reputation: 2
How would I do that?
 
  


Reply

Tags
gentoo, linux mint 9, network, nfs, switch


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
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 11:22 AM
Linux NFS client <--> Leopard NFS server ACL support tplessers Linux - Networking 0 02-17-2010 05:28 AM
nfs server on ubuntu doesn't play nice with nfs client on solaris mathiraj Linux - Networking 11 09-15-2009 03:08 PM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 06:16 AM
Getting NFS to work (AIX client/Linux server) Derefin Linux - Networking 2 11-17-2003 11:31 AM


All times are GMT -5. The time now is 11:35 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration