lchsh(1)

lchsh1

Change login shell

Usage

lchsh [OPTION] ... [user]

Overview

Displays and allows changing login shell of user.

If the user argument is not provided, username of the invoking user is used; the user argument is ignored if lchsh is run set-uid to a different user.

Entering an empty string (by pressing Enter) at the "New Shell" prompt is interpreted as accepting the current value.

Options

-i, --interactive

Ask all questions when connecting to the user database, even if default answers are set up in libuser configuration.

Exit status

The exit status is 0 on success, 1 on error.

Releases

9 releases since Debian 4.0 (Etch); the text changed 1 time.

  1. 4.0–7
  2. 8–13

Bugs

lchsh ignores /etc/shells.

From libuser 1:0.64+git20241106~dfsg-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.