chmod u+s是什么意思
2024-09-01 20:53:16
今天突然不能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代表什么意思呢?
还有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差不多,我还不清楚两者的区别)
很多人可能都喜欢用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/*.
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
最新文章
- logstash VS splunk
- Visual Mingw
- sdfsdf
- 设置UITextField的placeholder的颜色
- python处理.seq文件
- Saiku对Measure(指标)查询结果进行计算后显示的方法
- HDU 5800 To My Girlfriend
- 解决使用Idea/Eclipse编写Hadoop程序包依赖问题
- Xamarin.Android 调用Web Api(通过ListView展示远程获取的数据)
- SpringMvc通过@Value( ) 给静态变量注入值
- HFun.快速开发平台(三)=》通用系统用户选择
- redis 系列1 linux下安装说明
- (string 数组) leetcode 804. Unique Morse Code Words
- Forth 词典和词汇
- matplotlib多plot可视化
- bzoj 1803: Spoj1487 Query on a tree III(主席树)
- 正确理解springboot的常用注入方式
- Hakase and Nano 【思维博弈】
- 入门NodeJS
- [总结]Jquery api 快速参考