Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.dacom.co.kr!arclight.uoregon.edu!usenet.eel.ufl.edu!psgrain!uct.ac.za!not-for-mail From: mark@foxbat.sur.uct.ac.za (Mark Cammidge) Newsgroups: comp.unix.bsd.freebsd.misc Subject: getcwd gives 'permission denied' error on second drive only Date: 14 Sep 1996 14:17:14 GMT Organization: University of Cape Town Lines: 38 Message-ID: <51eepa$2mo@groa.uct.ac.za> NNTP-Posting-Host: foxbat.sur.uct.ac.za X-Newsreader: TIN [UNIX 1.3 950824BETA PL0] I'm using: FreeBSD 2.1.0 I have 2 ide drives, each with 2 slices, one dos slice and one bsd slice. The bsd slices are second on both disks. The BSD slice on the first disk is partitioned into root, /usr and swap 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. Now for the problem: When I use getcwd, or a program which uses this function (such as make or gmake) in the /usr2 directory, or any subdirectory of /usr2, I get 'permission denied'. Doing the same thing under /usr gives absolutely no problem. The problem only occurs for users who are not members of group 'wheel'. Both /usr and /usr2 are mounted rw on bootup. I can access the files, write to the directories, read from the directories and execute files under the directories under /usr2, but getcwd fails unless the user doing the accessing is a member of group 'wheel'. Can anybody give me a clue as to why this is happening and how to fix it? Any hints would be appreciated. Thanks Mark