Tuesday, May 4, 2010

How To Change A User's Home Directory in Solaris

# usermod -d /export/home/username username

(Don't forget to move any files from the old user account location to the new location!)

2 comments:

  1. How to move user home directory to under different user home directory.
    will this command do the job usermod -d /export/home/username username

    ReplyDelete
    Replies
    1. I know this is old, but may help someone else.

      You'll have to execute

      usermod -d /export/home/username username

      And make a cp as well, something like

      cp -r /old/home/path /new/home/path

      Delete