---
name: "remove-shell"
section: "8"
platform: "linux"
package: "debianutils"
version: "5.23.2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/remove-shell"
---

# remove-shell(8)

remove shells from the list of valid login shells

## NAME

remove-shell - remove shells from the list of valid login shells

## SYNOPSIS

**remove-shell** *shellname* \[*shellname*...\]

## DESCRIPTION

**remove-shell** operates on the temporary files */etc/shells.tmp* and */etc/shells.tmp2* to remove the given shells from the list of valid login shells, and copy the result back to */etc/shells*.

## ENVIRONMENT

- *DPKG\_ROOT*

  specifies the base path under which */etc/shells* resides.

## SEE ALSO

[**shells**(5)](/shells/5.md)
