Install Chsh On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

Install Chsh On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

chsh

Change user’s login shell.

Maintainer: Shadow package maintainers



Section: admin

Install chsh

  • Debian apt-get install passwd Click to copy
  • Ubuntu apt-get install passwd Click to copy
  • Alpine OS apk add util-linux Click to copy
  • Arch Linux pacman -S util-linux Click to copy
  • Kali Linux apt-get install passwd Click to copy
  • CentOS yum install util-linux-ng Click to copy
  • Fedora dnf install util-linux-user Click to copy
  • Raspbian apt-get install passwd Click to copy
  • macOS brew install util-linux Click to copy

Change user's login shell.

How to use chsh?

Below are few example commands for chsh that you can use in the terminal.

Change shell:
chsh -s path/to/shell_binary usernameClick to copy
Install the latest version of chsh in Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS from terminal. To install the chsh just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of chsh from the respository and install it in your computer/server.