sudo
sudoの設定
ルートでのloginを極力避け、代わりにsudoで対応
# apt-get install sudo
# chmod 666 /etc/sudoers
# vi /etc/sudoers
rootの下に以下を追加
ユーザid ALL=(ALL) ALL
# chmod 440 /etc/sudoers
$ sudo adduser ユーザid adm
$ sudo adduser ユーザid staff
sudoのeditor変更
update-alternativesに管理してもらうコマンドを追加する。|
$ sudo update-alternatives –config editor で選択
sudo.txt · 最終更新: 2020/04/22 23:04 by admin