Can't see home folder on one NFS mount but can in another mount on another share

Hello,

I have a few Ubuntu 9.10 laptops I'm trying to learn NFS sharing with. I am just experimenting on this right now, so no harsh words about the security of what I'm playing with, please :wink:

Below are the configs

/etc/exports on host

/home/woodnt/Homeschool 192.168.1.0/24(rw,async,no_root_squash)
/home/share/HomeSchool 192.168.1.0/24(rw,async,no_root_squash)
/HomeSchool 192.168.1.0/24(rw,async,no_root_squash)
/home 192.168.1.0/24(rw,async,no_root_squash)
/ 192.168.1.0/24(rw,async,no_root_squash)

mounts on client

toshiba-laptop:/home/woodnt/Homeschool on /mnt/mnt1 type nfs (rw,addr=192.168.1.54)
toshiba-laptop:/home/share/HomeSchool on /mnt/mnt2 type nfs (rw,addr=192.168.1.54)
toshiba-laptop:/HomeSchool on /mnt/mnt3 type nfs (rw,addr=192.168.1.54)
toshiba-laptop:/ on /mnt/mnt4 type nfs (rw,addr=192.168.1.54)
toshiba-laptop:/home on /mnt/mnt5 type nfs (rw,addr=192.168.1.54)

on the host machine, /bin and /home have the same permissions:

woodnt@toshiba-laptop$ ls -dl home bin
drwxr-xr-x  2 root root 4096 2009-12-22 23:21 bin
drwxr-xr-x 16 root root 4096 2009-12-23 20:45 home

also on the host machine /home/woodnt and /HomeSchool have the same permissions:

woodnt@toshiba-laptop$ ls -ld /home/woodnt /HomeSchool/
drwxr-xr-x  2 woodnt woodnt 4096 2010-01-08 18:48 /HomeSchool/
drwxr-xr-x 95 woodnt woodnt 4096 2010-01-08 20:21 /home/woodnt

Also, these have the same permissions on the host machine.

woodnt@toshiba-laptop$ ls -ld /bin/bash /home /home/2009-12-22-22-img-of-os/ /home/2009-12-22-22-img-of-os/parts 
-rwxr-xr-x  1 root root 917960 2009-09-14 00:08 /bin/bash
drwxr-xr-x 16 root root   4096 2009-12-23 20:45 /home
drwxr-xr-x  2 root root   4096 2009-12-22 16:34 /home/2009-12-22-22-img-of-os/
-rwxr-xr-x  1 root root      5 2009-12-22 16:34 /home/2009-12-22-22-img-of-os/parts

From the client:

woodnt@luke-netbook:/mnt/mnt4$ ls -ld bin bin/bash
drwxr-xr-x 2 root root   4096 2009-12-22 23:21 bin
-rwxr-xr-x 1 root root 917960 2009-09-14 00:08 bin/bash
woodnt@luke-netbook:/mnt/mnt4$ ls home
woodnt@luke-netbook:/mnt/mnt4$

And I can see /bin, everything in /bin like /bin/bash, but not /home and any home contents.

I have the same GID and UID on both boxes (1000, not that that matters).

On the client with everything mounted as above, I can:

ls the contents of /bin, /home (via /mnt/mnt5), /, /home/woodnt/Homeschool/, /home/share/HomeScool, and /HomeSchool.

When I am on the mountpoint /mnt/mnt4 where the whole root directory is mounted and I " $ ls /mnt/mnt4/home " I get bupkis. Nada. Zilch.

Why can I see /home mounted on /mnt/mnt5 but not as a subdir of / when from the /mnt/mnt4?

I'm the same user in the same group logged into the same mountpoints on every one, but I can see inside the host /home when it is mounted directly, but not when it is mounted as root and cd'd too.

What gives?

Thanks for the help in advance,

Narnie

---------- Post updated at 11:22 PM ---------- Previous update was at 09:35 PM ----------

I set it up similarly on the same computer exporting only the root (/) directory. Same problem. Can't be a user/group problem or permission problem because it is the same user on the same computer/

The mount of root is to /mnt/mnt1

Notice the permissions below. I even cp -a /bin/bash /home just to have the same file with the same permissions and yet I can't see bash in /mnt/mnt1/home

Really crazy. This is duplicated on another pair of computers setups as well. not just this computer and the netbook above.

woodnt@toshiba-laptop / $ ls -ld /mnt/mnt1/home/ mnt/mnt1/bin/
drwxr-xr-x 2 root root 4096 2009-12-22 23:21 mnt/mnt1/bin/
drwxr-xr-x 2 root root 4096 2009-12-22 16:43 /mnt/mnt1/home/
woodnt@toshiba-laptop / $ ls -ld bin/ home/
drwxr-xr-x  2 root root 4096 2009-12-22 23:21 bin/
drwxrwxrwx 16 root root 4096 2010-01-08 23:10 home/
woodnt@toshiba-laptop / $ ls -l bin/bash home/bash 
-rwxr-xr-x 1 root root 917960 2009-09-14 00:08 bin/bash
-rwxr-xr-x 1 root root 917960 2009-09-14 00:08 home/bash
woodnt@toshiba-laptop / $ ls -ld /mnt/mnt1/home/ mnt/mnt1/bin/
drwxr-xr-x 2 root root 4096 2009-12-22 23:21 mnt/mnt1/bin/
drwxr-xr-x 2 root root 4096 2009-12-22 16:43 /mnt/mnt1/home/
woodnt@toshiba-laptop / $ ls /mnt/mnt1/home/ mnt/mnt1/bin/
mnt/mnt1/bin/:
bash                  dumpkeys    mktemp          sh
bunzip2               echo        more            sh.distrib
bzcat                 ed          mount           sleep
bzcmp                 egrep       mountpoint      stty
bzdiff                false       mt              su
bzegrep               fgconsole   mt-gnu          sync
bzexe                 fgrep       mv              tailf
bzfgrep               fuser       nano            tar
bzgrep                fusermount  nc              tempfile
bzip2                 grep        nc.traditional  touch
bzip2recover          gunzip      netcat          true
bzless                gzexe       netstat         ulockmgr_server
bzmore                gzip        ntfs-3g         umount
cat                   hostname    ntfs-3g.probe   uname
chgrp                 ip          open            uncompress
chmod                 kbd_mode    openvt          unicode_start
chown                 keyctl      pidof           vdir
chvt                  kill        ping            which
cp                    less        ping6           zcat
cpio                  lessecho    ps              zcmp
dash                  lessfile    pwd             zdiff
date                  lesskey     rbash           zegrep
dbus-cleanup-sockets  lesspipe    readlink        zfgrep
dbus-daemon           ln          rm              zforce
dbus-uuidgen          loadkeys    rmdir           zgrep
dd                    login       rnano           zless
df                    ls          run-parts       zmore
dir                   lsmod       sed             znew
dmesg                 mkdir       setfont
dnsdomainname         mknod       setupcon

/mnt/mnt1/home/:
woodnt@toshiba-laptop / $ 

again, nothing under /mnt/mnt1/home :frowning:

errrrrrr

Is /home in a separate files system to / (root)? If it is then NFS exporting root only exports the root filesystem. I wasn't absolutely certain about this but NFSExports < Webmin < TWiki says:

Well, you are sure right. /home is on a separate partition.

That totally explains it. I wish I'd thought to say that part of the equation. Thank you for pointing this out.