You can use admintool and useradd utilities to add user accounts. But there is another utility called passmgmt that will perform a similar function. However, it will not create a home directory. You will have to do that manually. Here's an example.
# passmgmt -a -c "esofthub account" -h /export/home/esofthub -u 1006 -g 10 -s /bin/csh esofthub
# pwck
esofthub:x:1006:10:esofthub account:/export/home/esofthub:/bin/csh
Login directory not found
# mkdir -p /export/home/esofthub
# chown -R esofthub:staff /export/home/esofthub
# pwck esofthub
# passwd esofthub
New password:
Re-enter new password:
passwd (SYSTEM): passwd successfully changed for esofthub
# su - esofthub
Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001
This blog covers Unix system administration HOWTO tips for using inline for loops, find command, Unix scripting, configuration, SQL, various Unix-based tools, and command line interface syntax. The Unix OS supports tasks such as running hardware, device drivers, peripherals and third party applications. Share tips/comments. Read the comments. But most importantly: Read Disclaimer - Read Disclaimer.
Sunday, June 17, 2007
Add a User Account via passmgmt
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment