Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: Move a user's home directory via the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Move a user's home directory via the command line
Authored by: wjv on Oct 31, '07 05:33:28AM

You can start the command as "dscl ." (with a single dot) to connect to the relative (local) domain directly.

"sudo su -" is redundant, just use "sudo -s". But you don't even need to authenticate before starting dscl(1) in interactive mode: Just use the "auth" command once you're inside it.

In summary, non-interactively (from the command line):

sudo dscl . -change /Users/<username> NFSHomeDirectory <old_path> <new_path>

Note: None of this is guaranteed. My sole experience messing with it has been (as a previous user has noted) in trying to create a system account for PostgreSQL.



[ Reply to This | # ]