LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-19-2012, 02:14 AM   #16
Lumify
Member
 
Registered: Jan 2012
Distribution: Debian Stable
Posts: 52

Original Poster
Rep: Reputation: Disabled

I followed the guide to stopping IPtables precisely. Because I have Grub2, I added selinux=0 to the GRUB_CMDLINE_LINUX_DEFAULT line of /etc/defaults/grub and ran #update-grub.

I checked this:
Code:
# netstat -ntlp | grep 111
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      686/portmap
Yet still-
Code:
# mount -t nfs -o hard,intr 192.168.0.69:/media/nfs/ /home/laptop/nfs/
mount.nfs: access denied by server while mounting 192.168.0.69:/media/nfs/
I tried without the two options hard and intr, but that doesn't make a difference.
 
Old 03-19-2012, 05:01 AM   #17
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
can you change your nfs server format for testing

Code:
#vi /etc/exports
/mount/point  *(ro, no_root_squash)
Code:
#exportfs -a

now try to mount
Code:
#mount -t nfs    serverip:/mount/point  /mnt

Last edited by deep27ak; 03-20-2012 at 04:50 AM.
 
1 members found this post helpful.
Old 03-20-2012, 03:33 AM   #18
Lumify
Member
 
Registered: Jan 2012
Distribution: Debian Stable
Posts: 52

Original Poster
Rep: Reputation: Disabled
After following the instructions on deep27ak's post, it is somehow working (that mount command is a little off though, should be this: #mount -t nfs serverip:/mount/point /mnt).

To find the problem, I've backtracked through these changes. I've re-enabled SELinux and IPTables. Still working. Then I added the two mount (client-side) options, hard and intr. Still working. Then I changed the /etc/exports IP address back to my laptop's specific IP address instead of the wildcard IP, 192.168.0.13. It's still working!?

I essentially reverted everything back to how it was after post #8 of this thread, and it suddenly now works. That's strange. Thank you for your help in troubleshooting this.

P.S. I'm now using 192.168.0.* in /etc/exports, and it works!

Last edited by Lumify; 03-20-2012 at 03:35 AM.
 
Old 03-20-2012, 04:50 AM   #19
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
sorry for the syntax error. Glad its working now.

I have corrected my mistake in the last post

Last edited by deep27ak; 03-20-2012 at 04:51 AM.
 
Old 04-26-2012, 10:21 PM   #20
nilanjanus
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Rep: Reputation: Disabled
Hi i tried its not working .

Here is the issue : I am tring to mount a cdrom in the nfs ..so other server can access it from network but its not happening ..
not sure where is the isssue . please help me .

server ip : 10.10.10.105

[root@Linux-training ~]# mount -t nfs 10.10.10.105:/dev/cdrom/ /mnt/cdrom
mount: 10.10.10.105:/dev/cdrom/ failed, reason given by server: Permission denied

[root@Linux-training ~]# mount -t nfs -v 10.10.10.105:/dev/cdrom/ /mnt/cdrom
mount: trying 10.10.10.105 prog 100003 vers 3 prot tcp port 2049
mount: trying 10.10.10.105 prog 100005 vers 3 prot udp port 663
mount: 10.10.10.105:/dev/cdrom/ failed, reason given by server: Permission denied
 
Old 04-26-2012, 10:49 PM   #21
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by nilanjanus View Post
Hi i tried its not working .

Here is the issue : I am tring to mount a cdrom in the nfs ..so other server can access it from network but its not happening ..
not sure where is the isssue . please help me .

server ip : 10.10.10.105

[root@Linux-training ~]# mount -t nfs 10.10.10.105:/dev/cdrom/ /mnt/cdrom
mount: 10.10.10.105:/dev/cdrom/ failed, reason given by server: Permission denied

[root@Linux-training ~]# mount -t nfs -v 10.10.10.105:/dev/cdrom/ /mnt/cdrom
mount: trying 10.10.10.105 prog 100003 vers 3 prot tcp port 2049
mount: trying 10.10.10.105 prog 100005 vers 3 prot udp port 663
mount: 10.10.10.105:/dev/cdrom/ failed, reason given by server: Permission denied
Please start a new Thread
 
1 members found this post helpful.
Old 11-17-2013, 09:07 AM   #22
akumasm
LQ Newbie
 
Registered: Nov 2013
Posts: 1

Rep: Reputation: Disabled
NFS access problem

I saw lots guys met with nfs login problem.
Well I found what the .... is the problem with that.
You have to give each ip access in /etc/exports file.
Because it is not manage well same ips 192.168.1.0/192.168.1.254 or * same
Just one ip each line and will work it.

I hope it will be helpful to others!
 
  


Reply



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] mount.nfs: access denied by server while mounting physnastr Linux - General 2 10-02-2011 03:33 PM
Tried everything but still get: "mount.nfs: access denied by server while mounting" timjowers Linux - Networking 3 04-21-2011 08:23 PM
mount.nfs: access denied by server while mounting DD554 Linux - Networking 1 05-08-2010 12:22 PM
NFS mount mount.nfs: access denied by server while mounting knockout_artist Linux - Newbie 2 11-26-2008 02:36 PM
mount.nfs: access denied by server while mounting mokrunka Linux - Networking 4 10-07-2008 12:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:31 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