You need to use the usermod command to set the user's new login directory. The syntax is as follows:
usermod -m -d /path/to/new/home/dir userNameHere
Where:
-d dirnanme : Path to new login (home) directory.
-m : The contents of the current home directory will be moved to the new home directory, which is created if it does not already exist.
In this example set the user's new login directory to /mnt/home/kusdi from /home/kusdi :
# usermod -m -d /users/v/vivek kusdi
No comments:
Post a Comment