DELUSER.CONF(5)
๐ DELUSER.CONF(5) ๐
okay bestie, so this is deluser.conf, manual page 5 in the File Formats Manual series โ it's the lil config file that runs the whole show behind deluser(8) and delgroup(8). let's get into it ๐ซถ
โจ NAME โจ
/etc/deluser.conf โ the configuration file for deluser(8) and delgroup(8). that's it, that's the name ๐
๐ธ DESCRIPTION ๐ธ
so the file /etc/deluser.conf holds all the defaults for deluser(8) and delgroup(8). each line is one single value pair, and the form is literally:
option = value
double quotes or single quotes are allowed around the value, and you can put whitespace around the equals sign too โ she's flexible like that โจ. comment lines though? they must have a hash sign (#) in the first column. first column only. no exceptions, no cozy indented comments, periodt.
also heads up: deluser(8) and delgroup(8) also read /etc/adduser.conf โ see adduser.conf(5) โ and any settings in deluser.conf may overwrite settings made in adduser.conf. so deluser.conf is the main character here, lowkey ๐
the valid configuration options are, and yes we're going through every single one:
BACKUPโ ifREMOVE_HOMEorREMOVE_ALL_FILESis activated, all the files get backed up before they get removed. the backup file that gets created defaults tousername.tar(.gz|.bz2)in the directory specified by theBACKUP_TOoption. the compression method is chosen to the best that is available. values may be0or1. defaults to0. ๐พBACKUP_SUFFIXโ selects the compression algorithm for a home directory backup. can be set to any suffix recognized bytar --auto-compress. defaults to.gz. ๐๏ธBACKUP_TOโ ifBACKUPis activated,BACKUP_TOsays which directory the backup gets written to. defaults to the current directory. ๐EXCLUDE_FSTYPESโ a regular expression that describes all the filesystem types which should be excluded when looking for files of a user to be deleted. defaults to"(proc|sysfs|usbfs|devtmpfs|devpts|afs)". ๐ซNO_DEL_PATHSโ a list of regular expressions, space separated. every file to be deleted in the course of deleting the home directory or user-owned files elsewhere gets checked against each of these regular expressions. if a match is detected, the file is not deleted. defaults to a list of system directories, leaving only/home. therefore only files below/homebelonging to that specific user are going to be deleted. ๐ก๏ธONLY_IF_EMPTYโ only delete a group if there are no users belonging to this group. defaults to0. ๐REMOVE_ALL_FILESโ removes all files on the system owned by the user to be removed. if this option is activated,REMOVE_HOMEhas no effect. values may be0or1. defaults to0. ๐REMOVE_HOMEโ removes the home directory and mail spool of the user to be removed. value may be0(don't delete) or1(do delete). defaults to0. ๐SYS_DELETE_ACTIONโ the default action to take when deleting system accounts. valid options are"lock"and"delete"(the default). if set to"lock"and not overridden by--force-delete, behave as if--lockwere passed and lock the account. seedeluser(8)for specific details. ๐
ok real talk bestie,REMOVE_ALL_FILESandREMOVE_HOMEare giving "no takebacks" energy โ those files are gone, so make sure that's what you actually want before you flip them to1. ๐ญ
๐ FILES ๐
/etc/deluser.conf
๐ SEE ALSO ๐
and that's the whole page, no notes ๐ this was Debian GNU/Linux's DELUSER.CONF(5), bestie โ go forth and configure responsibly, you absolute icon ๐โจ๐ฆ
๐ฆ where this page comes from
- ubuntu stonking: adduser 3.157ubuntu2 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms