I'm thinking of setting up LDAP+NFS to handle centralized /home directories for our LAN users, but I was wondering, what would happen upon login from multiple machines with the same user? Are there risks of data corruption? If so, is there a way to prevent it?
(Clients and server would use Ubuntu)
From the point of view of the server, having a single user from different stations would be just like having the same user with more than usual processes. IOW: Nothing special.
OTOH, maybe there are some applications that depend on having a single instance. Firefox for example does try really hard to have a single instance per user; but I don't know if it's 'dangerous' or not to have more than one. Another example would be the desktop manager itself (Gnome, or KDE, or whatever). Although they should work, there might be some rough edges.
In both cases, it seems that what they would be 'protecting' from the concurrency are the temporary work files, and not any persistent data.
What I would do is just be sure that the
/tmp
directory is local to the client, and not bother.Should be able to login with the same user from multiple location. Data corruption only if you're trying to write to a file from multiple locations that do not lock the file.
So your question is about whether there is a risk to corrupt the data in the home directory of the user that is logged more than once using the NFS mount as his homedir, right?
Whenever the users access their data (either to write or read), they will get them from the NFS mount, so nothing is written or read locally. Corruption could happen if you try to write to the same file on the NFS mount from different machines, without re-reading it or locking it. But then, this problem is not specific to NFS, since Unix allows several processes to write to the same file concurrently.