Tuesday, March 15, 2022

Create/Update home directory of a user in Linux

 Linux:

As a root user run below command

# sudo mkhomedir_helper username

This will create home directory for that specific user.


Oracle Linux 7:

Edit directly in /etc/passwd file

# vi /etc/passwd

username:x:176:10::/home/username:/usr/bin/bash


***