Path: utzoo!attcan!uunet!samsung!usc!apple!afsg!ron From: ron@afsg.apple.com (Ron Flax) Newsgroups: comp.unix.aux Subject: Re: why can't I su to root? Message-ID: <448@afsg.apple.com> Date: 17 Sep 90 02:00:45 GMT References: <447@afsg.apple.com> <15354@csli.Stanford.EDU> <1990Sep15.201545.5311@servalan.uucp> Organization: Apple Federal Systems Group Lines: 20 In article <1990Sep15.201545.5311@servalan.uucp> rmtodd@servalan.uucp (Richard Todd) writes: >anderson@csli.Stanford.EDU (Steve Anderson) writes: >>The tcsh on afsg.apple.com works fine, except for one thing: when I >>login with this as my shell, it doesn't run my .login, apparently. The >>same thing happens with bash as my login shell. Only when my default >>shell is sh or csh is .login run. > > Hmm. Is your default session type the Mac 32-bit or 24-bit session? >I've noticed that for some reason when logging in to that type of session, >when your shell is tcsh, that your .login is not executed. Looks like Actually, what's happening is that /etc/Login exec's your shell with the -c argument and calls /mac/bin/mac{32,24} which means the shell in your first CommandShell window is not really a login shell. So that shell doesn't source your .login by design. -- Ron Flax ron@afsg.apple.com Apple Federal Systems Group