Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
What's wrong with iSCSI? Or even NFS? – Michael Hampton Jul 16 '12 at 17:51
It was my understanding that NFS doesn't allow the same user-based security options that SSHFS does. However, iSCSI seems like an attractive solution. I'll look into it. – Mithrandir Jul 16 '12 at 18:08
For anyone still looking to solve this problem using SFTP, SSHFS in the FUSE implementation will mount with local access only given to the user who ran the sshfs program. Using the idmap option will translate the remote user to the local user, so that permission given on the server to the remote user is permission given locally to the local user. – Mithrandir Jul 17 '12 at 17:59

You must log in to answer this question.

Browse other questions tagged .