`
standalone
  • 浏览: 617025 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Linux NFS mount: failed, reason given by server: Permission denied

阅读更多
I met this problem last week and it frustrated me for days...Now I found the solution after I spent hours on google, and amazing it works!!!

This issue drove me nuts today for several hours today, to be honest I was pretty close to breaking something! Earlier in the day I had the NFS mount working fine then I created an AMI and booted up another instance from the newly created AMI but in the new instance the mount kept failing. The error looks something like this:

[root@server]# mount -t nfs 192.168.2.1:/dbshare /mnt/dbshare
mount: 192.168.2.1:/dbshare failed, reason given by server: Permission denied

According to the error you would think that I have a configuration issue so I changed everything that I could think of within /etc/exports

My /etc/exports originally looked like this:

/dbshare 192.168.2.2(rw,sync) (where 192.168.2.2 is the client where I am performing the mount)

I changed it to something more open like this with no luck:

/dbshare 192.168.0.0/255.255.0.0(rw,sync)

I started looking around the logs on the server in /var/log/messages and found that it was authenticating fine
Jun 11 19:04:00 servername mountd[5222]: authenticated mount request from 192.168.2.2:736 for /dbshare (/dbshare)

I was really frustrated at this point and I had already spent an hour on Google looking for the answer. I found another answer but the website was down, luckily the cached version on Google came to the rescue.

The ANSWER:

The problem was that the special nfsd file system that mounts to /proc/fs/nfsd wasn't mounted. I'm not sure how it gets mounted (maybe rc.sysinit does it?), but I tool the advice from the forum entry and added an entry to /etc/fstab

 

none /proc/fs/nfsd nfsd auto,defaults 0 0

then ran mount -a

After this the mount worked fine. I hope that someone finds this helpful.

分享到:
评论

相关推荐

    FTP 550 Permission denied 只能建文件夹,没法删除及上传文件的原因说明

    ③重新设置Server-U帐号和目录访问里的文件路径(如果还不行,尝试下面操作); ④删除用户,重新建。 原创 SU整理(FTP)收藏 整理如下: 1开头-成功 2开头-成功 3开头-权限问题 4开头-文件问题 5开头-服务器问题 ...

    NFS服务器配置-挂载nfs

    错误: `mount: 192.168.1.230:/nfs failed, reason given by server: permission denied` - **原因**: 要挂载的目录没有读写权限。 - **解决方法**: - 确保在配置NFS服务器时,基本权限设置为读/写。 - 检查`/etc...

    NFS服务器配置、挂载

    2. **错误:mount: 192.168.1.230:/nfs failed, reason given by server: permission denied** - 原因:共享目录的权限设置不正确。 - 解决方法:检查NFS服务器的基本权限设置,确保为读/写。 3. **错误:rpcbind...

    Android Studio出现Failed to pull selection: open failed: Permission denied的解决思路

    关于操作db文件导出Failed to pull selection: open failed: Permission denied问题的处理方法在遇到这个问题之前,你可能连data这个目录都打不开。。 对此,解决办法是去到安卓的adb目录\Android\sdk\platform-...

    “open failed: EACCES (Permission denied)”读取SD卡报错解决办法

    一、前言 最近在学习安卓,也碰到了各种各样的bug,这次的这个bug折腾了我一整个晚上!!所以整理出来让大家少栽跟头… 二、问题背景 实现一个简单的从模拟器的SD卡中读取数据实现音乐的播放暂停和停止 ...

    详解Linux下出现permission denied的解决办法

    Permission denied: 出现的原因的是:没有权限进行读、写、创建文件、删除文件等操作。 解决方法:输入命令 sudo chmod -R 777 /工作目录, 例如:sudo chmode -R 777 /home/HDD,此时就可以在该路径下进行一系列...

    sqlplus libclntsh.so.11.1 Permission denied 解决方法

    ### SQL Plus libclntsh.so.11.1 Permission Denied 错误解决方法 #### 问题背景 在尝试运行 SQL Plus 工具时,可能会遇到一个错误提示:“cannot restore segment prot after reloc: Permission denied”,这通常...

    activemq NFS master/slave

    1> failed, reason given by server: Permission denied 解决方法: 1.1 检查NFS的运行级别:chkconfig --list portmap、chkconfig --list nfs。 1.2 根据需要设置在相应的运行级别自动启动NFS:chkconfig --...

    Nginx报403 forbidden错误 (13: Permission denied)的解决办法

    在Linux环境下,特别是当错误信息显示为"(13: Permission denied)"时,通常与文件权限、索引文件缺失或SELinux策略有关。下面将详细介绍这三个可能导致403 Forbidden错误的原因及相应的解决办法。 一、缺少索引文件...

    Ubuntu 非root用户使用Docker命令提示:connect: permission denied

    Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http:///var/run/docker.sock/v1.40/images/json: dial unix /var/run/docker.sock: connect: ...

    详解Nginx 13: Permission denied 解决方案

    2018/07/22 00:46:36 [crit] 15890#15890: *74 connect() to unix:/root/jianshuvue/jianshu.sock failed (13: Permission denied) while connecting to upstream, client: 120.42.13.98, server: jianshu....

    frida-server-16.0.13-android-arm64

    标题中的"frida-server-16.0.13-android-arm64"指的是Frida Server的一个特定版本,这是用于Android设备的动态代码插桩工具。Frida是由 Ole André Vadla Rønning 开发的一款强大的开源软件,它允许开发者在运行时...

    Nginx中报错:Permission denied与Connection refused的解决

    在Nginx的使用过程中,可能会遇到两种常见的错误:`Permission denied` 和 `Connection refused`。这些错误会导致Nginx无法正常处理客户端的请求,从而影响网站或服务的可用性。下面将详细介绍这两种错误的含义、...

    hadoop1.0 Failed to set permissions of path 解决方案

    ERROR org.apache.hadoop.mapred.TaskTracker: Can not start task tracker because java.io.IOException: Failed to set permissions of path: \tmp\hadoop-admin \mapred\local\ttprivate to 0700 at org.apache...

    labelme批量转化json文件时PermissionError: [Errno 13] Permission denied

    首先我要解释一下,很多时候出现这个问题,并不是你的文件有毛病,很可能是你代码读取的路径不对,这就要追究到代码本身。批量转化可以在json_to_dataset文件里直接运行代码实现。这个思路还要感谢我的一个师兄。...

    手机图案解锁 permission denied解决方案

    在使用手机时,有时我们可能会遇到“权限被拒绝”(Permission Denied)的问题,尤其是在尝试图案解锁时。这通常是由于安全设置、系统权限或第三方应用程序冲突导致的。以下是一些详细的解决策略: 1. **检查安全...

    Apache启动错误Permission denied: httpd: could not open error log file解决方法

    启动 httpd:(13)Permission denied: httpd: could not open error log file /home/wwwroot/jb51.net/logs/error_log. Unable to open logs [失败] 三、问题原因 因为新安装的系统,所以SELinux默认是开启状态,...

Global site tag (gtag.js) - Google Analytics