CentOS Streamの設定
提供: sha.ngri.la
ユーザの追加
# useradd foo # passwd foo Changing password for user foo New password: Retype new password: passwd: all authentication tokens updated successfully.
ユーザ権限の追加
# usermod -G wheel tara.ttm # vi /etc/pam.d/su
#%PAM-1.0 auth required pam_env.so auth sufficient pam_rootok.so # Uncomment the following line to implicitly trust users in the "wheel" group. #auth sufficient pam_wheel.so trust use_uid # Uncomment the following line to require a user to be in the "wheel" group. #auth required pam_wheel.so use_uid
#auth required pam_wheel.so use_uid
をコメントをはずす。
sshのrootログインを禁止する
# vi /etc/ssh/sshd_config
PermitRootLogin yes
をno
に変更