Go to main content

Managing User Accounts and User Environments in Oracle® Solaris 11.3

Exit Print View

Updated: March 2017
 
 

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.3.

  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
    root:x:0:0:Super-User:/root:/usr/bin/bash
    daemon:x:1:1::/:/bin/sh
    bin:x:2:2::/:/bin/sh
    sys:x:3:3::/:/bin/sh
    adm:x:4:4:Admin:/var/adm:/bin/sh
    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:/:
    username:x:167:10::/export/home/local/username:/usr/bin/bash