Unix and Linux Discussions Tagged with login |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
13,621 |
What is on Your Mind? |
|
|
|
1 |
134,025 |
Forum Support Area for Unregistered Users & Account Problems |
|
|
|
10 |
13,884 |
Cybersecurity |
|
|
|
1 |
22,116 |
UNIX for Advanced & Expert Users |
|
|
|
7 |
12,052 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
17,077 |
Forum Support Area for Unregistered Users & Account Problems |
|
|
|
0 |
6,012 |
UNIX for Beginners Questions & Answers |
|
|
|
9 |
12,720 |
UNIX for Advanced & Expert Users |
|
|
|
10 |
7,623 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
7,102 |
Shell Programming and Scripting |
|
|
|
2 |
1,818 |
Shell Programming and Scripting |
|
|
|
2 |
14,323 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
2,559 |
Shell Programming and Scripting |
|
|
|
3 |
9,788 |
Shell Programming and Scripting |
|
|
|
1 |
2,166 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
8,533 |
Debian |
|
|
|
9 |
15,405 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,101 |
Forum Support Area for Unregistered Users & Account Problems |
|
|
|
3 |
17,431 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
22,188 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,658 |
AIX |
|
|
|
5 |
5,000 |
HP-UX |
|
|
|
2 |
6,215 |
Debian |
|
|
|
0 |
2,877 |
Red Hat |
|
|
|
3 |
2,187 |
Shell Programming and Scripting |
|
|
|
4 |
7,516 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,483 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
1 |
3,288 |
Solaris |
|
|
|
14 |
14,947 |
Red Hat |
|
|
|
8 |
7,831 |
AIX |
|
|
|
2 |
6,248 |
AIX |
|
|
|
0 |
3,480 |
Solaris |
|
|
|
2 |
83,670 |
Red Hat |
|
|
|
1 |
11,361 |
Shell Programming and Scripting |
|
|
|
1 |
4,841 |
Shell Programming and Scripting |
|
|
|
2 |
12,464 |
Linux |
|
|
|
0 |
3,230 |
Solaris |
|
|
|
1 |
4,177 |
Shell Programming and Scripting |
|
|
|
8 |
9,055 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,145 |
Cybersecurity |
CHSH(1) User Commands CHSH(1)
NAME
chsh - change login shell
SYNOPSIS
chsh [options] [LOGIN]
DESCRIPTION
The chsh command changes the user login shell. This determines the name of the user's initial login command. A normal user may only change
the login shell for her own account; the superuser may change the login shell for any account.
OPTIONS
The options which apply to the chsh command are:
-h, --help
Display help message and exit.
-R, --root CHROOT_DIR
Apply changes in the CHROOT_DIR directory and use the configuration files from the CHROOT_DIR directory.
-s, --shell SHELL
The name of the user's new login shell. Setting this field to blank causes the system to select the default login shell.
If the -s option is not selected, chsh operates in an interactive fashion, prompting the user with the current login shell. Enter the new
value to change the shell, or leave the line blank to use the current one. The current shell is displayed between a pair of [ ] marks.
NOTE
The only restriction placed on the login shell is that the command name must be listed in /etc/shells, unless the invoker is the superuser,
and then any value may be added. An account with a restricted login shell may not change her login shell. For this reason, placing /bin/rsh
in /etc/shells is discouraged since accidentally changing to a restricted shell would prevent the user from ever changing her login shell
back to its original value.
FILES
/etc/passwd
User account information.
/etc/shells
List of valid login shells.
/etc/login.defs
Shadow password suite configuration.
SEE ALSO
chfn(1), login.defs(5), passwd(5).
shadow-utils 4.5 01/25/2018 CHSH(1)