S
S
serjx2013-03-21 15:55:27
linux
serjx, 2013-03-21 15:55:27

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)

- I tried to find a solution on the Internet, nothing helped.
- And I ask in advance, do not suggest not to use NFS.
— And do not offer to change the uid of users so that they match
Thank you

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
merlin-vrn, 2013-03-21
@merlin-vrn

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.

R
rPman, 2013-03-21
@rPman

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)

M
merlin-vrn, 2013-03-22
@merlin-vrn

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 question

Ask a Question

731 491 924 answers to any question