LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   change user home directory from command line (https://www.linuxquestions.org/questions/debian-26/change-user-home-directory-from-command-line-427807/)

cccc 03-23-2006 04:59 PM

change user home directory from command line
 
hi

howto change user home directory from the command line ?
I have debian sarge.

greetings
cccc

gilead 03-23-2006 05:07 PM

You can use the usermod command. The following (run as root) will change the user smith's home directory to /tmp/smith and move all of their files with it.
Code:

usermod -m -d /tmp/smith smith


All times are GMT -5. The time now is 12:18 PM.