Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site aphasia.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!cybvax0!frog!aphasia!gww From: gww@aphasia.UUCP (George Williams) Newsgroups: net.unix-wizards Subject: Re(2): Strange behavior of su Message-ID: <315@aphasia.UUCP> Date: Sat, 28-Sep-85 14:07:51 EDT Article-I.D.: aphasia.315 Posted: Sat Sep 28 14:07:51 1985 Date-Received: Tue, 8-Oct-85 04:26:52 EDT References: <314@aphasia.UUCP>, <323@uwvax.UUCP> <667@bu-cs.UUCP> Organization: Green Hills Software, Pasadena, CA Lines: 18 From various responces I have managed to piece together what happens. >Every now and then after I have been logged in for a while I will try to >su, have su ask the password, and then it sits for a bit and exits. It >does not generate any error messages, the exit status is 0. After this >has happened it will keep happening until I log out, I have always been >able to su immediately after logging in. Actually this isn't su it's the csh (sh does not have this problem). When csh starts up it looks at the directory tree above it (somehow) if . is protected everything works fine, if .. or ../.. (and I assume ......./..) are protected against the new user then it dies. I poked around in csh but could not find an obvious reason for this, I assume it does a pwd type thing and checking . is a special case. I have tweaked su to attempt to open ../../.. before execing the shell, and have it give a warning message if it fails.