*BSD News Article 48624


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!pravda.aa.msen.com!spool.mu.edu!howland.reston.ans.net!nctuccca.edu.tw!news.Edu.TW!news.cc.nctu.edu.tw!news.sinica!taob
From: taob@gate.sinica.edu.tw (Brian Tao)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Why doesn't Ctrl-D log me out ?
Date: 14 Aug 1995 15:49:21 GMT
Organization: Institute of Biomedical Sciences, Academia Sinica
Lines: 24
Message-ID: <40nra1$k40@gate.sinica.edu.tw>
References: <aak2.808403276@ra.msstate.edu>
NNTP-Posting-Host: 140.109.40.248

In article <aak2.808403276@ra.msstate.edu>, 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 ?

    It's a setting in the shell you use.  For example, in tcsh, you
can set the `ignoreeof' shell variable to control this behaviour:

       ignoreeof
               If  set  to  the empty string or `0' and the input
               device is  a  terminal,  the  end-of-file  command
               (usually  generated  by the user by typing `^D' on
               an empty line) causes  the  shell  to  print  `Use
               "exit"  to  leave tcsh.' instead of exiting.  This
               prevents the shell from accidentally being killed.
               If set to a number n, the shell ignores n - 1 con-
               secutive end-of-files and exits on the nth. (+) If
               unset, `1' is used, i.e. the shell exits on a sin-
               gle `^D'.

-- 
Brian ("Though this be madness, yet there is method in't") Tao
taob@gate.sinica.edu.tw <-- work ........ play --> taob@io.org