Go to main content

Managing User Accounts and User Environments in Oracle® Solaris 11.4

Exit Print View

Updated: April 2019

How to Create the Home Directory for a User Without Creating a ZFS Dataset

  1. Become an administrator.

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

  2. Create a local directory under the /export/home path.
    # mkdir /export/home/local
  3. Add a new user account and specify the base directory for the same.
    # useradd -d /export/home/local/username -m username
    80 blocks
  4. Assign a password to the new user account.
    # passwd username
    New Password:
    Re-enter new Password:
    passwd: password successfully changed for username

    Note -  Make sure you have the User Security rights profile assigned in order to assign passwords.
  5. The home directory of the user account is created in the /export/home directory.
    # cat /etc/passwd
    dladm:x:15:65:Datalink Admin:/:
    netadm:x:16:65:Network Admin:/:
    netcfg:x:17:65:Network Configuration Admin:/:
    sshd:x:22:22:sshd privsep:/var/empty:/bin/false
    smmsp:x:25:25:SendMail Message Submission Program:/: