NO IMAGE

CentOSにユーザを追加

サーバ(CentOS)にHPを転送する前に、FTP接続の為のユーザを登録します。

# useradd satoh163

追加したユーザーを「passwd」を表示して確認。追加したユーザが最下行に登録されています。

# cat /etc/passwd

グループを確認します。ユーザー名と同じグループに所属しています。最下行に。

# cat /etc/group

パスワードを設定する。

# passwd satoh163
ユーザー satoh163 のパスワードを変更。
新しいパスワード:
新しいパスワードを再入力してください:
passwd: 全ての認証トークンが正しく更新できました。

ユーザーのデフォルト設定情報を確認する。

# useradd -D

もし、登録したユーザーを削除する場合は、以下のコマンドを実行。

# userdel -r satoh163

-r オプションを付けて実行するとホームディレクトリも削除されるが、メールスプール(/var/mail/[user-name])に関しては手動で削除する必要があるようです。

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny