rootパス変更
# passwd
New UNIX password: ********
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
アカウント作成
[root@www50xxu ~]# useradd user
[root@www50xxu ~]# passwd user
Changing password for user user.
New UNIX password:********
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
自アカウントを管理者にする
wheelグループに自アカウント「user」 を追加
# /usr/sbin/usermod -G wheel user
wheelグループ以外のユーザーはrootになれないように設定
# vi /etc/pam.d/su
auth required pam_wheel.so use_uid (先頭の「#」を削除)
yum更新
# yum update
# yum clean all
kernelなど更新されたら再起動した方が良い。
# shutdown -r now
sudo権限追加
#visudo
user ALL=(ALL) ALL
環境設定
LANGを日本語にする(確認)
# cd /etc/sysconfig/
# vi i18n
LANG="ja_JP.UTF-8"
locate データベース更新
# updatedb
nozeroを設定
余計なネットワーク経路を作らないために、/etc/sysconfig/network に下記を追加
NOZEROCONF=yes
保存後、ネットワーク再起動し適用
# /etc/init.d/network restart