In the following procedure, the administrator has customized a roles directory . The administrator changes the default home directory and skeleton directory for all roles.
See Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.
For example:
# roleadd -D group=other,1 project=default,3 basedir=/home skel=/etc/skel shell=/bin/pfsh inactive=0 expire= auths= profiles=All limitpriv= defaultpriv= lock_after_retries=
For example:
# roleadd -D -b /export/home -k /etc/skel/roles # roleadd -D group=staff,10 project=default,3 basedir=/export/home skel=/etc/skel/roles shell=/bin/sh inactive=0 expire= auths= profiles= roles= limitpriv= defaultpriv= lock_after_retries=
Further use of the roleadd command will now create home directories in the /export/home directory, and will populate the roles' environment from the /etc/skel/roles directory.