*BSD News Article 78374


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!news.kei.com!news.mathworks.com!hunter.premier.net!news1.erols.com!howland.erols.net!quagga.ru.ac.za!uct.ac.za!not-for-mail
From: mark@foxbat.sur.uct.ac.za (Mark Cammidge)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: getcwd gives 'permission denied' error on second drive only
Date: 15 Sep 1996 18:18:55 GMT
Organization: University of Cape Town
Lines: 19
Message-ID: <51hhaf$hqa@groa.uct.ac.za>
References: <51eepa$2mo@groa.uct.ac.za> <51fmal$aeg@twwells.com>
NNTP-Posting-Host: foxbat.sur.uct.ac.za
X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]

: : partitions.
: :
: : The bsd slice on the second disk is partitioned into a /usr2
: : partition, and a swap partition.
: :
: : Both /usr and /usr2 are owner=root group=wheel, and both
: : have permissions set to rwxr-xr-x.
: 
: Unmount /usr2. Check the permissions on the underlying directory.
: I'll bet they're not 755.

Yes, this was indeed the problem.  I was unaware that mounting
changed the permissions displayed by ls, and the result was
quite confusing.
 
Thanks

Mark