I have user A created on Machine 1 and user A belongs to group G1. I have user A also on Machine 2 and user A belongs to group G2. A directory on Machine 3 (not in my control) has rwx permissions for user A. Should user A be able to write to that directory from both machines??? Or does it matter which group user A belongs to?? I thought the groups won't matter, but it seems that from Machine1 I can write into the directory, but I can't from Machine2.
migrated from stackoverflow.com Dec 4 '11 at 23:00
I'm assuming you're using NFS here.
If it's mounted read-only, nobody on the mounting machine will be able to write to it no matter what the permissions are.
If the UID of User A is different on the two machines, that may also cause the issue you're seeing. (There are many ways to get the UID of a user. One way is to log in as the user and use
If User A is the root user on the mounting machine, that may also cause the issue you are seeing. The root user is typically mapped to an unprivileged user for NFS for security purposes.
There are probably at least a dozen other possible causes, but those are the things that leap to mind.