*BSD News Article 25302


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!uunet!newsflash.concordia.ca!nstn.ns.ca!news.ucs.mun.ca!alpha01!pdf
From: pdf@alpha01.ucs.mun.ca (Paul David Fardy (computing))
Subject: Re: Problems with SU...
Message-ID: <pdf.756660303@alpha01>
Sender: usenet@news.ucs.mun.ca (NNTP server account)
Organization: Memorial University of Newfoundland
References: <1993Dec21.130437.21898@dcc.uchile.cl> <2fae7d$huh@dockmaster.phantom.com>
Date: Thu, 23 Dec 1993 15:25:03 GMT
Lines: 45


Gabriel Ibanez C. (gibanez@dcc.uchile.cl) wrote:
> Hi there,
>    I have some problems with "su", it says:
> tcsh: getwd: can't stat .
> tcsh: Trying to start from "/"
> #

kai@phantom.com (Kai) writes:
>hmm,looks almost like you su'd to a user who hasn't read access to
>the current working directory, but a plain 'su' .hmm ?
>bye,Kai

Is the current directory on a remote file system?  Root privileges don't
generally extend over NFS.

I've noticed a problem with NFS being restricted by the permissions of
of the mount point.  The problem and fix went something like this:

	login: pdf
	Password:
	getwd: can't stat .
	Logging in with HOME="/"
	$ cd ~pdf
	$ /bin/pwd
	/nfs/hostname/users/pdf
	$ cd /
	$ su
	Password:
	# umount /nfs/hostname/users
	# ls -ld /nfs/hostname
	total 1
	drwxr-x---   2 root     system       512 Dec 16 11:31 users
	# chmod a+rx /nfs/hostname/users
	# mount /nfs/hostname/users
	# exit
	$ exit

	login: pdf
	Password:
	$ /bin/pwd
	/nfs/hostname/users/pdf
	$

The systems involved ran SUNos and MIPS/os.