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.
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.
|
|
11-13-2006, 03: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, 03:45 PM
|
#2
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
|
login.defs, I guess.
|
|
|
11-14-2006, 03: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, 07: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 07:53 AM.
|
|
|
11-14-2006, 02:17 PM
|
#5
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
|
Isn't it easier then to just recompile these programs - or install version that does not have the limitation?
|
|
|
11-15-2006, 03: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, 09: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, 03:54 PM
|
#8
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
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.
|
|
|
All times are GMT -5. The time now is 03:59 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
|
|