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


 
Thread Tools Search this Thread
Special Forums IP Networking Can't see home folder on one NFS mount but can in another mount on another share
# 1  
Old 01-09-2010
Network [SOLVED] 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 Smilie

Below are the configs

/etc/exports on host

Code:
/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

Code:
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:

Code:
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:

Code:
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.

Code:
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:
Code:
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.

Code:
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 Smilie

errrrrrr

Last edited by Narnie; 01-09-2010 at 10:50 PM.. Reason: Problem is solved.
# 2  
Old 01-09-2010
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:
Quote:
If an exported directory has mount points under it, files under those mount points will not be accessible by NFS clients. So if you exported the root directory / and has a separate filesystem mounted at /home , you would need to also export /home and clients would need to mount it in order to see the files under it.
# 3  
Old 01-09-2010
Fixed

Quote:
Originally Posted by TonyFullerMalv
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Mount NFS Share On NFS Client via bash script.

I need a help of good people with effective bash script to mount nfs shared, By the way I did the searches, since i haven't found that someone wrote a script like this in the past, I'm sure it will serve more people. The scenario as follow: An NFS Client with Daily CRON , running bash script... (4 Replies)
Discussion started by: Brian.t
4 Replies

2. SCO

Cannot mount NFS share (FreeNAS) onto SCO OpenServer 5.0.6

Hi! All, I am trying to mount a NFS share on my FreeNAS system onto my SCO OpenServer 5.0.6. I get the following error: mount: cannot mount /: Connection Refused (error 115) Has anyone been able to do this? (3 Replies)
Discussion started by: trolley
3 Replies

3. Red Hat

Not able to mount NFS share on client side

When i tried to mount the nfs i see this error message mount -t nfs 192.168.20.194:/remote/proj1 /nfsmount mount: 192.168.20.194:/remote/proj1 failed, reason given by server: Permission denied and the /etc/exports file in the host side looks like this /remote/proj1 ... (12 Replies)
Discussion started by: srinathk
12 Replies

4. UNIX and Linux Applications

Virtualbox Need to change share folder name before i can mount it

HI I would like to ask about my virtualbox 4.0.4 in my lucyd lynx box My shared forlder isn't auto mount in my linux guest OS. And everytime i manually mount using command sudo mount -t vboxsf <shared_folder_name> <Guest_location> it throw an error msg "/sbin/mount.vboxsf: mounting failed... (1 Reply)
Discussion started by: jao_madn
1 Replies

5. Web Development

NFS Share & Mount problem

Hi, I want to mount an NFS Shared folder on Windows XP to vxWorks. There doesnt seem to be a problem with the sharing. Now, when i try to mount the directory onto vxWorks (it runs on a Tumbleweed card), using a mount script (.sh), the following is the print i see on Tera Term: hostAdd... (0 Replies)
Discussion started by: chinmayzen
0 Replies

6. Solaris

mount windows share folder

all,,i need help,,i try to mount a windows 2000 share folder to my system,,i already userd smb mount,mount -F and bunch of stuff and none is working,,can anyone give me a script to this?? PS : when i use mount -F i got this message : nfs mount: insufficient privileges ,,, is it must be root ? (6 Replies)
Discussion started by: Cellscript
6 Replies

7. Solaris

how to mount Windows NFS share on solaris

Hi, How can i mount an NFS share on a solaris machine a filesystem ? I have enabled nfs on a windows server and the shares has given read/write access to it to all the users. I would like to mount it on around 10 different solaris boxes with different versions of solaris. Thanks in advance. (2 Replies)
Discussion started by: uxadmin007
2 Replies

8. UNIX for Advanced & Expert Users

can i mount nfs share on windows 2003 server

this is probably a bit dumb ...but i read somewhere that one of the nfs versions can be mounted on a windows 2003 server ..if yes ..does anyone know how this can be achieved (1 Reply)
Discussion started by: tarunicon
1 Replies

9. AIX

Unable to mount NFS share during boot

Hello Everyone, I have a pseries machine running AIX 4.3.3 that has an invalid IP in /etc/hosts. During a boot the system hangs because it's trying to mount an NFS share to this invalid IP. I've tried to boot the system from a mksysb (not sure if the device was defined as rmt0) and AIX CD... (0 Replies)
Discussion started by: jlslhills
0 Replies

10. UNIX for Dummies Questions & Answers

NFS mount home directory

Hello All, I have a question that I think I have the answer to but I'm not sure. All the information I get kind of dance around it. Well, my question is if you have NFS running, automount running, with auto_master and auto_home on a server. If a user logs in form cleint machine that has... (3 Replies)
Discussion started by: larry
3 Replies
Login or Register to Ask a Question