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

前端 未结 10 1941
南方客
南方客 2020-12-05 12:05

After logging into ssh, I got this message:

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

How can I r

10条回答
  •  失恋的感觉
    2020-12-05 12:25

    Both the above answers are correct as far as they go but it is easier to add your user to the sudo group in debian based systems (Ubuntu, kbuntu, debian, etc) and the wheel group under RedHat based systems (RedHat, Fedora, CentOS, etc)

    usermod -a -G sudo user
    or
    usermod -a -G wheel user 
    

提交回复
热议问题