Toybrick

fedora系统root账户的登录密码是?如何获取管理员权限?

yingfalu

注册会员

积分
98
楼主
发表于 2022-8-24 23:56:35 | 显示全部楼层

我用这个登录不了呢,报如下的错误

Install the project...
-- Install configuration: "Release"
CMake Error at cmake_install.cmake:41 (file):
  file cannot create directory: /usr/local/share/licenses/opencv4.  Maybe
  need administrative privileges.
然后尝试各种网上的办法进入root失败呢,报如下的错误
toybrick@debian10:~$ sudo su
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

回复

使用道具 举报

yingfalu

注册会员

积分
98
沙发
发表于 2022-8-24 23:59:33 | 显示全部楼层

使用su
toybrick@debian10:~$ su
Password:
su: Authentication failure
回复

使用道具 举报

yingfalu

注册会员

积分
98
板凳
发表于 2022-8-25 00:24:39 | 显示全部楼层

我是为了拷贝安装好的一些文件到/usr/bin, /usr/include,也就是usr,下面的bin,include,lib,share的文件夹下面,于是我就执行了,
sudo chmod -R 777 include/
sudo chmod -R 777 bin/
sudo chmod -R 777 lib/
sudo chmod -R 777 share/
chmod -R 777 share/

然后再往上找了一下办法也没有解决,使用往上给出的办法如下
chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo

su - root
chown root:root /usr/bin/sudo
使用这两个命令也没有解决
回复

使用道具 举报

yingfalu

注册会员

积分
98
地板
发表于 2022-8-25 00:35:08 | 显示全部楼层

root@192.168.0.103's password:
Access denied
使用root作为用户名登录输入toybrick是报错的,请问要怎么办呢?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表