Change user directory
Use sudo
and at
to schedule the usermod
command, which changes the user's home dir.
In the at
interface
pkill -u UID # kill user processes
usermod -m -d /new/home # Change user home dir (-d) and move (-m) the content into the new folder
Ctrl+D
to exit the at
interface. Logout, wait 10 minutes, and login.