“用户名"不在sudoers文件中.此事件将被举报 [英] 'Username' is not in the sudoers file. This incident will be reported

查看:152
本文介绍了“用户名"不在sudoers文件中.此事件将被举报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

登录ssh后,我收到以下消息:

After logging into ssh, I got this message:

用户名"不在sudoers文件中.该事件将得到报告.

'Username' is not in the sudoers file. This incident will be reported.

我该如何解决?我正在将ssh连接到我的虚拟专用服务器.

How can I resolve this? I'm connecting ssh to my virtual private server.

推荐答案

打开文件

sudo nano /etc/sudoers

然后像下面的语法一样在admin用户下添加用户.

Then add the user below admin user like below syntax.

user_name ALL=(ALL)  ALL

这篇关于“用户名"不在sudoers文件中.此事件将被举报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆