LoginSignup
2
2

More than 5 years have passed since last update.

ユーザー作成

Last updated at Posted at 2015-09-12

この記事はWeb開発をするまでの一部です

hogeという名前のユーザを追加する場合

useradd hoge

作成したユーザの確認

id hoge

uid=1001(hoge) gid=1001(hoge) groups=1001(hoge)

上記のようなレスポンスがあれば、ユーザーが作成されています。

id: hoge: no such user
上記のレスポンスの場合はユーザーを作成できていません。

hogeユーザでログイン

現在、最初にログインしたrootユーザでログインしている状態のはずです。

su - hoge

上記のコマンドでhogeユーザに変わる事ができます。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2