How to change home path for a user?
Hi
I have a created a particular user 'wscale' and I want it's home path to be set to /home/xxx/yyy Not sure if the below works HOME=/home/xxx/yyy Any help will be much appreciated. Cheers! |
As root, open the file /etc/passwd
You will see a line that looks like this: Code:
wscale:x:1000:100:,,,:/home/wscale:/bin/bash Code:
wscale:x:1000:100:,,,:/home/xxx/yyy:/bin/bash Code:
# mkdir /home/xxx/yyy |
Also check out the manpages for usermod(8).
|
OR, if you want to save all troubles of editing the passwd file and directories:
useradd -d /home/xxx/wscale wscale but you still need to make sure that /home/xxx is available... |
Quote:
I just followed your steps and VOILA!!! Thanks a ton. Cheers! |
All times are GMT -5. The time now is 11:04 PM. |