I ended up figuring it out, though if anyone wants to follow what I did be advised that I can't guarantee that my method doesn't end up causing problems in the future.
The fstab edit I was confused about is just a file that automatically mounts partitions on boot. To learn exactly how to write an fstab entry I used this guide.
Next rather than moving the user as I though was necessary I now think that moving the home directory of a user is enough, it can be done with the commandThen all that's left is to copy the contents of the old home directory to the new one, from what I seen the recommended way to do so is with the rsync command which is explained here make sure you also copied the hidden files.
With that you are done, you can reboot the system and check that everything is working properly and that the user's home directory is the new one. You can either delete the old one or keep it as a backup.
If anyone more knowledgeable than me could point out any possible mistakes I made I would be grateful.
The fstab edit I was confused about is just a file that automatically mounts partitions on boot. To learn exactly how to write an fstab entry I used this guide.
Next rather than moving the user as I though was necessary I now think that moving the home directory of a user is enough, it can be done with the command
Code:
usermod -d /newhome/username username
With that you are done, you can reboot the system and check that everything is working properly and that the user's home directory is the new one. You can either delete the old one or keep it as a backup.
If anyone more knowledgeable than me could point out any possible mistakes I made I would be grateful.
Statistics: Posted by SpecialPilgrim — Thu Aug 29, 2024 10:27 am