If you get the error Creating mailbox file: File exists when you add a user with useradd under linux
It is possible that userdel xxx did not add -r when deleting the user, so only the user was deleted, but not the user’s configuration file
For example, the path of the configuration file is in /var/spool/mail/xxx
# userdel -r
Usage: userdel [options] LOGIN
Options:
-f, --force force some actions that would fail otherwise
e.g. removal of user still logged in
or files, even if not owned by the user
-h, --help display this help message and exit
-r, --remove remove home directory and mail spool
-R, --root CHROOT_DIR directory to chroot into
-Z, --selinux-user remove any SELinux user mapping for the user
Read More:
- [docker][issue]Error response from daemon: mkdir xxx: file exists: unknown
- Linux Ubuntu ImportError: Libtk8.5.so: cannot open shared object file:No such file Install tkinter Library
- Nginx Error: Swap file “/etc/nginx/.nginx.conf.swp“ already exists
- [Solved] Linux Error: ENOSPC: System limit for number of file watchers
- [Solved] fatal error: linux/videodev.h: No such file or directory
- Chinese garbled problem when running. C file in Linux
- [Solved] Linux Error: Error: ENOSPC: System limit for number of file watchers
- [Solved] Linux VI Error: Can‘t open file for writing
- Error in Linux running file: bash: $’\r’: command not found
- Solution to gzip: stdin: invalid compressed data — format violated error in decompressing. Tgz file under Linux
- Docker Startup Error: standard_init_linux.go:211: exec user process caused “no such file or directory”
- [Solved] Python Import mmcv Warning: ImportError: libGL.so.1: cannot open shared object file: No such file or directory
- [Solved] Linux Install Goland Error: Error opening zip file or JAR manifest missing
- [Solved] pxp_lib.h:19:10: fatal error: linux/pxp_device.h: No such file or directory
- [Solved] ××: error while loading shared libraries: ××.so.19: cannot open shared object file: No such file or directory
- Error: loading shared libraries: cannot open shared object file: No such file or directory
- U-boot NFS download file error: loading: * * * error: File lookup fail solution
- [Solved] ubuntu makefile Cross-compilation error: file not recognized: file format not recognized
- [Solved] error while loading shared libraries: libjson.so.0: cannot open shared object file: No such file or
- [Solved] /usr/local/libexec/mecab/mecab-dict-index: error while loading shared libraries: libmecab.so.2: cannot open shared object file: No such file or directory