As a root user, log in to the AccessManager–1 host machine.
Use roleadd to create a new user.
# roleadd -s /sbin/sh -m -g staff -d /export/am71adm am71adm |
We chose to use roleadd rather than useradd for security reasons as roleadd disables the ability of the user to log in.
(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:SunOS 4.x NFS Anonymous Access User:/: am71adm:x:215933:10::/export/am71adm:/sbin/sh |
(Optional) Verify that the user's directory was created.
# cd /export/am71adm # ls local.cshrc local.profile local.login |
Create a password for the non-root user.
# passwd am71adm New Password: 4m71a6m Re-ener new Pasword: 4m71a6m passwd: password successfully changed for am71adm |
If you do not perform this step, you will not be able to switch user (su) when logged in as the non-root user.