home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!das-news.harvard.edu!spdcc!ora.com!minya!jc
- From: jc@minya.UUCP (John Chambers)
- Newsgroups: comp.unix.sys5.r4
- Subject: Suppressing login junk.
- Keywords: login hushlogin
- Message-ID: <1393@minya.UUCP>
- Date: 16 Nov 92 15:29:40 GMT
- Article-I.D.: minya.1393
- Lines: 39
-
- One of the common gotchas when trying to write comm software is all
- the extraneous junk that things like login daemons like to dump down
- the line. On this Sys/VR4 system (ESIX, if it matters), I've been
- having problems with this, and I thought maybe someone here would know
- some answers.
-
- We all know about /etc/motd and the grief it can cause for such things
- as uucico, of course. Well, /etc/motd here is zero length, and still,
- when my program tries logging in (using either a serial port or a
- telnet connection), it gets a screen full of "Copyright (C) ..."
- notices. In digging around, I discovered that the culprit is
- /bin/login, which has the copyright notices hard coded. TFM doesn't
- give a clue as to how to suppress them. Creating a .hushlogin file has
- no effect whatsoever, and I can't guess what might.
-
- Even more fun, hard-coded into /bin/login is the message "Last
- login:", which does a good job of spoofing a login prompt, and
- convincing a lot of software that the login failed.
-
- It sure would be nice if there were a (documented? What a dreamer! ;-)
- way of suppressing all this junk. I'm tempted to go into the binary
- and stuff a null byte in the first char of each message, but I'd
- prefer something not so drastic. Some customers might not like it if
- my install script did that, you know.
-
- Any ideas how to tell login to forget the junk, don't do me any
- favors, just do the login and shut up about it?
-
- It's amusing to note that on bsd-style systems, such messages all seem
- to be in config files like /etc/remote, so it's possible to replace
- them. Junk like this can be a strong (albeit trivial) argument for or
- against a system, if you're trying to build user-friendly application
- packages.
-
- --
- All opinions Copyright (c) 1992 by John Chambers. Inquire for licensing at:
- 1-617-647-1813 ...!{bu.edu,harvard.edu,eddie.mit.edu,ruby.ora.com}!minya!jc
- --
- Pensu tutmonde; agu loke.
-