My religion consists of a humble admiration of the illimitable
superior spirit who reveals himself in the slight details we are able
to perceive with our frail and feeble mind.

— Albert Einstein

Solaris - Add/Modify/Remove User using Unix Shell

  • Add User - In order to add UNIX user we can use useradd
  • Where options for useradd are

    • -G primary group
    • -g secondary group
    • -d default directory
    • -m forces to create default directory
    • -s default Shell
    >useradd -G staff -d /usr/testusr -m -s /bin/ksh testusr
    

    useradd

  • Modify User - in order to modify UNIX user
  • >usermod -s /bin/csh testusr
    

    usermod

  • Modify User Password - how to change the password of UNIX user
  • >passwd testusr
    

    passwd

  • Remove User - remove UNIX user
  • >userdel -r testusr
    

    userdel