Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site codas.UUCP
Path: utzoo!watmath!clyde!bonnie!akgua!akguc!codas!mikel
From: mikel@codas.UUCP (Mikel Manitius)
Newsgroups: net.unix-wizards
Subject: Re: Strange behavior of su
Message-ID: <118@codas.UUCP>
Date: Wed, 2-Oct-85 14:28:25 EDT
Article-I.D.: codas.118
Posted: Wed Oct  2 14:28:25 1985
Date-Received: Thu, 3-Oct-85 06:40:14 EDT
References: <314@aphasia.UUCP> <323@uwvax.UUCP> <667@bu-cs.UUCP> <753@psivax.UUCP>
Organization: AT&T Information Systems (SDSS) - Orlando
Lines: 35

> In article <667@bu-cs.UUCP> root@bu-cs.UUCP (Barry Shein) writes:
> >>  If you were becoming another
> >>normal user, this probably means the current directory was inaccesable
> >>to the new user.  In this case, su gives up quietly.  I think this is
> >>a case there things could be a bit more verbose.
> >>>(Actually it is the shell which gives up)
> >
> >You better explain which version of UNIX you believe this happens
> >(su exits silently if '.' is not accessible.)
> >
> >I just tried it under 4.2bsd (vax), SYSVR2 (3b5) and SYSVR(1?) (PC7300)
> >and all let me su to a non-priv'd user while in a directory they had
> >no access to, of course:
> >
> 	Hmm, curiouser and curiouser. I have had it happen on both
> 4.1 and 4.2 BSD. And I know it is the directory access since doing a
> cd to a different directory always fixes it. Which *shell* were you
> using, I was using 'csh'.
> -- 
> 
> 				Sarima (Stanley Friesen)
> 
> UUCP: {ttidca|ihnp4|sdcrdcf|quad1|nrcvax|bellcore|logico}!psivax!friesen
> ARPA: ttidca!psivax!friesen@rand-unix.arpa

I have had the problem happen to me on 4.1bsd, you su to a user, who does
not have access to any of the dirrectories leading to your current dirrectory,
then you simply get your old shell back and su dies (or the new shell), at
the time I was using csh(1).


Mikel Manitius                AT&T Information Systems
{ihnp4!}codas!mikel           151 Wymore Rd. Rm: 420
(305) 869-2462                Altamonte Springs, FL
AT&T-IS ETN: 755              32714