私はsudoerですが、sudoersファイルにもありませんか?

私はsudoerですが、sudoersファイルにもありませんか?

一生懸命走っていますsudo apt-get update

sudoersファイルに自分自身を「追加する」試みの最後の出力を貼り付けます。 (私はそのファイルにあると思いましたが、そうでなかったというエラーが発生し続けました...)

timothy@AMDx6:~$ sudo nano /etc/inittab
[sudo] password for timothy: 
timothy is not in the sudoers file.  This incident will be reported.
timothy@AMDx6:~$ su
Password: 
root@AMDx6:/home/timothy# visudo
visudo: /etc/sudoers.tmp unchanged
root@AMDx6:/home/timothy# sudo adduser timothy
adduser: The user `timothy' already exists.
root@AMDx6:/home/timothy# exit
exit
timothy@AMDx6:~$ sudo apt-get update
[sudo] password for timothy: 
timothy is not in the sudoers file.  This incident will be reported.
timothy@AMDx6:~$ 

ベストアンサー1

sudoユーザーが存在しないのではなく、sudoersファイルにないことです。

addusersudoers ファイルのエントリではなく、システムユーザーを追加するスクリプトです。

必要な操作を実行するにはtimothy権限を付与する必要がありますvisudo。詳細を確認してくださいman sudoers

おすすめ記事