Use the usermod command to modify a user's login account on the system.
The usermod Command Format and Options
The following is the command format for the usermod command :
usermod [ -u uid [ -o ] ] [ -g gid ] [ -d dir ] [ -m ] [ -s shell ] [ -c comment ] [ -l newlogname ] loginname
in general,the options for the usermod command function the same as those for the useradd command.The following example changes the login name and home directory for chandra to gupta.
#usermod -m -d /export/home/gupta -l gupta chandra




