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-enter adduser or deluser from 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 --quiet is specified ๐Ÿคซ
  • 1 โ€” if neither --quiet nor --debug is specified (the default vibe, lowkey)
  • 2 โ€” if --debug is specified ๐Ÿ”ฅ

๐Ÿงš SEE ALSO


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