ユーザ新規作成

(例) useradd -d ホームディレクトリ -g グループ名 -s シェル -c "コメント" ユーザ名

[root@linux ~]# groupadd example  ←■ 専用のグループを使う場合は、グループを新規作成する
[root@linux ~]# useradd -d /home/example -g users -s /bin/bash -c "イランイラン メルマガ" example
[root@linux ~]# chmod 755 example  ←■ アクセス権限を変更
[root@linux ~]# passwd admin  ←■ パスワード設定
Changing password for user example.
New UNIX password:  ←■ パスワード入力
Retype new UNIX password:  ←■ パスワード再入力
passwd: all authentication tokens updated successfully.
[root@linux ~]#
[root@linux ~]#

ユーザ削除

(例) userdel -r example  # ホームディレクトリとメールスプールを削除する場合は -r オプションを付ける

[root@linux ~]# userdel -r example
[root@linux ~]#

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2010-06-07 (月) 01:00:57 (90d)