Linux

  1. Home
  2. Computing & Technology
  3. Linux

GNU/Linux Command-Line Tools Summary

From Authors, for About.com


   GNU/Linux Command-Line Tools Summary
   Prev    Chapter 10. Managing users    Next

10.1. Users/Groups

All user information is normally listed in the "/etc/passwd" file and the group information in the "/etc/groups" file.

If you need to edit either file it is recommended that you use vipw to edit the password file and vigr to edit the group file. These particular commands take care of any processing and locking of the files before and after editing them.

There is a lot of information about adding/removing/controlling users and groups, this information is only the minimal information required.

  • chsh
  •    

    Used to change your login shell.

    To list the shells available type:


       

    chsh --list-shells

    Simply type chsh then [Enter], then type the name of the shell you would like to use every time you login.


  • chfn
  •    

    Change finger information.

    The information this command changes is reflected in the /etc/passwd file, use this utility to update your real name, office and home phone numbers (if they exist).

    Use the -f option to change a users full name. Use this tool as either chfn or chfn user_name (usable by root only).

    Command syntax:


       

    chfn user_name


  • passwd
  •    

    Changes the password of a user. You will need to be root if you want to change other users passwords.

    Simply type passwd to change your own password or to change another users password type:


       

    passwd username



   Prev    Home    Next
   Managing users    Up    Text Related Tools


* License

* GNU/Linux Command-Line Tools Summary Index

Explore Linux

About.com Special Features

Linux

  1. Home
  2. Computing & Technology
  3. Linux
  4. Linux Documentation
  5. Linux Tools Summary
  6. GNU/Linux Command-Line Tools Summary - Users/Groups

©2009 About.com, a part of The New York Times Company.

All rights reserved.