安装完成后出现
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的权限