今天突然不能su到root了,root密码是正确的,但是就是显示密码错误
还有mount也不能在一般用户里用了,不管有没有设备,都说没有权限

到google上搜索了一番,发现了这样一段:
---------------------------
Try doing (note back-ticks not quotes)
$ ll `which mount`
it should report :

$ ll `which mount`
-rwsr-xr-x 1 root root 52788 Apr 17 16:54 /bin/mount
^
|
/
This means the mount program is setuid root. If your copy is not,
you will need to do a chmod u+s `which mount` while logged in as root.

This should fix it. If you still have problems, you could check the
permissions of your cdrom device in /dev, but I don't think this is the
problem.
-----------------------------

运行了一下chmod u+s /bin/*,结果就都好了
u+s代表什么意思呢?

作者: cobranail   发布时间: 2004-11-24

给/bin/* 的拥有者增加可执行权限。

很多人可能都喜欢用chmod 755、644、777等赋予权限,其实还是用chmod ugo+rwx这样的形式比较直观。

u--拥有者
g--同组用户
o--其它用户
r--可读
w--可写
x--可执行
s--可执行(跟x差不多,我还不清楚两者的区别)

作者: hupeng923   发布时间: 2004-11-24

chmod u+s `which mount` 会将/bin/mount设成setuid root,即是说任何用户在执行这个指令时会拥有root权限,可以想superuser一样用此指令做这个指令可做的任何事。Root拥有的setuid的程序有潜在的危险性,一般用sudo来设置会好一点。

作者: Fleta   发布时间: 2004-11-24

恩,对,但是有时候需要,

作者: xiaorui   发布时间: 2004-11-24

some experiences for guys here:

i noticed that usually only several items in /bin/ should have the priviliage of 's',such as mount, su, ping, umount and so on.
So to solve the problem above you can use the command 'chmod u+s' only to these command instead of /bin/*.

作者: lvzhe   发布时间: 2004-11-26

 

最新文章

  1. logstash VS splunk
  2. Visual Mingw
  3. sdfsdf
  4. 设置UITextField的placeholder的颜色
  5. python处理.seq文件
  6. Saiku对Measure(指标)查询结果进行计算后显示的方法
  7. HDU 5800 To My Girlfriend
  8. 解决使用Idea/Eclipse编写Hadoop程序包依赖问题
  9. Xamarin.Android 调用Web Api(通过ListView展示远程获取的数据)
  10. SpringMvc通过@Value( ) 给静态变量注入值
  11. HFun.快速开发平台(三)=》通用系统用户选择
  12. redis 系列1 linux下安装说明
  13. (string 数组) leetcode 804. Unique Morse Code Words
  14. Forth 词典和词汇
  15. matplotlib多plot可视化
  16. bzoj 1803: Spoj1487 Query on a tree III(主席树)
  17. 正确理解springboot的常用注入方式
  18. Hakase and Nano 【思维博弈】
  19. 入门NodeJS
  20. [总结]Jquery api 快速参考

热门文章

  1. Java基础00-IO流27
  2. SpringBoot默认首页跳转设置
  3. 替代Infinity绝佳的自主开发chrome插件
  4. 达梦数据库(DM8)大规模并行集群MPP 2节点安装部署
  5. 构建高效Presubmit卡点,落地测试左移最佳实践
  6. CentOS下 Django部署 uWSGI+Django(一)
  7. Markdown 样式美化大全
  8. 【洛谷P4933 大师】动态规划
  9. mysql jdbc8.0连接mysql
  10. Python基础之控制台打印不同颜色字符串