gitpermission deniedd怎么办

NFS mount failed server Permission denied解决方法 - miki西游
不积跬步,无以至千里;不积小流,无以成江海 - ITeye技术网站
博客分类:
在linux中,在一台IP为192.168.65.215的服务器上挂载nfs服务器的目录时报permission denied错。
错误信息如下所示:
[root@webdg1 ~]# mount -t nfs 192.168.15.56:/u02
mount: 192.168.15.56:/u02 failed, reason given by server: Permission denied
第一反应是nfs server的权限没配对或可能没授权此IP接入。但是去检查nfs server上配置情况是对15网段都是授权了的。
[root@htwebapp1 ~]# more /etc/exports
192.168.15.*(rw)
这种配置是根据经验和网上很多文档介绍的案例来写的,并且一直以来都是运行都是正确的。这里也不是所有的15网段的服务器都不能挂载这个目录的。在本环境中,一个15网段的服务器就能挂载这个nfs服务器的目录。
(miki西游 @mikixiyou 原文链接:
两者的区别在于出问题的服务器的网卡是双IP配置,而正常的服务器是单个IP配置。
那么,问题就可能是一个网卡多个IP导致的。
如果在nfs服务器上/etc/exports中,将需要挂载的服务器IP地址写死,如下所示:
[root@htwebapp1 ~]# more /etc/exports
192.168.15.215(rw)
这样就可以在215上挂载nfs服务器的u02目录了。
但需要挂载该目录的服务器有很多,是不能一一列出的。
因此这个方法不适用。
在nfs服务器上的/etc/hosts下也有挂载服务器15.215的主机名IP解析,根据网络上建议,将此条目注释掉,也能挂载。
这是另一种解决方法,但nfs服务器上hosts中是必须配置这个主机名IP解析条目的,此服务器上还有其他应用需要用到它。
因此,这个方法也不能采纳。
我们猜测可能是NFS SERVER在 client请求挂载时解析 /etc/exports 时出错了。
我们并不很清楚NFS的原理,也没有能力去看它的源代码。但有一点,我们可以去看一下exports的帮助。
使用man exports一下,得到结果如下:
EXPORTS(5)
Linux File Formats Manual
EXPORTS(5)
exports - NFS file systems being exported (for Kernel based NFS)
/etc/exports
DESCRIPTION
/etc/exports
the access control list for file systems which may be exported to NFS
It is used by exportfs(8) to give information to mountd(8) and to
server daemon nfsd(8).
The file format is similar to the SunOS exports file. Each line contains an export point and a whitespace-
separated list of clients allowed to mount the file system at that point. Each listed client may be
diately followed by a parenthesized, comma-separated list of export options for that client. No whitespace
is permitted between a client and its option list.
Blank lines are ignored.
A pound sign ("#") introduces a comment to the end of the line. Entries
newlines using a backslash. If an export name contains spaces it should be quoted using
double quotes. You can also specify spaces or other unusual character in the export name using a backslash
followed by the character code as three octal digits.
Machine Name Formats
NFS clients may be specified in a number of ways:
single host
is the most common format. You may specify a host either by an abbreviated name recognized be
the resolver, the fully qualified domain name, or an IP address.
NIS netgroups may be given as @group.
Only the host part of each netgroup members is
checking for membership.
Empty host parts or those containing a single dash (-) are ignored.
contain the wildcard characters * and ?.
This can be used to make the exports
for instance, *.cs.foo.edu matches all hosts in the domain cs.foo.edu.
characters also match the dots in a domain name, the given pattern will also match all hosts within
any subdomain of cs.foo.edu.
IP networks
You can also export directories to all hosts on an IP (sub-) network simultaneously. This
specifying an IP address and netmask pair as address/netmask where the netmask can be specified
in dotted-decimal format, or as a contiguous mask length (for example, either
??/255.255.252.0?ˉ
to the network base address result in identical subnetworks with 10 bits of host).
Wildcard characters generally do not work on IP addresses, though they may work
reverse DNS lookups fail.
从帮助文档中看,机器名称格式只有四种,我们使用192.168.15.*(rw)中"*"做通配符,是第一种"single host"用法。
但它没有说可以使用"*",只是我们根据习惯和网上得到经验配置出来的。
这种需要给多个nfs client挂载的需求,是可以这样配置。在/etc/exports中写入/u02 192.168.15.0/255.255.255.0(rw)或/u02 192.168.15.0/24(rw)。
通过帮助文档的分析和这个问题解决过程可以得到这样的结论,很多nfs服务器上exports的配置都是不规范的,只是通配符"*"碰巧能用而已。规范的配置应是192.168.15.0/24或192.168.15.0/255.255.255.0。
浏览 18836
浏览: 661453 次
来自: 南京
浏览量:199366
请问对于“如果非主键字段值发生改变,则不会同步过去”这种情况, ...
挺好的,支持一下
不错,原来是用户oracle 的所属组的问题
zhangyuslam 写道如果担心全局索引失效,可以使用如下 ...推荐这篇日记的豆列
······在线时间1 小时
版本JHCCNBF37.0
积分 29, 距离下一级还需 21 积分
积分 29, 距离下一级还需 21 积分
机型红米手机1S WCDMA 3G版
MIUI版本JHCCNBF37.0
来自网页版
正在学习开发Android程序,使用Android Studio开发软件,用的红米1S联通版,系统没动。使用360一键root,提示root成功,但是在调试运行时提示:
Waiting for device.
Target device: xiaomi-hm_1s-5195bab3
Uploading file
& & local path: F:\Case\Android\Projects\AppTest\app\build\outputs\apk\app-debug.apk
& & remote path: /data/local/tmp/com.my.apptest
Adb Transfer Protocol Error.
Permission denied
开发者模式已经开启了,也允许了USB调试,同时调试时Android Studio也发现了设备,就是运行时提示:
Adb Transfer Protocol Error.
Permission denied
求大神帮忙解决下!
分享到微信朋友圈
打开微信,点击底部的“发现”,使用 “扫一扫” 即可将网页分享到我的朋友圈。
在线时间0 小时
积分 27, 距离下一级还需 23 积分
积分 27, 距离下一级还需 23 积分
来自网页版
avd选择的还是模拟器吧,选择红米那个
经验147 米
在线时间45 小时
版本V7.3.3.0.MXDCNDD
积分 245, 距离下一级还需 255 积分
积分 245, 距离下一级还需 255 积分
机型小米手机4
MIUI版本V7.3.3.0.MXDCNDD
来自网页版
最后你成功解决了吗?求方法。。。
在线时间2 小时
版本V6.5.1.0.KXCCNCD
积分 21, 距离下一级还需 29 积分
积分 21, 距离下一级还需 29 积分
机型小米手机3 TD版
MIUI版本V6.5.1.0.KXCCNCD
来自网页版
@管理员。最后这个问题如何解决的啊?
1000万用户纪念勋章
MIUI1000万用户纪念勋章
已关注微信
已关注极客秀微信
关注腾讯微博
已关注腾讯微博
关注新浪微博
已关注新浪微博
Copyright (C) 2016 MIUI
京ICP备号 | 京公网安备34号 | 京ICP证110507号Ubuntu复制文件时提示Permission denied怎么办?
Ubuntu系统把一个文件复制到另一个文件时提示“Permission denied”,这个错误提示的意思是认可被拒绝,意味着复制文件的权限发现了问题,那么该怎么解决呢?
技术交流:
Ubuntu系统把一个文件复制到另一个文件时提示&Permission denied&,这个错误提示的意思是认可被拒绝,意味着复制文件的权限发现了问题,那么该怎么解决呢?
  一、表面上看是因为权限不足,因此可以通过对usr文件夹进行授权的方式解决:
  :~$sudo chmod -R 777 usr
  -R 是指级联应用到目录里的所有子目录和文件
  777 是所有用户都拥有最高权限
  二、但上面的解决方法只是治标不治本,其实我们需要以管理员的身份进入系统,才能畅通无阻
  那么问题来了,怎么样才能以管理员的身份进入系统呢,往下看:
  Ubuntu安装好后,root初始密码(默认密码)不知道,需要设置。
  1、先用安装Ubuntu的时候创建的用户登录到系统;
  2、然后输入:sudo passwd 摁回车;
  3、接下来会提示您:输入新密码,重复输入密码,最后提示您passwd:password updated sucessfully;
  此时已完成root密码的设置。
  4、接着就可以输入命令:su root;
  即以root的身份登录到系统里面去了,此时你再拷贝文件,就可以了。
  以上就是Ubuntu复制文件时出现Permission denied错误提示的解决方法了,只要按照上面的步骤设置root密码后以root身份登录,就可以正常复制文件了。
------分隔线----------------------------
如果是没有显示器操作树莓派,可能会不知道树莓派有线网卡自动分配到的IP地址,不知道...
由于Linux目前很热门,越来越多的人在学习Linux,但是买一台服务放家里来学习,实在是...
一、准备工作。 树莓派一部、网线一根,笔记本电脑一台。 1、树莓派:带供电系统和烧...
使用Ubuntu 进行开发绕不开的就是环境变量的配置,由于Linux系统严格的权限管理,造成...
本文介绍如何下载Bash on Ubuntu on Windows 10并安装运行。 这不是一个独立软件,是...Android使用adb时opendir failed, Permission denied解决方法
Android使用adb时opendir failed, Permission denied解决方法
很多时候我们会通过adb来查看SQLite对数据库和表的创建情况,使用方法很简单,但是我今天使用“ls”命令查看文件的时候却报了“opendir failed, Permission denied”的错误。
这里报错的原因是没有获取root权限,解决的方法很简单,只要敲“su”命令,然后在手机上同意root权限就可以了。OK,那让我们再来看看按“ls”命令是否能正常得查看文件。
OK,可以正常得查看文件,问题顺利解决~~~
分享即可 +1积分
请登录后,发表评论
评论(Enter+Ctrl)
评论加载中...
评论加载中...
移动开发工程师
这位童鞋很懒,什么也没有留下~~!
作者的热门手记
Copyright (C)
All Rights Reserved | 京ICP备 号-2

我要回帖

更多关于 macpermission denied 的文章

 

随机推荐