My goal is to create several network shares, one for each user on the network. The objective is to replace an internal HDD with an SSD, and move the home directories (or maybe just documents, etc. individually, since home folders can get a little hairy) to a server on the network.
My proposed solution is to serve files using SFTP, and mount them using SSHFS (I also believe SSHFS will allow remote access, which is a bonus). Each user will get a user account on the server. These accounts allow the users to log into the server, and file permissions on the server can restrict access to directories owned by that user on the server. The problem I foresee is this: If the local user's uid is 1001 and the server user's uid is 1002, then local user will not have read/write permission on the network drive (unless r/w permission is given to everyone, which means the shares are no longer private). But the local user accounts are already created, so there is no way to ensure uid's match between server and local accounts.
How do I do this?