From owner-freebsd-bugs Wed Apr 22 05:00:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA26835 for freebsd-bugs-outgoing; Wed, 22 Apr 1998 05:00:07 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA26813; Wed, 22 Apr 1998 05:00:04 -0700 (PDT) (envelope-from gnats) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA25528; Wed, 22 Apr 1998 04:52:47 -0700 (PDT) (envelope-from nobody) Message-Id: <199804221152.EAA25528@hub.freebsd.org> Date: Wed, 22 Apr 1998 04:52:47 -0700 (PDT) From: cdlevin@dialisdn.com To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: bin/6383: csh - when ctrl-d is pressed, file is chmodded and chownd for 0 access Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 6383 >Category: bin >Synopsis: csh - when ctrl-d is pressed, file is chmodded and chownd for 0 access >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 22 05:00:01 PDT 1998 >Last-Modified: >Originator: Curtis D. Levin >Organization: >Release: 2.2.6 >Environment: generic kernel, happened during post install downloading. 486dx2 cyrix >Description: When ctrl-d is pressed while root, root is logged out of the system, and csh is chmodded 600, chowned root.root . At least, that's the way the file was found when booting up with the fixit floppy. No logins were processed after that, since csh was the default shell. I don't know if anyone else might be able to dupe this. >How-To-Repeat: Run csh as root, and hit ctrl-d. It will log you out of the system, and might prevent you from logging back in. Do not kill -9 csh, or all shells will log you out, and you will be locked out if it is the default shell. >Fix: Check perms on the file in /bin, if you're lucky enough to have another shell running. That might fix the problem. Do not reboot. You will wish you hadn't. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message