网站运营
位置:首页>> 网站运营>> debian安装后sudo命令不能用的解决方法

debian安装后sudo命令不能用的解决方法

  发布时间:2021-01-12 10:33:54 

标签:sudo命令,debian

debian安装完之后发现sudo命令不能用

找了半天发现是没有安装sudo

得了,进入root安包,炸开他,apt-get install sudo

安装完发现又出现一堆怪问题

不管他,继续前进

在root设置sudoers配制文件


chmod +w /etc/sudoers

vim /etc/sudoers

添加一行 


username     ALL=(ALL) ALL


其中username是你的用户名,保存

更改sudoers文件权限


chmod 0440 /etc/sudoers

退出root

ok可以了,试试?;-)

0
投稿

猜你喜欢

手机版 网站运营 asp之家 www.aspxhome.com