vboxuser is not in the sudoers file. This incident will be reported.
时间: 2023-09-28 11:06:28 浏览: 236
回答: 当在终端输入大多数指令时,如果出现"vboxuser is not in the sudoers file"的报错,这是因为Ubuntu用户没有被添加到sudo中。解决这个问题的方法如下:首先,关机并切换到之前的用户登录,然后切换到root权限,可以使用命令"sudo -s"。接下来,为sudoers文件添加权限,可以使用命令"chmod u+x /etc/sudoers"。然后,编辑sudoers文件,为新用户提升权限,可以使用命令"gedit /etc/sudoers"。在"root ALL=(ALL:ALL) ALL"下添加"user ALL=(ALL:ALL) ALL",保存退出。最后,关机并切换到新的用户,此时新用户就可以切换到root权限了。\[1\]\[2\]
#### 引用[.reference_title]
- *1* [ubuntu用户出现vboxuser is not in the sudoers file报错时解决办法](https://blog.csdn.net/g65775005/article/details/128754296)[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^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [user is not in the sudoers file.This incident will be reported](https://blog.csdn.net/weixin_45208598/article/details/105787191)[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^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Linux||报错:vboxuser is not in the sudoers file. This incident will be reported.](https://blog.csdn.net/Inochigohan/article/details/128206433)[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^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文