2009/07/24

shutdownコマンドをsudoに登録

システムを停止するたびに特権ユーザになるのが面倒なのでsudoで実行できるように変更した。

# visudo
# Allows members of the users group to shutdown this system
%users ALL=/sbin/shutdown -h now

これで一般ユーザでも停止できる。
セキュリティ的にはあれだが、家のサーバなんでいいだろう。

0 件のコメント: