[Ilugc] One Day One Command (USERMOD)

  • From: sbharathi@xxxxxxxxxxxxx (Bharathi Subramanian)
  • Date: Tue Apr 12 21:02:08 2005

Mr Sridhar R (ILUGC-Member & Final Year Engg Student) has developed
the GNUSim8085, Simulator and Assembler for the 8085 Microprocessor.
Link http://www.sourceforge.net/projects/gnusim8085/

One Day One Command :-
====================

usermod -- Modify a user account

Summary :

The usermod command modifies the system account files to reflect the
changes that are specified, like Home dir, password, etc. on the
command line

Example:

# usermod -d /home2/usr1 usr1 -- Create the new home Dir for usr1 in
                          /home2 & Move old Dir contents to this Dir.

# usermod -e 2005-04-30 usr1 -- From 30/4/2005 the usr1 acc will be
                                disabled.

# usermod -f 6 usr1 -- After passwd expires, system will allow the
        user to login for 6 days with a warning to change his passwd.

# usermod -g prof usr1 -- Set usr1's initial group as prof.

# usermod -p $1$d8 usr1 -- Set the new passwd for the usr1 

# usermod -s /bin/bash usr1 -- Set Bash as the default login shell for
                               the usr1.

# usermod -L usr1 -- Lock a user's password.

# usermod -U usr1 -- Unlock a user's password.

Read: man usermod

Bye :)
--
Bharathi S
ODOC -- http://www.livejournal.com/community/ilugc/

Other related posts:

  • » [Ilugc] One Day One Command (USERMOD) - Bharathi Subramanian