AMP AMP
AMP
0
AMP

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?

Home Directory Linux Add a comment
a sample image
ethan
asked May 18 2017

Answer

AMP
0
AMP

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.

Add a comment
a sample image
jagannatharumugam
asked May 18 2017
edited Oct 05 2018
Post your Answer