How to change the login shell of a user????

A normal user only change the login shell of her account.Super user may change the login shell of any account.
Using finger command a user check her login shell and super user can check the login shell of any account.
#finger
example- suppose you want to know login shell of user john then,
#finger john

Using usermod command superuser can change login shell of any user.suppose super user want to change login shell (csh) of user john then,
#usermod -s /bin/csh john

superuser only used the usermod command.

A user john want to change her login shell (bash) ,then the command will be given below:

$bash -s /bin/bash john

Comments

Popular posts from this blog

Few tips for Linux User related to MAN page

SEND Mail Using JAVA Mail API