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$ busyboxBusyBox v1.
系统内核版本: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 就可以了。




目录
相关文章
|
3月前
|
Linux 数据安全/隐私保护
Linux中普通用户使用sudo命令提示lin is not in the sudoers file. This incident will be reported.
Linux中普通用户使用sudo命令提示lin is not in the sudoers file. This incident will be reported.
|
5月前
|
Ubuntu Unix Linux
Linux 用户使用sudo时 显示xxx is not in the sudoers file.This incident will be reported.的解决方法
注意,在Ubuntu系统下,Unix操作系统并没有为root创建密码,需要使用sudo passwd root来为root用户配置密码,之后才可以登入。
38 0
|
数据安全/隐私保护
提示 you neet to root to perform this command 的解决办法
提示 you neet to root to perform this command 的解决办法
|
数据安全/隐私保护 Ruby
cocopods 命令行执行命令时报错You don't have write permissions for the /Library/*
cocopods 命令行执行命令时报错You don't have write permissions for the /Library/*
1938 0
|
Linux 数据安全/隐私保护
|
应用服务中间件 PHP
macOS mkdir: /usr/var: Operation not permitted
版权声明:本文为 testcs_dn(微wx笑) 原创文章,非商用自由转载-保持署名-注明出处,谢谢。 https://blog.csdn.net/testcs_dn/article/details/80016887 ...
2634 0
|
数据安全/隐私保护
Linux_服务器_03_xxx is not in the sudoers file.This incident will be reported.的解决方法
1.切换到root用户下,怎么切换就不用说了吧,不会的自己百度去.2.添加sudo文件的写权限,命令是:chmod u+w /etc/sudoers3.编辑sudoers文件vi /etc/sudoers找到这行 root ALL=(ALL) ALL,在他下面添加xxx ALL=(ALL) ALL ...
927 0

热门文章

最新文章