CentOS6.3をインストールして最初にやること

その1.rootになれるユーザーをwheelグループに所属するユーザーのみにする
*変更前にwheelグループにユーザーを追加してから行います。
*wheelグループに誰もいないと地獄を見ます。

[root@localhost ~]# vi /etc/pam.d/su

#auth       required     pam_wheel.so use_uid
↓コメントを外して保存
auth       required     pam_wheel.so use_uid

その2.SELinuxを無効にする
[root@localhost ~]# getenforce 
Enforcing
[root@localhost ~]# setenforce 0
[root@localhost ~]# getenforce
Permissive
これだけだと一時的に無効になっただけなので、完全に無効化する
[root@localhost ~]# vi /etc/sysconfig/selinux
SELINUX=enforcing
↓変更して保存
SELINUX=disabled
その3.yum update を行う。
[root@localhost ~]# yum update
ざっとこのくらい?

0 件のコメント: