---
name: "chsh.ldap"
section: "1"
platform: "linux"
package: "nss-pam-ldapd"
version: "0.9.13-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/chsh.ldap"
---

# chsh.ldap(1)

change login shell in LDAP

## NAME

chsh.ldap - change login shell in LDAP

## SYNOPSIS

FC**chsh.ldap**F\[0\]  \[*options*\] \[*LOGIN*\]

## DESCRIPTION

The **chsh.ldap** command can be used to change user's login shell (command interpreter).

The actual change in LDAP is performed by the **nslcd** daemon and is subject to the access controls configured in the LDAP server.

## OPTIONS

The options that may be specified to the **chsh.ldap** command are:

- FC**-s**F\[0\], FC**--shell**F\[0\] *SHELL*

  The name of the user's new login shell. Setting this field to blank causes the system to select the default login shell.

- FC**-l**F\[0\], FC**--list-shells**F\[0\]

  Print the list of shells found in FC*/etc/shells*F\[0\] and exit.

- FC**-h**F\[0\], FC**--help**F\[0\]

  Display short help and exit.

- FC**-V, --version**F\[0\]

  Output version information and exit.

If no option is specified **chsh.ldap** will prompt the user to enter a value for the shell.

## FILES

FC*/etc/shells*F\[0\] - list of valid login shells

## SEE ALSO

[**chsh**(1)](/chsh/1.md), [**shells**(5)](/shells/5.md), [**nslcd**(8)](/nslcd/8.md)

## AUTHOR

This manual was written by Arthur de Jong \<arthur@arthurdejong.org\>.
