Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
| 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
11-13-2006, 02:24 PM
|
#1
|
|
LQ Newbie
Registered: Nov 2006
Posts: 5
Rep:
|
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
|
|
|
|
11-13-2006, 02:45 PM
|
#2
|
|
Senior Member
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893
Rep:
|
login.defs, I guess.
|
|
|
|
11-14-2006, 02:15 AM
|
#3
|
|
LQ Newbie
Registered: Nov 2006
Posts: 5
Original Poster
Rep:
|
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?
|
|
|
|
11-14-2006, 06:47 AM
|
#4
|
|
LQ Newbie
Registered: Nov 2006
Location: Norway
Distribution: Mandriva
Posts: 5
Rep:
|
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.
|
|
|
|
11-14-2006, 01:17 PM
|
#5
|
|
Senior Member
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893
Rep:
|
Isn't it easier then to just recompile these programs - or install version that does not have the limitation?
|
|
|
|
11-15-2006, 02:07 AM
|
#6
|
|
LQ Newbie
Registered: Nov 2006
Location: Norway
Distribution: Mandriva
Posts: 5
Rep:
|
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.
|
|
|
|
11-15-2006, 08:54 AM
|
#7
|
|
LQ Newbie
Registered: Nov 2006
Posts: 5
Original Poster
Rep:
|
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.
|
|
|
|
11-16-2006, 02:54 PM
|
#8
|
|
Senior Member
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:17 PM.
|
|
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
|
|