Answer the question
In order to leave comments, you need to log in
NFS user compliance?
Hello,
I recently decided to create a sync of my files between my desktop computer and my laptop. For this, I chose NFSv4. And I ran into this problem:
On my desktop computer, my user has uid equal to 1000. On a laptop with the same name, it has uid equal to 1001. As a result, when I mount a directory from the desktop computer on my laptop, I get that the file owner is the user uid=1000 and not uid=1001.
Please help me solve this problem.
Additional information:
- My operating system is Fedora 18 on both computers.
- /etc/exports looks like this:
/home/user/folder 192.168.0.55(rw,sync,no_root_squash,no_all_squash)
Answer the question
In order to leave comments, you need to log in
Again I will say: use nfsv4 already. There, such a problem simply does not exist - uid / gid are not transmitted over the network, the user ID (name) is transmitted, which is mapped to uid / gid at stations, each of which may have its own mapping algorithm, not like the mappings themselves.
if you can’t change either uid or fs, then you can’t create additional users with uid 1000 and 1001 on the laptop and desktop, and distribute rights through groups, no more (I once looked for something similar, uid substitution was possible only for smb)
I suggested it to beat. kill. It was immediately clear that the init script would stop everything.
If some software does not work correctly, for research it is launched not with init scripts, but manually, observing what is happening, as a rule, in debug mode.
It is configured correctly, uses the local nsswitch for mapping.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question