zl程序教程

您现在的位置是:首页 >  系统

当前栏目

Linux:给普通用户设置sudo权限

Linux权限 设置 sudo 普通用户
2023-09-27 14:20:40 时间

Ubuntu版本,在一般用户下执行sudo命令提示user is not in the sudoers file. This incident will be reported.解决方法:

找出文件所在的位置,默认都是/etc/sudoers

root@iZm5e9phbzdxx0lysrv9t2Z:~# whereis sudoers
sudoers: /etc/sudoers /etc/sudoers.d /usr/share/man/man5/sudoers.5.gz
root@iZm5e9phbzdxx0lysrv9t2Z:~# 

vim  /etc/sudoers 命令,增加用户

root@iZm5e9phbzdxx0lysrv9t2Z:~# vim /etc/sudoers

 

user is not in the sudoers file. This incident will be reported 解决方法_一路奔跑94的博客-CSDN博客

xxx is not in the sudoers file.This incident will be reported错误_一只积极向上的小咸鱼的博客-CSDN博客