0

to troubleshoot a Ubuntu package manager problem I have to do

sudo deluser --system messagebus

I want to know what is the command to undo the above before I try it.

Registered User
  • 1,453
  • 5
  • 18
  • 37

2 Answers2

1
sudo adduser --system messagebus

check

man adduser
rems
  • 2,240
  • 13
  • 11
1

Before any action, copy "/etc/passwd" to a safe place.

Then, to recreate the user:

adduser --system --home $HOME --shell $SHELL --uid $UID messagebus

HOME,SHELL,UID look in the copy you made of /etc/passwd.

womble
  • 95,029
  • 29
  • 173
  • 228
alvosu
  • 8,357
  • 24
  • 22