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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-14-2003, 04:31 AM
|
#1
|
Member
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992
Rep:
|
changing login words
Is there any way i can change the words
<hostname> login:
to some thing else
like
Welcome to <hostname>:
thanks
|
|
|
05-14-2003, 04:35 AM
|
#2
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
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...
|
|
|
05-14-2003, 10:52 AM
|
#3
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
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.
|
|
|
05-14-2003, 04:50 PM
|
#4
|
Member
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618
Rep:
|
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.
|
|
|
05-14-2003, 04:53 PM
|
#5
|
Member
Registered: Apr 2003
Distribution: Gentoo 1.4
Posts: 290
Rep:
|
what version of redhat? rh8 and 9 say "Welcome to <hostname>", what a coincidence, lol
|
|
|
05-15-2003, 05:48 AM
|
#6
|
Member
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992
Original Poster
Rep:
|
i use RH 8.0 and i dosn't say welcome to <hostname>
|
|
|
05-15-2003, 08:56 PM
|
#7
|
LQ Guru
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398
Rep:
|
look in /etc/issue you can change some options from there
|
|
|
05-15-2003, 09:45 PM
|
#8
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
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.
|
|
|
05-15-2003, 10:14 PM
|
#9
|
Member
Registered: Apr 2003
Distribution: Gentoo 1.4
Posts: 290
Rep:
|
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...
|
|
|
05-16-2003, 02:49 AM
|
#10
|
Member
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992
Original Poster
Rep:
|
i want to change the console parameters
|
|
|
05-16-2003, 02:45 PM
|
#11
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
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
|
|
|
05-16-2003, 04:01 PM
|
#12
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
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:
|
|
|
05-16-2003, 04:18 PM
|
#13
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
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
|
|
|
05-16-2003, 06:27 PM
|
#14
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
Thanks bulliver.
|
|
|
All times are GMT -5. The time now is 01:08 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|