xxis not in the sudoers file. This incident will be reported.

安装完成后出现

Initial setup of CentOS Linux 7 (core) 
1) [x] Creat user 2) [!] License information 
(no user will be created) (license not accepted) 
Please make your choice from above [‘q’ to quit | ‘c’ to continue | ‘r’ to refresh]:

解决方法: 
输入“1”,按Enter键 
输入“2”,按Enter键 
输入“q”,按Enter键 
输入“yes”,按Enter键 

-----------------------------------------------------------------------------------------------------------------------
user07 is not in the sudoers file.  This incident will be reported.
出现该错误,显示的是user07不在sudoers文件中。将报告此事件。

应该是新用户的权限不够

解决方法:

vi /etc/sudoers

root ALL=(ALL:ALL)        ALL

用户名 ALL=(ALL:ALL)        ALL

具体实现过程:当用户执行sudo时,系统会寻找/etc/sudoers文件,判断该用户是否有执行sudo的权限


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部