One Day One Cmd

Place for playing with commands…

Day 93: $chsh command

ODOC: About chsh command
Enables a user to change their login shell.

Syntax

chsh [-s login_shell] [user]

-s -> login_shell Enables a user to specify the login shell.

Examples

chsh

Used without the -s option enables the user to specify the path of their 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. On the other hand, it can also be configured such that it will only accept shells listed in this file, unless you are root.

With Regards,
S. Praveen

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: