home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.coherent:6695 comp.os.linux:23295
- Path: sparky!uunet!wupost!emory!gatech!usenet.ins.cwru.edu!wariat!kf8nh
- From: kf8nh@kf8nh.wariat.org (Brandon S. Allbery)
- Newsgroups: comp.os.coherent,comp.os.linux
- Subject: Re: cannot login at all!!!
- Message-ID: <eF33wB4w165w@kf8nh.wariat.org>
- Date: Fri, 08 Jan 93 19:12:25 EST
- References: <EICHIN.93Jan7225437@tweedledumb.mit.edu>
- Distribution: world
- Organization: Brandon S. Allbery's Personal System
- Lines: 36
-
- eichin@athena.mit.edu (Mark Eichin) writes:
- > In article <1993Jan8.015410.15298@wuecl.wustl.edu> ppc1@cec2.wustl.edu (Peter
- > From: ppc1@cec2.wustl.edu (Peter Pui Tak Chiu)
- > i deleted /etc/utmp in a virtual console and tried to login from another
- > VC, but linux said "/etc/utmp: no such file or directory" and i was not
- > allowed to login...
- >
- > then i created /etc/utmp with a single carriage return in it and tried
- > logging in aain. this time it said:
- > must start from the lowest "sh"... something like that...
- >
- > I just got bit by the same thing -- I figured that the LOGIN lines
- > that "w" was showing me were garbage (I still think so, but they seem
- > to be intentional garbage...) so I emptied the file, rebooted, and got
-
- The System V init uses these lines, as do System V-style getty's (gettyps?).
- System V-type shells also use this, as you saw. In short, DON'T DO THAT!
-
- The proper fix is for "w" to be recompiled for a System V-style utmp file,
- and to pay attention only to utmp lines of type USER_PROCESS.
-
- If you *must* create /etc/utmp from scratch, you should be able to do so as
- follows:
-
- create /etc/utmp empty (essential!)
- sync and wait for disk activity to cease (EXTREMELY essential)
- hit the reset button (so init/getty/login don't scribble on it)
- reboot Linux (this should cause it to be fixed)
-
- Of course, this isn't exactly the safest way to do things, so I suggest you
- avoid it instead.
-
- ++Brandon
-
- --
- He's BAAAACK! Brandon S. Allbery NOTE NEW ADDRESS!!! kf8nh@kf8nh.wariat.org
-