*BSD News Article 90018


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!not-for-mail
From: mmcg@heraclitus.cs.monash.edu.au (Mike McGaughey)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Mount point going "west" [filesys becomes invisible]
Date: 24 Feb 1997 15:46:30 GMT
Organization: Monash University
Lines: 45
Message-ID: <5esd4m$hea$1@harbinger.cc.monash.edu.au>
References: <330FA49D.6E4C@OntheNet.com.au> <5eo8jn$pcu@flea.best.net>
NNTP-Posting-Host: heraclitus.cs.monash.edu.au
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.7
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:36040

In article <5eo8jn$pcu@flea.best.net>,
	dillon@flea.best.net (Matt Dillon) writes:
>:In article <330FA49D.6E4C@OntheNet.com.au>,
>:Tony Griffiths  <tonyg@OntheNet.com.au> wrote:
>:>
>:>The 'mount' and 'df' commands show that some filesystems are mounted and
>:>so much space is being used.  However, an 'ls' of the mount point shows
>:>an empty directory!
> 
>     I've seen simliar problems, mainly related with 'pwd' not working.
>     Make sure that the *underlying* mount point directories are chmod'd 755

The other possibility (too obvious to mention?) is that an `ls' by
root in an NFS-mounted directory without -maproot will show an
empty directory if no other user has tried to access that directory
beforehand, and will give `permission denied' if someone else *has*
accessed it (funnily enough, on each of the contained dirs unless you
have cd'd to the directory before trying it):

mj.root/22: df
[...]
heraclitus:/U/sd0s1e/home/mmcg/Adacel    903405   101972   729161    12%    Adacel
heraclitus:/U/sd0s1e/home/mmcg/Mud       903405   101972   729161    12%    Mud
mj.root/23: ls H/Adacel
ls: Adacel: Permission denied
ls: Data: Permission denied
ls: Dev: Permission denied
ls: Gen: Permission denied
ls: README: Permission denied
ls: Src: Permission denied
mj.root/24: ls H/Mud
mj.root/25: ls H/Mud/
mj.root/26: cd H/Mud/
mj.root/27: ls
ls: .: Permission denied
mj.root/28: 

H/Mud is non-empty for a non-root user.  NFS/cache interaction?

Cheers,

    Mike.

ps: in an amusing twist, on my 2.2-BETA machine, `df -t nfs' lists
the mounted MSDOS partitions :)