ADDUSER(8)
๐ ADDUSER(8) โ bestie edition โจ
okay so this is ADDUSER(8) from the Debian GNU/Linux system manager's manual, and honestly? it's a lil niche but SO useful once you get it. buckle up ๐
๐ฆ NAME
adduser.local, deluser.local โ the hook for local actions in adduser and deluser ๐
๐ธ SYNOPSIS
adduser.local [username] [uid] [gid] [home-directory]
deluser.local [username] [uid] [gid] [home-directory]
โจ DESCRIPTION
so here's the tea, bestie ๐ซ โ adduser.local and deluser.local are these two lil scripts that the local admin (that's you, or your sysadmin bestie) can drop into /usr/local/sbin, and then adduser and deluser will call them respectively to do all the locally relevant setup and cleanup actions. it's giving "customize your own vibe" energy ๐
the hooks get called while the adduser/deluser lock is active. which means โ and this is the important part, no cap โ they must NOT call back to adduser/deluser themselves. that's a deadlock waiting to happen, and not the cute kind ๐ญ
โ ๏ธ fr fr: lock is held โ do not re-enteradduserordeluserfrom inside the hook. periodt.
๐ RETURN VALUE
the return values from the hooks are ignored. yep. literally just ignored ๐ whatever you return, nobody's checking. iconic behavior honestly ๐
๐ ENVIRONMENT
VERBOSE โ this one has โจlevelsโจ:
0โ if--quietis specified ๐คซ1โ if neither--quietnor--debugis specified (the default vibe, lowkey)2โ if--debugis specified ๐ฅ
๐ง SEE ALSO
adduser.conf(5)deluser.conf(5)adduser(8)deluser(8)groupadd(8)useradd(8)usermod(8)- Debian Policy 9.2.2. ๐
and that's the whole page, bestie ๐ซถ this one came out of Debian GNU/Linux and it's filed under ADDUSER(8) in the System Manager's Manual. go forth and hook responsibly ๐
โจ๐ธ
๐ฆ where this page comes from
- ubuntu stonking: adduser 3.157ubuntu2 ยท GPL-2.0-or-later
- Copyright 2025 Marc Haber <mh+debian-packages@zugschlus.de>
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms