
Ubuntu日本語フォーラム

ログインしていません。
万年パソコン素人ですがよろしくお願いします。
ネット上のコマンドを色々実行していたらsudoを打ってもパスワードを求められなくなってしまいました。
再起動をしても状況は同じです。
以前はsudoで始まるコマンドは全てパスワードの入力を求められていました。
sudoコマンドでパスワードの入力を求めるように復活させるのにはどうすれば良いのでしょうか?
色々ググってみて、sudo visudoというのがあるのを知り、その結果は下のようになっています。
GNU nano 2.2.6 ファイル: /etc/sudoers.tmp
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
Defaults exempt_group="developer"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
オフライン
I_H8_COPS さん
デフォルトと比較すると、下記の内容が追加されています。
I_H8_COPS による投稿:
Defaults exempt_group="developer"
exempt_group については、以下の URL にざっとした説明がありますので、
おそらくこれが原因かと思われます。
https://qiita.com/hidekuro/items/0f8acd0504baa6efde34
オフライン
hellfireさん
お教えいただきまして、ありがとうございます。
まさに、ご指摘の一行、
Defaults exempt_group="developer"
を消したところ、今まで通りにパスワードを求められるようになりました。
リンク先で、さらに理解することが出来ました。
おかげさまで完全に解決しました。
貴重な知識とお手間を拝借させていただき、心より感謝いたします。
ありがとうございました!!
オフライン