1. Home
  2. Computing & Technology
  3. Linux

Linux System Administrator's Guide

From Authors, About.com Guest


   Linux System Administrators Guide:
   Prev    Chapter 11. Managing user accounts    Next

11.3. Changing user properties

There are a few commands for changing various properties of an account (i.e., the relevant field in /etc/passwd ):

  • chfn
  •    

    Change the full name field.


  • chsh
  •    

    Change the login shell.


  • passwd
  •    

    Change the password.


The super-user may use these commands to change the properties of any account. Normal users can only change the properties of their own account. It may sometimes be necessary to disable these commands (with chmod ) for normal users, for example in an environment with many novice users.

Other tasks need to be done by hand. For example, to change the username, you need to edit /etc/passwd directly (with vipw , remember). Likewise, to add or remove the user to more groups, you need to edit /etc/group (with vigr ). Such tasks tend to be rare, however, and should be done with caution: for example, if you change the username, e-mail will no longer reach the user, unless you also create a mail alias.


   Prev    Home    Next
   Creating a user    Up    Removing a user


* License

* Introduction to Linux Index

Explore Linux
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Linux
  4. Linux Documentation
  5. System Administration
  6. Linux System Administrator's Guide - Changing user properties

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

All rights reserved.