The chsh command can be used to change the following user's login shell properties:
  • chenage Password of the user
  • shell local directory
  • Full name of the user
  • Office location
  • Office phone
  • home phone
chsh [-flag] user

Flags

  • -s: set shell as the login shell
  • -l: change the symbolic link and not the file or directory referred by the symbolic link.
  • -R: change the ownership for each file in a folder, if encounter symbolic link it will change the owenership of that symbolic link, and the directory/file referred in the symbolic link, but the directory is not further transversed.
  • -RH: change the ownership for each file in a folder, if a symbolic link is encountered, it will change the owenership of that symbolic link, the directory/file referred in the symbolic link, and all the directories are further transversed.
  • -RL: if a symbolic link referencing a file of type directory is specified on the command line or encountered during the traversal of a file hierarchy, the chown command will change the user ID (and group ID, if specified) of the directory referenced by the symbolic link and all files in the file hierarchy below it.
  • -RP: changes the ownership for each file in a folder, if encounter symbolic link it will change the owenership of that symbolic link, but will not change the the directory/file referred in the symbolic link, and the directory is not further transversed.