Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating mailbox file: File exists

Tags:

redhat

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

like image 554
satyamera108 Avatar asked Jan 04 '19 06:01

satyamera108


2 Answers

Used userdel -r satya for deleting the user, it deleted the mail box too.

Now useradd satya created the user.

like image 60
satyamera108 Avatar answered Oct 07 '22 01:10

satyamera108


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.

like image 25
Giorgi Tsiklauri Avatar answered Oct 06 '22 23:10

Giorgi Tsiklauri