This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: rsh with command hangs, rlogin works


Andrew DeFaria wrote:
> You created? By hand. Or did you use ssh-host-config. Perhaps the sshd
user you created was for privilege separation?

I used ssh-host-config. You're right about sshd too.

> If Local System account is toggle then you are using SYSTEM.

Checked, it's SYSTEM.


>Local:grep -e rsh -e rlogin /etc/inetd.conf
>shell   stream  tcp     nowait  root    /usr/sbin/in.rshd in.rshd -L
>login   stream  tcp     nowait  root    /usr/sbin/in.rlogind in.rlogind
>Local:ll /usr/sbin/in.r*
>-rwxr-x---+ 1 defaria Users  9728 Jan 13 02:19 /usr/sbin/in.rexecd.exe*
>-rwxr-x---+ 1 defaria Users 11264 Jan 13 02:19 /usr/sbin/in.rlogind.exe*
>-rwxr-x---+ 1 defaria Users 11264 Jan 13 02:19 /usr/sbin/in.rshd.exe*

$ ls -l /usr/sbin/in.r*
-rwxr-xr-x+ 1 lars Användare  9728 Jan 13 11:19 /usr/sbin/in.rexecd.exe
-rwxr-xr-x+ 1 lars Användare 11264 Jan 13 11:19 /usr/sbin/in.rlogind.exe
-rwxr-xr-x+ 1 lars Användare 11264 Jan 13 11:19 /usr/sbin/in.rshd.exe

Just minor diffs and same for all in.* programs.
I tried chmod 750 with no different result.

But I was more thinking if a file which only in.rshd.exe uses,
and potential problems with _it's_ contents or permissions.
Can't think of any such file though.

>You do realize that if you hope to have rsh be able to remotely
>execute a command you need to configure it such that you can login
>without a password (~/.rhosts or remove your password from your entry
>in /etc/passwd).

Yes, and "rsh localhost" lets me in without typing password, using
~/.rhosts .

>Wait a second. This just in. On my XP Pro desktop here at work
>I have the same situation! rsh localhost works but rsh localhost id
>doesn't! What's going on here? rsh localhost prompts me for a password.
>But rsh localhost id just hangs...

With no .rhosts, wrong permission, or wrong content it prompts me for
password (like it should).

Great that it hangs! At least it increases the chance that either of
us finds a solution. :-)

Lars



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]