Go to main content

Managing User Accounts and User Environments in Oracle® Solaris 11.3

Exit Print View

Updated: March 2017
 
 

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. Become an administrator or a user with the User Management rights profile.

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

  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=

    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.