感谢支持
我们一直在努力

CDLinux su: must be suid to work properly错误

系统内核版本:cat /proc/version

Linux version 2.6.33-cdl (root@Phenom) (gcc version 3.4.6) #1 SMP PREEMPT Fri Apr 2 01:04:03 EDT 2010

文件系统:127 15:50$ busybox
BusyBox v1.15.3 (2010-03-05 00:33:26 EST) multi-call binary
Copyright (C) 1998-2008 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

嵌入式文件系统一般用户执行su root切换根用户提示错误:
su: must be suid to work properly

解决方法:
修改busybox权限,chmod 4755 busybox

0 15:20$  must be suid to work properly
-bash: must: command not found
127 15:20$ chmod 4755 busybox
chmod: busybox: No such file or directory
1 15:21$ cd /
0 15:21$ chmod 4755 busybox
chmod: busybox: No such file or directory

没有那个文件或目录!

1 15:22$ sudo find -name busybox
./.cdl/initrd/bin/busybox
./bin/busybox
0 15:22$ chmod 4755 ./bin/busybox
chmod: ./bin/busybox: Operation not permitted
1 15:23$ sudo chmod 4755 ./bin/busybox

再执行su root就可以了。

但在CDLinux下不知道root用户密码,好像是没有密码,

直接执行:sudo su 就可以了。

Ubuntu的sudo与su命令使用与开启root帐户 http://www.linuxidc.com/Linux/2008-01/10685.htm

sudo: sorry, you must have a tty to run sudo http://www.linuxidc.com/Linux/2012-11/75153.htm

Linux配置sudo权限 http://www.linuxidc.com/Linux/2012-10/71795.htm

sudo配置临时取得root权限 http://www.linuxidc.com/Linux/2012-09/69525.htm

Linux下解决用户不能执行sudo的方法 http://www.linuxidc.com/Linux/2012-07/64694.htm

Linux系统管理员不可不知的命令:sudo http://www.linuxidc.com/Linux/2013-07/87855.htm

sudo使用之实现权限分配 http://www.linuxidc.com/Linux/2014-02/96996.htm

本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-09/106595.htm

赞(0) 打赏
转载请注明出处:服务器评测 » CDLinux su: must be suid to work properly错误
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏