0% found this document useful (0 votes)
22 views2 pages

CHSH Command

The chsh command in Linux is used to change a user's login shell. It accepts the full path of any executable shell, but issues a warning if the shell is not listed in the /etc/shells file. The chsh syntax allows specifying the new login shell with the -s option followed by the shell path, and can list available shells or print help. For example, chsh -s /bin/bash fred sets fred's login shell to bash.

Uploaded by

Darko
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views2 pages

CHSH Command

The chsh command in Linux is used to change a user's login shell. It accepts the full path of any executable shell, but issues a warning if the shell is not listed in the /etc/shells file. The chsh syntax allows specifying the new login shell with the -s option followed by the shell path, and can list available shells or print help. For example, chsh -s /bin/bash fred sets fred's login shell to bash.

Uploaded by

Darko
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Linux chsh command

Updated: 04/26/2017 by Computer Hope

• About chsh
• chsh syntax
• chsh examples
• Related commands
• Linux and Unix commands help

About chsh
chsh changes a user's login shell.

Valid Shells
chsh will accept the full pathname of any executable file on the system. However, it will issue a
warning if the shell is not listed in the /etc/shells file.
It can also be configured to accept only shells listed in this file (unless the user is root). If a shell is not
specified, chsh will prompt for one to be specified.

chsh syntax
chsh [-s login_shell] [user]

-s shell
Sets shell as the login shell.
-l, --list-shells Print the list of shells listed in /etc/shells and exit.

-u, --help Print a usage message and exit.

-v, --version Print version information and exit.

chsh examples
chsh -s /bin/bash fred

Set user fred's login shell to /bin/bash.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy