removing system name in login

removing system name in login

Post by Chad Lemme » Fri, 21 Feb 1997 04:00:00



I'm using 3.2v4.2.  How do I remove the system name that appears above
the login prompt?

 
 
 

removing system name in login

Post by Bill Walk » Sat, 22 Feb 1997 04:00:00


: I'm using 3.2v4.2.  How do I remove the system name that appears above
: the login prompt?

I suspect you might edit /etc/issue and get what you are after.

--
Bill Walker


 
 
 

removing system name in login

Post by Paul Gordon Fishe » Sat, 22 Feb 1997 04:00:00



> I'm using 3.2v4.2.  How do I remove the system name that appears above
> the login prompt?

1) Look at the login prompt in /etc/gettydefs

2) If you're login thru telnet, check /etc/inetd.conf
   add the -h option at the end of the telnetd line

That's for messages above the login prompt. For messages below,
check /etc/issue and /etc/motd

Use man.

Paul.

 
 
 

removing system name in login

Post by Chad Lemme » Sat, 22 Feb 1997 04:00:00




> > I'm using 3.2v4.2.  How do I remove the system name that appears above
> > the login prompt?

> 1) Look at the login prompt in /etc/gettydefs

> 2) If you're login thru telnet, check /etc/inetd.conf
>    add the -h option at the end of the telnetd line

> That's for messages above the login prompt. For messages below,
> check /etc/issue and /etc/motd

> Use man.

> Paul.


prompt looks like this:

lemmen

Welcome to SCO Unix 3.2

lemmen LEMMEN OIL COMPANY
login:


front of LEMMEN OIL COMPANY but that first lemmen is still there.  How
do I get ride of that?

 
 
 

removing system name in login

Post by Paul Amede » Sun, 23 Feb 1997 04:00:00



> I'm using 3.2v4.2.  How do I remove the system name that appears above
> the login prompt?

I've never tried to do this but I would start by removing /etc/systemid
just to see.

--
============================================================================
= Paul Amedee                                Phone: 504-837-9835           =
= Delta Systems, Inc.                        Fax  : 504-837-9838           =
= 3100 Ridgelake Dr. Suite 101                                             =

============================================================================

 
 
 

removing system name in login

Post by Chad Lemme » Sun, 23 Feb 1997 04:00:00




> > I'm using 3.2v4.2.  How do I remove the system name that appears above
> > the login prompt?

> I've never tried to do this but I would start by removing /etc/systemid
> just to see.

I did this and that still doesn't get rid of the system name that
appears above the login.  It still looks like this:

lemmen

login:

There must be some way of getting rid of this.

chad

 
 
 

removing system name in login

Post by Jean-Pierre Radl » Sun, 23 Feb 1997 04:00:00


Chad Lemmen's CPU sent forth this bytestream:

| > > I'm using 3.2v4.2.  How do I remove the system name that appears above
| > > the login prompt?
| >
| > I've never tried to do this but I would start by removing /etc/systemid
| > just to see.
|
| I did this and that still doesn't get rid of the system name that
| appears above the login.  It still looks like this:

/etc/systemid will get reset when you reboot.

| lemmen
|
| login:
|
| There must be some way of getting rid of this.

Insert \f before the login prompt in the sc_m entry of /etc/gettydefs.

--

 
 
 

removing system name in login

Post by Paul Amede » Sun, 23 Feb 1997 04:00:00





> > > I'm using 3.2v4.2.  How do I remove the system name that appears above
> > > the login prompt?

> > I've never tried to do this but I would start by removing /etc/systemid
> > just to see.

> I did this and that still doesn't get rid of the system name that
> appears above the login.  It still looks like this:

> lemmen

> login:

> There must be some way of getting rid of this.

> chad

Did you reboot after removing this file? It's the last thing I can think of.

--
============================================================================
= Paul Amedee                                Phone: 504-837-9835           =
= Delta Systems, Inc.                        Fax  : 504-837-9838           =
= 3100 Ridgelake Dr. Suite 101                                             =

============================================================================

 
 
 

removing system name in login

Post by Chad Lemme » Sun, 23 Feb 1997 04:00:00



> Chad Lemmen's CPU sent forth this bytestream:


> | > > I'm using 3.2v4.2.  How do I remove the system name that appears above
> | > > the login prompt?
> | >
> | > I've never tried to do this but I would start by removing /etc/systemid
> | > just to see.
> |
> | I did this and that still doesn't get rid of the system name that
> | appears above the login.  It still looks like this:

> /etc/systemid will get reset when you reboot.

> | lemmen
> |
> | login:
> |
> | There must be some way of getting rid of this.

> Insert \f before the login prompt in the sc_m entry of /etc/gettydefs.

This didn't do the trick either.  Is there something else I could try.
The system name appears there by default and there has got to be a way
to get ride of it.  Here is what my gettydef line looks like:

o # B38400  HUPCL # B38400  CS8 SANE HUPCL TAB3 ECHOE #\r\nLEMMEN OIL
COMPANY\r\n\flogin: # o

The prompt looks like this:

lemmen  (This is the system name)

LEMMEN OIL COMPANY
login:

 
 
 

removing system name in login

Post by Chad Lemme » Sun, 23 Feb 1997 04:00:00






> > > > I'm using 3.2v4.2.  How do I remove the system name that appears above
> > > > the login prompt?

> > > I've never tried to do this but I would start by removing /etc/systemid
> > > just to see.

> > I did this and that still doesn't get rid of the system name that
> > appears above the login.  It still looks like this:

> > lemmen

> > login:

> > There must be some way of getting rid of this.

> > chad

> Did you reboot after removing this file? It's the last thing I can think of.

rebooting just creates the /etc/systemid file again.
 
 
 

removing system name in login

Post by Bela Lubki » Wed, 26 Feb 1997 04:00:00







> > > > > I'm using 3.2v4.2.  How do I remove the system name that appears above
> > > > > the login prompt?

> > > > I've never tried to do this but I would start by removing /etc/systemid
> > > > just to see.

> > > I did this and that still doesn't get rid of the system name that
> > > appears above the login.  It still looks like this:

> > > lemmen

> > > login:

> > > There must be some way of getting rid of this.

> > > chad

> > Did you reboot after removing this file? It's the last thing I can think of.

> rebooting just creates the /etc/systemid file again.

Whee.

The first line with your system (node) name is hard-coded in the 3.2v4.2
getty binary.  I've successfully removed it in the past by patching the
binary.  Somewhere is a "%s\n\0" which can be defused by patching a "\0"
over the "%".  I don't have the offset any more.

Uh, let's see:

  # strings -o -2 /etc/getty | grep %.*s | grep -v '  .* .* '
    36316 %s/%s
    36540 %.9s               <--
    36552 %s                 <--
    37170 %s                 <--
    37684 %s/%s
    37764 %s/%s
    37844 %s/LTMP.%d
    38228 %s.%s
    38316 %s)
    38384 ungetty(%s)
    40192 %s/

It could only be one of the three I've tagged "<--", since the others
all introduce extra characters.  A bit more experimentation shows that
it's the one at 36540.

  # echo '\0\c' | dd bs=1 count=1 oseek=36540 of=/etc/getty

... should do it.  Protect yourself; make a copy before you patch it,
and make sure you're logged into a couple of terminals before you go
poking bytes into /etc/getty...

(Also, anyone playing with the same techniques on OSR5, be aware that
`dd` requires a new flag, "conv=notrunc", or else it will truncate the
output file at the byte you've written...)

- Show quoted text -

Quote:>Bela<

 
 
 

removing system name in login

Post by Jesse D Bark » Thu, 27 Feb 1997 04:00:00


Try editing /etc/default/issue

                        Jesse Barker

: >

: > >
: > > I'm using 3.2v4.2.  How do I remove the system name that appears above
: > > the login prompt?
: >
: > I've never tried to do this but I would start by removing /etc/systemid
: > just to see.

: I did this and that still doesn't get rid of the system name that
: appears above the login.  It still looks like this:

: lemmen

: login:

: There must be some way of getting rid of this.

: chad

 
 
 

removing system name in login

Post by Steven Glickma » Fri, 07 Mar 1997 04:00:00


RE: Removing system name in login.

In /etc there is a file called "issue".  Edit this file and change it to
whatever you like.

ALTERNATE ADDR.:



HTTP://www.orientrade.com

[La Societe Commerciale Orientale]
[Oriental Trading (Mtl) Ltd.     ]

 
 
 

removing system name in login

Post by MIKEPURT » Sun, 09 Mar 1997 04:00:00


To change the system name:

login as root and at the # prompt type    uname -S??????

where  the ?????? is the new system name.

and  then reboot the system.

hope this helps

regards mike

 
 
 

removing system name in login

Post by Jerry Heym » Mon, 10 Mar 1997 04:00:00


: To change the system name:

: login as root and at the # prompt type    uname -S??????

: where  the ?????? is the new system name.

: and  then reboot the system.

If they don't relink the kernel before rebooting, then they'll get the
old system name.  After running the uname -S ????? command, do the
following:

# cd /etc/cf.d/conf
# ./link_unix -y

This will modify the kernel so that the new name selected for the host
name will exist on all subsequent reboots.  Also remember to update
/etc/hosts and the mail configuration so that it knows the new name of
the machine.

: hope this helps

: regards mike

jerry
--
Jerry Heyman    O-          Team AMIGA



<A HREF="http://www.cs.stedwards.edu/u/heyman/"> My other self </A>