gatorparrots
~departed~
First, it is always a good idea to read the existing information about the user:
niutil -read . /users/userx
The output will be generally similar to this:
Here is the general syntax for the command line method for changing a user's home directory:
sudo niutil -createprop . /users/userx home "/Volumes/drivename/directory"
You're creating a property on top of one that already exists, overwriting the previous home directory (i.e. /Users/userx/) with the new one on another volume and directory altogether (on/Volumes/drivename/directory).
To confirm the changes, I recommend running the initial command again:
niutil -read . /users/userx
And of course, you would want to
chmod -R 765 /Volumes/drivename/directory
and
chown -R userx /Volumes/drivename/directory
(or whatever is appropriate for your particular scenario).
niutil -read . /users/userx
The output will be generally similar to this:
Code:
authentication_authority: ;basic; ;LocalWindowsHash;
picture: /Library/User Pictures/Animals/Butterfly.tif
_shadow_passwd:
hint:
uid: 502
_writers_passwd: userx
realname: userx
_writers_hint: userx
gid: 20
shell: /bin/tcsh
name: userx
_writers_tim_password: userx
passwd: 3wbpLri9iMo
_writers_picture: userx
home: /Users/userx
sharedDir: Public
Here is the general syntax for the command line method for changing a user's home directory:
sudo niutil -createprop . /users/userx home "/Volumes/drivename/directory"
You're creating a property on top of one that already exists, overwriting the previous home directory (i.e. /Users/userx/) with the new one on another volume and directory altogether (on/Volumes/drivename/directory).
To confirm the changes, I recommend running the initial command again:
niutil -read . /users/userx
Code:
authentication_authority: ;basic; ;LocalWindowsHash;
picture: /Library/User Pictures/Animals/Butterfly.tif
_shadow_passwd:
hint:
uid: 502
_writers_passwd: userx
realname: userx
_writers_hint: userx
gid: 20
shell: /bin/tcsh
name: userx
_writers_tim_password: userx
passwd: 3wbpLri9iMo
_writers_picture: userx
home: /Volumes/drivename/directory
sharedDir: Public
And of course, you would want to
chmod -R 765 /Volumes/drivename/directory
and
chown -R userx /Volumes/drivename/directory
(or whatever is appropriate for your particular scenario).