Managing User Accounts and User Environments in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

How to Change Account Defaults For All Roles

In the following procedure, the administrator has customized a roles directory . The administrator changes the default home directory and skeleton directory for all roles.

  1. Assume the root role or a role that has the User Management rights profile.

    See Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. Create a custom roles directory.

    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=
  3. Change the default home directory and skeleton directory for all roles.

    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=

    Future uses of the roleadd command create home directories in /export/home, and populate the roles' environment from the /etc/skel/roles directory.