From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,ff168b14078a9197 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-02-11 13:29:26 PST Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!darwin.sura.net!haven.umd.edu!decuac!pa.dec.com!rdg.dec.com!news.crl.dec.com!random!dialup.athena.lkg.dec.com!mamros From: mamros@athena.lkg.dec.com (Shawn Mamros) Newsgroups: comp.sys.dec Subject: Re: Root login on a DECstation Message-ID: <705846@athena.lkg.dec.com> Date: 11 Feb 93 21:29:26 GMT References: <1993Feb11.004409.62555@slate.mines.colorado.edu> Sender: mamros@dialup.athena.lkg.dec.com (Shawn Mamros) Reply-To: mamros@athena.lkg.dec.com (Shawn Mamros) Distribution: usa Organization: Digital Equipment Corporation mmisra@slate.mines.colorado.edu (MISRA MANAVENDRA ) writes: |> Hi! I have a DECstation and I find that each time I want to do an |> su root, it comes back with a: |> |> getwd: Permission denied -- can't start new shell |> |> error. How can I rectify this? Thanks. One likely cause of this is that you're running su in a directory that's on an NFS filesystem exported without root equivalency (-r=0), and the directory is non-world-readable and/or non-world-executable. In this case, root doesn't have privilege to read the directory it's in, and therefore getwd(3) fails, and therefore root's shell refuses to start. Easiest workaround: cd to / (or some other world-readable and/or local directory) before running su root. Some shells deal with this situation better than others. tcsh, for example, will always chdir("/") itself if getwd() fails. -Shawn Mamros E-mail to: mamros@athena.lkg.dec.com