You are not logged in.
Pages: 1
So i decided to teach myself something about abs, patching, and making your own packages, etc. I was thinking of what to change just for the hell of it, and thought the login prompt when you login via ssh should change from "login as:" to "username:" .
However, i cannot, for the life of me, find the code that has "login as:" in it. I figure /bin/login is whats doing it, which is owned by the pam package. Got the source through abs, cannot find 'login as:' anywhere in it. I've also used ldd /bin/login to see what modules it uses and searched through those, nothing. I have no idea what im doing wrong.
Offline
Isn't it agetty that displays that?
Offline
from the man page
agetty opens a tty port, prompts for a login name and invokes the /bin/login command.
Also, after strings /sbin/agetty | grep "login as" still nothing.
Offline
--> strings agetty | grep "login"
login:Isn't that it?
Offline
Yes, it contains the string "login:"
However. When i ssh into my box, it prompts
"login as:"
"login as:" != "login:"
Offline
SSHD doesn't use /bin/login unless you explicitly tell it to.
Last edited by string (2008-12-27 22:27:24)
Offline
So then the question is, how could i do that, and why doesn't it be default? (they must have good reason to rewrite code thats already written).
Offline
Try this:
for file in /bin/* /sbin/* /usr/bin/*; do strings "$file" | grep "login as" && echo $file ; doneOffline
Here's an idea: fetch the SSHD source and read it. Linux fans love to brag about the open source nature of their beloved OS and tools but most don't bother actually reading the source.
Offline
Did that already. Heres the output:
[ptchinster@slash openssh]$ find . -exec strings -f {} \; | grep -i 'login as'
[ptchinster@slash openssh]$ pwd
/home/ptchinster/abs/openssh
[ptchinster@slash openssh]$Offline
Haha. This solves it:
strings putty.exe | grep 'login as'Last edited by ptchinster (2008-12-27 23:31:28)
Offline
Pages: 1