【linux】linux下su命令su cannot set groups Operation not permitted错误
来源:互联网 发布:access实验报告sql 编辑:程序博客网 时间:2024/05/16 15:16
linux下命令su执行出现以下错误
su: cannot set groups: Operation not permitted
网上都说这个错误是因为/bin/su文件被取消了s位,所以解决方法是 chmod a+s /bin/su
我执行命令后发现仍然不能使用su命令,
查看/bin/su文件的详细情况
[root@gc03vm12 ~]# ll /bin/su
-rwsr-sr-x 1 nutch nutch 28336 Sep 4 2009 /bin/su
发现用户组是nutch,权限是-rwsr-sr-x;
而一个正常机器上是以下情况
[root@gc04vm12 home]# ll /bin/su
-rwsr-xr-x 1 root root 28336 Jan 21 2009 /bin/su
用户组应该是root:root
因此我想可能是这个原因,于是我修改回来
[root@gc03vm12 ~]# chown -R root:root /bin/su
仍然不能使用su命令,查看以下情况
[nutch@gc03vm12 root]$ ll /bin/su
-rwxr-xr-x 1 root root 28336 Sep 4 2009 /bin/su
发现权限还是和正常的-rwsr-xr-x不同,
于是继续执行
chmod a+s /bin/su
然后就好了
[root@gc04vm12 home]# ll /bin/su
-rwsr-xr-x 1 root root 28336 Jan 21 2009 /bin/su
总结原因:我错误的执行了chown -R nutch:nutch / ,改变/的用户组,这是一个愚蠢的做法,请千万不能如此做,这会导致出现一些问题,
虽然root能够修改任何文件,但是也不能将有些本属于root组的文件改成其它组,这可能会导致错误。
- 【linux】linux下su命令su cannot set groups Operation not permitted错误
- linux下su命令su cannot set groups Operation not permitted错误
- hadoop搭建之linux下su命令报错 cannot set groups Operation not operation not permitted !
- su: cannot set groups: Operation not permitted
- su: cannot set groups: Operation not permitted
- su命令cannot set groups: Operation not permitted的解决方法
- [已解决]su 切换用户,提示:“密码不正确”;更改passwd权限后,又提示:“cannot set groups: Operation not permitted”
- Linux下 su命令与su
- linux su命令,su-,sudo
- Linux下su命令用法
- Linux 下的su命令
- 普通用户执行su却出现operation not permitted的解决办法
- Linux下su与su -命令的本质区别
- Linux下su与su -命令的本质区别 .
- Linux下su与su -命令的本质区别
- Linux下su与su -命令的区别
- Linux下su与su -命令的本质区别
- Linux下su与su -命令的本质区别
- 5.22 第十三天 失落之约
- 再谈软件架构设计之业务的封装
- CSDN高手速成宝典
- 5.23 第十四天 游乐场长隆
- C++动态创建二维数组和清空cin缓冲
- 【linux】linux下su命令su cannot set groups Operation not permitted错误
- SOCKET_C/S_CODE
- 读《0 bug C/C++商用工程之道》——记录1
- C++中的不定层迭代,以若干面骰子概率问题为例
- 【Nutch】Linux下应用nutch 1.0 Web前端实现单机检索
- 【Nutch】Linux下应用nutch-1.0Web前端实现HDFS数据检索
- 【Linux】配置linux主机使得可以使用Xmanager的xbrowser登陆图形界面
- MFC中VERIFY与ASSERT的区别
- 龟与兔