LoginSignup
1
0

More than 1 year has passed since last update.

usermod: user xxx is currently used by process xxx の対処法

Last updated at Posted at 2023-03-04

CentOS8.1

ユーザー名を変えたくて、usermod -l new_name old_nameを叩くと
usermod: user xxx is currently used by process xxxとなって変更できない。suでrootになっても同じだったので、どうやらログインしてしまうとだめらしい。

CUI起動

対策として、システム起動後にログイン画面になる前にctrl+alt+F2で下のCUIに入ってrootでログイン。

useradd編1.PNG

次に

usermod -l new_name old_name

で変更が完了。その後reboot。

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