I added user through command
adduser satya
I deleted the same user by
userdel satya
WhenI tried adding again
useradd satya
getting the following error:
Creating mailbox file: File exists
Used userdel -r satya
for deleting the user, it deleted the mail box too.
Now useradd satya
created the user.
sudo userdel username
- removes a user username leaving intact its files, namely the /home/username
directory and a mailbox file. This is useful when you want to temporarily deactivate a particular user.
sudo userdel -r username
- removes a user username and recursively wipes out everything associated with this user.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With