Create the non-root user using the roleadd command in the Solaris Operating Environment on the Distributed Authentication User Interface 2 (da-2) host machine.
As a root user, log in to the da-2 host machine.
Use roleadd to create a new user.
# roleadd -s /sbin/sh -m -g staff -d /export/da80adm da80adm |
(Optional) Verify that the user was created.
# cat /etc/passwd root:x:0:0:Super-User:/:/sbin/sh daemon:x:1:1::/: ... nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/: da80adm:x:227627:10::/export/da80adm:/sbin/sh |
(Optional) Verify that the user's directory was created.
# cd /export/da80adm # ls local.cshrc local.profile local.login |
(Optional) Create a password for the non-root user.
# passwd da80adm New Password: da80a6m Re-ener new Pasword: da80a6m passwd: password successfully changed for da80adm |
If you do not perform this step, you will not be able to switch user (su) when logged in as the non-root user.