Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: mamros@athena.lkg.dec.com (Shawn Mamros)
Subject: Re: Root login on a DECstation
Date: 11 Feb 93 21:29:26 GMT	[thread overview]
Message-ID: <705846@athena.lkg.dec.com> (raw)
In-Reply-To: 1993Feb11.004409.62555@slate.mines.colorado.edu


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


      parent reply	other threads:[~1993-02-11 21:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-02-11  0:44 Root login on a DECstation MISRA MANAVENDRA 
1993-02-11 20:01 ` Mike O'Connor
1993-02-12  4:12   ` Bill Rye
1993-02-11 21:29 ` Shawn Mamros [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox