LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How change a userīs home directory? (https://www.linuxquestions.org/questions/linux-newbie-8/how-change-a-user%B4s-home-directory-751047/)

Roxxor2 08-29-2009 06:16 AM

How change a userīs home directory?
 
How can I change a userīs home dir?

Letīs say Roxxor2īs home dit is /home/Roxxor2, how can I change it to /home/roxxor?

JulianTosh 08-29-2009 06:22 AM

make sure the new directory is owned by the right uid with:

chown -R roxxor2:roxxor2 /home/roxxor #run as root

then edit /etc/passwd and change the line beginning with roxxor2. change the part that says '/home/roxxor2' to '/home/roxxor'

Roxxor2 08-29-2009 06:28 AM

Thanks! Is it also possible to change the userīs name from "Roxxor2" to "roxxor"?

JulianTosh 08-29-2009 06:32 AM

Yup. same place in /etc/passwd, just change the name.

I think it might be a bit more complicated for some GUI settings, but that's it for the basic login.


All times are GMT -5. The time now is 04:12 AM.