Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
Reflects user activity within the last 5 minutes
Moderator(s): Prowler, jcokos
Member Message

formerskeptic
Joined: Oct 05, 2001
# Posts: 301

View the profile for formerskeptic Send formerskeptic a private message

Posted: 2008-Sep-29 15:23
Edit Message Delete Message Reply to this message

Ok, I'd like to customize my login prompt which looks something like this:

Code: [copy]





Been to several (linux) sites that talk about editing the /etc/issue file. Problem is the file's content is different to the above prompt so some how its been overwritten somewhere else.

Its been gnawing into my brain for the last couple months and I can't seem to crack it.

Any help would be appreciated.

Thanks in advance :)



Prowler
Staff
Joined: Aug 14, 2000
# Posts: 1795

View the profile for Prowler Send Prowler a private message

Posted: 2008-Sep-30 07:19
Edit Message Delete Message Reply to this message

You mean something like this ?



Code: [copy]





You can open this file in any text editor and modify as above:
.bash_profile




formerskeptic
Joined: Oct 05, 2001
# Posts: 301

View the profile for formerskeptic Send formerskeptic a private message

Posted: 2008-Sep-30 08:56
Edit Message Delete Message Reply to this message

Not quite. Editing the bash file would change my command prompt which I have no problem with. I actually want to change the look of the login prompt BEFORE you login.

Think it must be some kernel script but I have no idea where it is. Some sites mention - is it mgetty or mingetty? Though they don't give any clear examples on how to use it so I have no idea how that works. sad



Prowler
Staff
Joined: Aug 14, 2000
# Posts: 1795

View the profile for Prowler Send Prowler a private message

Posted: 2008-Oct-01 06:00
Edit Message Delete Message Reply to this message

It is not a kernel script. You want to change the pre-login prompt. I am on Fedora Core 3 and this uses a string of files to eventually deliver the login. You start with /etc/profile for a global setting. In a startup script it calls the mingetty which spawns the login process.

You can control the behavior of this through /etc/issue as you mentioned. Be aware of the fact that there is an hierarchy of files here. Each command downstream takes precedence over the previous one. This is the reason why you may not see the actual prelogin prompt in one file.

If you really want to tweak this to the maximum you might have to compile your own mingetty.




formerskeptic
Joined: Oct 05, 2001
# Posts: 301

View the profile for formerskeptic Send formerskeptic a private message

Posted: 2008-Oct-02 09:30
Edit Message Delete Message Reply to this message

Thanks for the feedback. Never compiled my own mingetty but let me fish around the web for tutorials.

Thanks again.


You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. This is a private forum, for which you do not have permissions.

If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

If you cannot find this message, click here to Re-Send it.

If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions