Cannot read/write nfs shared subdirectory

Hi!

I have two pcs running openSUSE 11.0/11.1 in a tiny domestic network. Desktop pc (server) exports a directory as /home/luis using nfs . Notebook pc (client) mounts it with nfs as /home/luis.

cat /etc/exports
/home/luis *(rw,root_squash,sync,no_subtree_check)

Everything was ok.
Later, I added a new hard drive to the server pc, mount an ext3 partition at /home/luis/bak.

[fstab contains /dev/disk/…part5 /home/luis/bak ext3 acl,user_xattr 1 2]

Now, client pc can read/write all the shared folder except “bak” directory.
I checked permissions in server side:

ls /home/luis/bak -ld
drwxr-xr-x 8 luis users 4096 ene 17 18:06 /home/luis/bak

And in the client side:

ls /home/luis/bak -ld
drwxr-xr-x 2 root root 48 dic 25 20:13 /home/luis/bak

When I first mounted “bak” in server pc, it was root-owned, root-grouped. I changed it with chown, chgrp to the actual values luis, users.

Someone told me to give different uid numbers to the different users in both pcs, which were the same (1000 by default). I did it.

I don’t know what is wrong. Can anybody help me?

Luis

Someone told me to give different uid numbers to the different users in both pcs, which were the same (1000 by default). I did it.

IMHO that is not a clever idea. They should be the same else the one would not be the owner of the data on the other system.

I suppose you should export /home/luis/bak and mount it. See that the entry in /etc/fstab is AFTER the one of /home/luis