2011年5月10日火曜日

CentOSで一般ユーザの作成&削除

root権限で入って作成

# useradd centos ← 一般ユーザcentosの作成
# passwd centos ← centosのパスワード設定
Changing password for user centos.
New UNIX password:  ← centosのパスワード応答
Retype new UNIX password:  ← centosのパスワード応答(確認)
passwd: all authentication tokens updated successfully.

# userdel -r centos ← 一般ユーザcentosの削除

ユーザー一覧確認
cat /etc/passwd