sudoユーザーに追加していないユーザーでsudoコマンドを実行すると、 $ sudo less /etc/passwd [sudo] password for karuma: karuma is not in the sudoers file. This incident will be reported. 「karuma is not in the sudoers file. This incident will be reported.(karuma は sudoers ファイル内にありません。この事象は記録・報告されます。)」と、怒られます……。 ということで、ここでは特定のユーザー(ここでは「karuma」)がsudoコマンドを実行できるようにしてみましょう。 /etc/sudoers ファイルにユーザーを追加すればいいのですが、/etc/sudoers ファイルには、あらかじめ
![sudoユーザーを追加する方法 - Linux入門 - Webkaru](https://cdn-ak-scissors.b.st-hatena.com/image/square/e4822f652e5dbce03db1eb6fc401bd0f2bb2fa21/height=288;version=1;width=512/https%3A%2F%2Fwebkaru.net%2Flinux%2Fwp-content%2Fuploads%2F2023%2F05%2Flinux-logo.png)