Friday, March 23, 2007

Modify a User Account with usermod via Command Line

I'm building on the previous post. Now I'm going to modify the user name, esofthub, to something else. Here's an example.

#usermod -d /export/home/sysadmin1 -m sysadmin1 esofthub

I've changed the directory and login of esofthub to sysadmin1.

If you don't like this method, use admintool.

#admintool &

1 comment:

Brian Willingham said...

How many people are still editing the /etc/passwd file directly to make user account changes? Amazing, since sysadmins are suppose to be security conscience. There is no logical in it.