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

前端 未结 10 1943
南方客
南方客 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:19

    If you're unable to find visudo on your system

    whereis visudo
    

    Launch this tool

    ./PATH/visudo
    

    add this line under

    User privilege specification

    user_name ALL=(ALL)  ALL
    

    Save the changes and here you go !

提交回复
热议问题