---
name: "adduser.local"
section: "8"
platform: "linux"
package: "adduser"
version: "3.152"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/adduser.local"
---

# adduser.local(8)

hook for local actions in adduser and deluser

## NAME

adduser.local, deluser.local - hook for local actions in adduser and deluser

## SYNOPSIS

**adduser.local** \[**username**\] \[**uid**\] \[**gid**\] \[**home-directory**\]

**deluser.local** \[**username**\] \[**uid**\] \[**gid**\] \[**home-directory**\]

## DESCRIPTION

**adduser.local** and **deluser.local** can be placed by the local admin into */usr/local/sbin* and will be called by **adduser** and **deluser** respectively in order to do locally relevant setup and cleanup actions.

The hooks are called while the adduser/deluser lock is active. They must therefore not call back to adduser/deluser themselves.

## RETURN VALUE

Return values from the hooks are ignored.

## ENVIRONMENT

**VERBOSE**

- 0

  if  --quiet is specified

- 1

  if neither --quiet nor --debug is specified

- 2

  if --debug is specified

## SEE ALSO

[**adduser.conf**(5)](/adduser.conf/5.md), [**deluser.conf**(5)](/deluser.conf/5.md), [**adduser**(8)](/adduser/8.md), [**deluser**(8)](/deluser/8.md), [**groupadd**(8)](/groupadd/8.md), [**useradd**(8)](/useradd/8.md), [**usermod**(8)](/usermod/8.md), Debian Policy 9.2.2.
