My /bin/login is 0755. You might try that. Here's the problem. On each
terminal (alt-F1, alt-F2, etc), there is a mingetty running (or
something else if you aren't using redehat. You can look at the entry in
/etc/inittab). Mingetty is actually VERY simple, with only 400 or so
lines of code and most of that is terminal stuff and the like. So it says
"login: ", or "hostname login: ", and you respond with "root", and it
litterally says execl ("/bin/login", "/bin/login", "--", logname, NULL).
Now what that really does is the same thing as if you, as root, typed in
at the command line "login some_username_here", and entered the password.
Did you try to run login from the command line? Perhapse the login you
have (it tends to be a little different between distributions and shadow)
doesn't like the fact that it's setuid root?
As for telnet, when you connect to port 23 on your machine, inetd calls
/usr/sbin/in.telnetd, which, by default calls /bin/login UNLESS something
else is specified on the command line. You can change your telnet line in
inetd.conf to something like this, restart inetd and see what happens...
telnet stream tcp nowait root /usr/sbin/tcpd \
/usr/sbin/in.telnet -L something_here
That will make telnetd run something_here instead of /bin/login. You
might try a small shell script that cat's some stuff and exits. If it
works, it's a problem with your /bin/login. Try changing the modes, of if
that still doesn't work, get the latest shadow package, build it and
install it. That comes with replacements for login, su, and a whole bunch
of other stuff.
-CJO-
On Thu, 15 Jul 1999, Joseph Durbin wrote:
>Crazy!
>
>I am still having the same trouble.
>
>Thankyou to the 4 people who wrote me with ideas,
>I tried them all!!
>
>1) I cannot Login. It lets me type my username in, but after hitting
>"return"
>it clears and gives the same "username" prompt over again.
>
>2) I cannot Telnet in. I get this far:
>Trying XX.XX.XX.XX...
>Connected to somemachine.ourdomain.com.
>Escape character is '^]'.
>
>and it hangs right here, never get the "Login" prompt.
>
>3) I can Ftp Fine, and ALL Services are running fine!! Web, FTP,
>etc...
>
>4) In order to issue commands i must boot into single user mode "linux
>single" at boot prompt.
>
>-------------------------------------------------------------
>I have checked many things.
>1) /bin/login is correctly moded at 4755
>2) /etc/passwd & /etc/group are mode 755
>3) thereis no /etc/nologin file
>
>I cannot put my finger on anything i could have done... It feels like
>it just "happened"...
>
>Help!! I cannot figure it out! I really do not want to ("Cannot")
>reload the machine!!!
>
>-Joe
>
C.J. Oster (Linux Guru/Surge Addict)
------------------------------------------------------------------
| [EMAIL PROTECTED] | 1003 S. 1st St. | CCSO, WSG, UIUC |
| [EMAIL PROTECTED] | Champaign, IL 61820 | L538 DCL, Urbana |
| ---------------------------------------------------------------|
| PGP: 87D5 4216 43A1 42D6 754D 8F5E 24B3 992A B7A1 F556 |
------------------------------------------------------------------
(580)761-6393 (217)328-8934
"Linux, for people with an IQ above 98" - Bumper Sticker
"Hm, a little big for a cup holder... Why does it say '4x' on it?"