LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-14-2003, 04:31 AM   #1
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
changing login words


Is there any way i can change the words

<hostname> login:

to some thing else

like

Welcome to <hostname>:


thanks
 
Old 05-14-2003, 04:35 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
I'm not sure about adding something before the login: prompt (man login or man agetty doesn't say much) but you can always edit /etc/issue and /etc/issue.net to change the message above the prompt.

cheers

Jamie...
 
Old 05-14-2003, 10:52 AM   #3
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
It depends on whether you are using agetty or getty. with getty, it's possible without recompilation. With agetty, it doesn't look to be possible, but if you figure out how, let us know.
 
Old 05-14-2003, 04:50 PM   #4
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
You can..

Search around the linux source. It's in there somewhere becuase I've done it. Sorry I can't remember the file name.
 
Old 05-14-2003, 04:53 PM   #5
martinman
Member
 
Registered: Apr 2003
Distribution: Gentoo 1.4
Posts: 290

Rep: Reputation: 30
what version of redhat? rh8 and 9 say "Welcome to <hostname>", what a coincidence, lol
 
Old 05-15-2003, 05:48 AM   #6
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Original Poster
Rep: Reputation: 30
i use RH 8.0 and i dosn't say welcome to <hostname>
 
Old 05-15-2003, 08:56 PM   #7
nakkaya
LQ Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
look in /etc/issue you can change some options from there
 
Old 05-15-2003, 09:45 PM   #8
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Anyone know a site that lists what switches are available for the /etc/issue file? I had a list of the switches available for the PS1 variable but I lost it.
 
Old 05-15-2003, 10:14 PM   #9
martinman
Member
 
Registered: Apr 2003
Distribution: Gentoo 1.4
Posts: 290

Rep: Reputation: 30
jaya, if you installed it, next time you choose to login, login to KDE instead of the default (gnome 2.2) and go to K -> Control Center From there you should be able to find your way around the tree on the left to change the logon words (you gotta use admin mode, but thats just a button ) ... however

im not sure if this works globally...
 
Old 05-16-2003, 02:49 AM   #10
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Original Poster
Rep: Reputation: 30
i want to change the console parameters
 
Old 05-16-2003, 02:45 PM   #11
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
Anyone know a site that lists what switches are available for the /etc/issue file?
from 'man agetty':
Code:
 The issue-file (/etc/issue or the file set with the -f option) may con-
       tain certain escape codes to display the system  name,  date  and  time
       etc.  All  escape codes consist of a backslash (\) immediately followed
       by one of the letters explained below.

       b      Insert the baudrate of the current line.

       d      Insert the current date.

       s      Insert the system name, the name of the operating system.

       l      Insert the name of the current tty line.

       m      Insert the architecture identifier of the machine, eg. i486

       n      Insert the nodename of the machine, also known as the  hostname.

       o      Insert the domainname of the machine.

       r      Insert the release number of the OS, eg. 1.1.9.

       t      Insert the current time.

       u      Insert the number of current users logged in.

       U      Insert  the string "1 user" or "<n> users" where <n> is the num-
              ber of current users logged in.

       v      Insert the version of the OS, eg. the build-date etc.

       Example: On my system, the following /etc/issue file:

              This is \n.\o (\s \m \r) \t

       displays as

              This is thingol.orcan.dk (Linux i386 1.1.9) 18:29:30
 
Old 05-16-2003, 04:01 PM   #12
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
From the posts, it doesn't appear as though jayakrishnan is interested in the /etc/issue file. S/He would like to have the login prompt say, "Welcome to $h" where $h is hostname. This has nothing to do with issue, it has to do with agetty's login prompt, which is not adjustable w/o recompiling agetty. Your console login shows something like:
Code:
This is thingol.orcan.dk (Linux i386 1.1.9) 18:29:30
thingol login:
does it not?
What is being requested is a way to do:
Code:
Welcome to thingol:
 
Old 05-16-2003, 04:18 PM   #13
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
From the posts, it doesn't appear as though jayakrishnan is interested in the /etc/issue file.
You are correct sir, that is why I quoted crashed_again, because I was answering his question, not jayakrishnan's
 
Old 05-16-2003, 06:27 PM   #14
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Thanks bulliver.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the login screen fazaman Mandriva 1 02-07-2005 03:48 PM
Changing my Login Name WarlockofVirgo LQ Suggestions & Feedback 8 01-01-2005 02:45 PM
Search and Replace: Asian Words to English Words ieeestd802 Linux - Software 0 10-27-2004 07:48 PM
Changing login screen priller Linux - Newbie 2 03-22-2004 04:36 AM
Need help changing graphical login to regular login jnezezon Linux - Newbie 2 11-13-2003 09:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration