用户 is not in the sudoers file
linux用户不在sudoers文件中
切换到超级用户root
$su root
查看/etc/sudoers权限,可以看到当前权限为440
$ ls -all /etc/sudoers
-r–r----- 1 root root 744 6月 8 10:29 /etc/sudoers
更改权限为777
$chmod 777 /etc/sudoers
编辑/etc/sudoers
$vi /etc/sudoers
在root ALL=(ALL:ALL) ALL 下面添加一行
j
原创
2020-05-28 10:35:10 ·
293 阅读 ·
0 评论