Go to main content

Managing User Accounts and User Environments in Oracle® Solaris 11.4

Exit Print View

Updated: April 2019
 
 

How to Change Account Defaults for All Roles

In the following procedure, the administrator customizes a roles directory . The administrator then 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.4.

  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.