私はLinux Mintシステムの唯一のユーザーですが、私がログインするために選択したパスワードが私に割り当てられたパスワードと同じであることがわかりましたsudo
。
私の質問は:ログインパスワードを変更するとsudo
パスワードも変更されますか?
sudo
そうでない場合は、パスワードをどのように変更しますか?
ベストアンサー1
デフォルトでは、以下がsudo
必要です。ユーザーパスワード。したがって、ユーザーのパスワード(ログインにも使用されます)を変更すると、sudo呼び出しにも影響します。
/etc/sudoers
ただし、ユーザーにフラグを設定することができます。rootpw
この場合、rootパスワードの入力を求められます。
関連抜粋sudoers(5) のマニュアルページ例:
Authentication and logging
The sudoers security policy requires that most users authenticate them‐
selves before they can use sudo. A password is not required if the
invoking user is root, if the target user is the same as the invoking
user, or if the policy has disabled authentication for the user or com‐
mand. Unlike su(1), when sudoers requires authentication, it validates
the invoking user's credentials, not the target user's (or root's) cre‐
dentials. This can be changed via the rootpw, targetpw and runaspw
flags, described later.
同様に、キーワードはいいえsudoを要求するパスワードはパスワードなしWD。
ルートパスワードを設定するには、次のものを使用できます。sudo passwd
sudo -s
sudo権限を変更するときは、他の端末で実際に機能しているかどうか、ロックされていないことを確認するまでrootコンソールを開いておくことをお勧めします(例:)。