0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

sudoの設定

Last updated at Posted at 2017-11-09

概要

特定のアカウントに特権を与える。

wheelグループの設定

パスワード不要の設定

wheelグループはパスワードなしでsudoを実行できるようにする。

以下のコマンドでsudoの設定ファイル:/etc/sudoersファイルを編集する。

visudoで設定変更
sudo visudo
/etc/suduers ・・・visudoコマンドで編集
(中略)
### wheel nopasswd begin
## Allows people in group wheel to run all commands
### comment out
### %wheel  ALL=(ALL)       ALL

## Same thing without a password
### uncomment
%wheel        ALL=(ALL)       NOPASSWD: ALL
### wheel nopasswd end
(中略)
(以下の設定で、/usr/local/binを追加する)
#
# Adding HOME to env_keep may enable a user to run unrestricted
# commands via sudo.
#
# Defaults   env_keep += "HOME"

Defaults    secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin

次の手順

firewalldの設定

以上

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?