Skip to main content

Change account path / mounting point?

Comments

2 comments

  • cPanelLauren
    Hi @Micah_T The only supported way to modify the mount point for existing accounts is to use the rearrange an account interface.
    0
  • plague
    Hey @Micah_T, I use this commands to move accounts manually: rsync -av /home/$user /home1/$user replace /home/ /home1/ -- /var/cpanel/userdata/$user/* replace /home/ /home1/ -- /etc/proftpd/$user replace /home/ /home1/ -- /home/$user/etc/*/passwd replace /home/$user /home1/$user -- /etc/passwd cagefsctl --disable $user cagefsctl --enable $user service dovecot restart /scripts/rebuildhttpdconf && service httpd restart mv /home/$user/ /home/$user.old/ ln -s /home1/$user /home/$user
    Just check the path, replace rsync and adjust to your needings. Another way to achieve this is to make a copy of the user's folder and chmod the original to 000 permission: cp -al /home/user /home/user.bkp chmod 000 /home/user
    then start the copy process on WHM. The process will fail to copy the data, but will replace and modify the user's mount point (it will also remove the original user's folder, that's why I make the copy). Then you sync the backup folder to the new location. I hope this helps.
    0

Please sign in to leave a comment.