*BSD News Article 48764


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.sprintlink.net!howland.reston.ans.net!news.moneng.mei.com!bloom-beacon.mit.edu!eru.mt.luth.se!omega.ludd.luth.se!zed.ludd.luth.se!kavli
From: kavli@ludd.luth.se (Ronny H. Kavli)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Why doesn't Ctrl-D log me out ?
Date: 18 Aug 1995 11:57:25 GMT
Organization: Lulea University Computer Society - Ludd
Lines: 22
Message-ID: <411v75$f9t@omega.ludd.luth.se>
References: <aak2.808403276@Ra.MsState.Edu>
NNTP-Posting-Host: zed.ludd.luth.se
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: TIN [version 1.2 PL2]

Atif Ahmad Khan (aak2@Ra.MsState.Edu) wrote:

: As you can tell, I am FreeBSD newbie with alot of questions.  I was 
: cruising along fine until I tried to logout a few seconds ago and noticed
: again that I can't use Ctrl-D to logout.  Is that a security feature ?

You have to enable this feature:
In your .cshrc
if ( $?prompt ) then
  set ignoreeof=1
endif

If you set ignoreeof to 2 you will have to press ^D two times...

--
Regards,
-------------------------------------------------------------------------------
Ronny H. Kavli                      This message was composed by 10,000 monkeys
kavli@ludd.luth.se                  keying on 10,000 computers.  It was then
Lulea Academic Computer Soc.(Ludd)  merged using COBOL.  This was of course
Lulea University, Sweden            all done under a government contract.