[SOLVED] NFS access denied by server while mounting
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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!
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
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.