same01 is not in the sudoers file. This incident will be reported.
时间: 2023-09-28 20:06:40 浏览: 168
linux系统使用sudo命令报xxx is not in the sudoers file.This incident will be reported.的解决方法.pdf
回答: 当提示"same01 is not in the sudoers file. This incident will be reported."时,意味着用户same01没有在sudoers文件中被授权使用sudo命令。sudoers文件是用来配置sudo命令的权限的文件。\[1\]在sudoers文件中,可以通过添加用户到特定的用户组或直接指定用户来授权其使用sudo命令。在这个例子中,可以通过编辑sudoers文件并添加"same01 ALL=(ALL) ALL"来授权same01用户使用sudo命令。\[3\]请注意,对sudoers文件的修改需要以管理员身份进行,可以使用"sudo su"命令切换到管理员身份。\[1\]
#### 引用[.reference_title]
- *1* *2* [Linux系统 sudo su命令报 ...is not in the sudoers file. This incident will be reported.](https://blog.csdn.net/Skirmishing/article/details/124796441)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [xx is not in the sudoers file. This incident will be reported.](https://blog.csdn.net/Cryhelyxx/article/details/43605731)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文