LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-13-2006, 02:24 PM   #1
cnewtonne
LQ Newbie
 
Registered: Nov 2006
Posts: 5

Rep: Reputation: 0
How do you change login/password prompt?


I have a RHL_1 box that prompts you like this when you telnet to it ...

login: oracle
password for Oracle:****

I also have another RHL_2 box that does it a little bit different ...

login: oracle
password:****

How do you go about changing rhl_1 to match rhl_2 i.e. the password prompt?
In otherworlds, I'm looking for the equivalent of /etc/security/login.cfg file on AIX
 
Old 11-13-2006, 02:45 PM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
login.defs, I guess.
 
Old 11-14-2006, 02:15 AM   #3
cnewtonne
LQ Newbie
 
Registered: Nov 2006
Posts: 5

Original Poster
Rep: Reputation: 0
nice try. Close enough but I could not find away or setting in the file to control the login prompt. I reviewed all settings and none seems to apply (linuxmanpages.com/man5/login.defs.5.php). I can not believe this is not doeble on linux. There is got to be away.

Any other ideas or suggestions?
 
Old 11-14-2006, 06:47 AM   #4
bokopperud
LQ Newbie
 
Registered: Nov 2006
Location: Norway
Distribution: Mandriva
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by cnewtonne
nice try. Close enough but I could not find away or setting in the file to control the login prompt. I reviewed all settings and none seems to apply (linuxmanpages.com/man5/login.defs.5.php). I can not believe this is not doeble on linux. There is got to be away.

Any other ideas or suggestions?
AFAIK, there are two programs that handles a login -- '*tty' (e.g. smalltty or whatever) started by init; and 'login' execed by 'tty' (both probably in /sbin/ ) -- which then execs the users specified shell. exec changes one command into another, thus maintaining the the same PID... while forks makes a copy with a new PID (which can then be changed by exec).

You could look at the man-pages for them for options or config-files to specify, but I fear the prompts are hard-wired into these two commands -- but you may be able to change them by spcifying another local and editing the files that provides translations... (will probably screw-up other commands then)

-Koppe

Last edited by bokopperud; 11-14-2006 at 06:53 AM.
 
Old 11-14-2006, 01:17 PM   #5
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Isn't it easier then to just recompile these programs - or install version that does not have the limitation?
 
Old 11-15-2006, 02:07 AM   #6
bokopperud
LQ Newbie
 
Registered: Nov 2006
Location: Norway
Distribution: Mandriva
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by raskin
Isn't it easier then to just recompile these programs - or install version that does not have the limitation?
Uhhh... probably.
 
Old 11-15-2006, 08:54 AM   #7
cnewtonne
LQ Newbie
 
Registered: Nov 2006
Posts: 5

Original Poster
Rep: Reputation: 0
well...
It now may sound easier to do it that way. Initially, I thought it is as easy as I'm used to doing it on AIX. Simply, changing the login.cfg file, pretty straight forward. Did not think it is so impossible on linux. The other thing too, I have RHL boxes returning different prompts. I thought at least we can find out where is it coming from.

I appreciate your kind attention, however.
 
Old 11-16-2006, 02:54 PM   #8
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
well, you have some chance of stracing login (as root)

strace -f -o /tmp/login.log /bin/login

You will at least know what it reads for configuration (post output and login.log if you have troubles). Seems that noone has bug-to-bug compatible login. But with this data, it may become well obvious, what file differs on two boxes.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to: Change Login Prompt wildem Linux - General 1 05-24-2006 07:02 PM
add user prompt for password on login redir Linux - Newbie 2 02-28-2005 11:01 AM
no password prompt after root login taboo Linux - General 1 12-22-2003 01:01 PM
Unable to login (no password prompt) T4urus Linux - General 1 12-21-2003 01:47 PM
Login password prompt stops working? rickbb Linux - General 4 09-27-2000 09:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:12 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