CentOS 6.8安装rpcbind错误案例

前端之家收集整理的这篇文章主要介绍了CentOS 6.8安装rpcbind错误案例前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
[root@NFS~]#yuminstallrpcbind-y
Loadedplugins:fastestmirror,security
SettingupInstallProcess
Loadingmirrorspeedsfromcachedhostfile
*base:mirrors.aliyun.com
*extras:mirrors.aliyun.com
*updates:mirrors.aliyun.com
ResolvingDependencies
-->Runningtransactioncheck
--->Packagerpcbind.x86_640:0.2.0-12.el6willbeinstalled
-->FinishedDependencyResolution
DependenciesResolved
==================================================================================================================================
PackageArchVersionRepositorySize
==================================================================================================================================
Installing:
rpcbindx86_640.2.0-12.el6base51k
TransactionSummary
==================================================================================================================================
Install1Package(s)
Totaldownloadsize:51k
Installedsize:95k
DownloadingPackages:
rpcbind-0.2.0-12.el6.x86_64.rpm|51kB00:00
Runningrpm_check_debug
RunningTransactionTest
TransactionTestSucceeded
RunningTransaction
error:%pre(rpcbind-0.2.0-12.el6.x86_64)scriptletFailed,exitstatus6
ErrorinPREINscriptletinrpmpackagerpcbind-0.2.0-12.el6.x86_64
error:install:%prescriptletFailed(2),skippingrpcbind-0.2.0-12.el6
Verifying:rpcbind-0.2.0-12.el6.x86_641/1
Failed:
rpcbind.x86_640:0.2.0-12.el6
Complete!

后来发现是因为通过chattr +i 把/etc/passwd /etc/group /etc/shadow /etc/gshadow锁定了。

解锁后,问题解决


其实在RPCBIND和NFS-UTILS安装的时候会自动的创建一些用户

rpcbind

rpc
rpcuser
nfs-utils
nfsnobody

所以在安装的时候,需要确保root用户对/etc/passwd /etc/group /etc/shadow /etc/gshadow文件有权限并且这些文件可以修改

原文链接:https://www.f2er.com/centos/379565.html

猜你在找的CentOS相关文章