刚开可以的,重启下后就无效了。好奇怪
1
dingwen07 2022-02-08 14:16:18 +08:00
fsck
|
2
acmore 2022-02-08 14:40:33 +08:00 1
"The sudoers file is read in one pass so when multiple entries match for a user, they are applied in order. Where there are conflicting values, the last match is used (which is not necessarily the most specific match)."
如果 vagrant 在 sudo 组里的话,那么可能是因为上边 vagrant 的配置又被 %sudo 覆盖了。把 vagrant 写在其他配置下边,或者单独放在 /etc/sudoers.d/ 里或许可以解决。 |
3
levinit 2022-02-09 10:28:30 +08:00 via iPhone
你是咋切的 sudo su
|
4
larricane 2022-02-09 11:07:13 +08:00 via Android
不要直接修改这个文件,在 /etc 下新建一个目录 sudoers.d ,创建新的文件,然后添加你的规则。登出后重新登录应该就可以了。
|