不能执行sudo命令,也不能切换到root下 #256
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HswOAuth/llm_course#256
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
第一张图显示的是用户id密码输入错误,或者用户没有权限使用su命令切换到root用户。
第二张图代表着用户wangjunjun没有在sudoers文件中被授权使用sudo命令,因此无法执行需要管理员权限的操作。
要解决这个问题,需要确保用户有权限使用sudo命令。可以尝试一下以下步骤:
系统管理员可以使用以下命令将用户添加到sudoers:sudo usermod -aG sudo wangjunjun
在添加用户到sudo组后,系统管理员应该验证用户是否能够使用sudo命令。这可以通过尝试执行一个简单的sudo命令来完成,例如:sudo ls /root;如果用户能够成功执行命令,那么权限设置正确