0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Ubuntu18.04LTS ユーザー登録のミス

Posted at

社内メンバーをユーザー登録する際、

useradd hogihogi

で登録した結果、\home配下にhogihogiのディレクトリができなかった。
正しくは

adduser hogihogi

\home\hogihogiを作成してくれる。
ごっちゃになっちゃうのでメモしときます。
ちなみにグループ追加は

adduser hogihogi group

で作成。ちゃんとできたか確認は

id -a hogihogi

で確認。useraddコマンド間違えて使っちゃった場合は

userdel -r hogihogi

で消してみる。プロセスIDが動いてて消せなかった場合は

kill -KILL processID

で消してから

adduser --force-badname hogihogi

でユーザーを再追加できる。

どれもどこかに書いてあることばかりだけど、備忘録として書き残します。。。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?