Linux - SecurityThis 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.
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.
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
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.