forgot root passwd or not in the sudoers???
来源:互联网 发布:网站流量分析哪些数据 编辑:程序博客网 时间:2024/05/08 11:46
build your new root passwd:
1.reboot, in grub, padd "single" to the end of kernel line to boot the system into single user mode
2. chmod 777 /etc/passwd
vi /etc/passwd
then you delete the x in root (delete root passwd)
passwd
set your new root passwd
OK,you have changed your root passwd
if you are not in sudoers, you can't use sudo...
then , in single user mode
whereis sudoers
find out your sudoers file path
chmod 777 /etc/sudoers
vi /etc/sudoers
under the line of "root ALL=(ALL) ALL
add : youname ALL=(ALL) ALL
save and exit
chmod 440 /etc/sudoers
ok, now you can use sudo ...
- forgot root passwd or not in the sudoers???
- forgot root password or reset root password in Debian
- % is not in the sudoers file 问题解决:非root用户使用sudo报错
- is not in the sudoers file
- xxx is not in the sudoers file
- Fedora is not in the sudoers file
- user is not in the sudoers 解决办法
- user is not in the sudoers file
- xxx is not in the sudoers file
- Ubuntu_Usernameis not in the sudoers file解决方法
- xx is not in the sudoers file
- xxx is not in the sudoers file.
- xx is not in the sudoers file
- is not in the sudoers file
- *** is not in the sudoers file 问题解决
- *** is not in the sudoers file 问题解决
- is not in the sudoers file解决方法
- is not in the sudoers file 解决
- 额
- 项目中的第一个问题,如何扫描同一交换机下的所有主机IP?
- 应学那些
- Java 关键字
- Linux 常见问题解答
- forgot root passwd or not in the sudoers???
- matlab 2010a linux 安装过程
- 初来乍到
- 祝福我的母校
- 暮然回首
- Java 数据类型
- 小笔记
- 快面临找工作了,掌握的技术太少
- 哈哈啊