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,463
  • 5
  • 18
  • 37

2 Answers2

1
sudo adduser --system messagebus

check

man adduser
rems
  • 2,260
  • 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
  • 96,255
  • 29
  • 175
  • 230
alvosu
  • 8,437
  • 25
  • 22