How to change home directory path for users in linux

I need to change the home directory path for the newly created user in my linux machine. Is it possible?

Tags: Home Directory Linux
user image Author :   ethan

Its possible. The default is /home/user/ to change as required, run the below command.

 # usermod -m -d (NEW_PATH) (USER_NAME)

NOTE: Once you give this command, the default path will be changed.

user image
jagannatharumugam May 19, 2017
Add comment