Sunday, June 17, 2007

Modify a User Account via passmgmt

You can modify a user account with passmgmt. In this example, I'm modifying the comment field. Here's a before and after look.

# more /etc/passwd | grep esofthub
esofthub:x:1006:10:esofthub account:/export/home/esofthub:/bin/csh
# passmgmt -m -c "My SysAd Blog" esofthub
# more /etc/passwd | grep esofthub
esofthub:x:1006:10:My SysAd Blog:/export/home/esofthub:/bin/csh

No comments: