delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
From: | "Dave Korn" <dk AT artimi DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | RE: RSH1001 rsh command error |
Date: | Wed, 21 Jan 2004 12:51:04 -0000 |
MIME-Version: | 1.0 |
In-Reply-To: | <5.1.1.1.2.20040121130905.022a8d68@mail.madrid.eur.slb.com> |
Message-ID: | <NUTMEGxVDaSU7H3QtiZ00000173@NUTMEG.CAM.ARTIMI.COM> |
X-OriginalArrivalTime: | 21 Jan 2004 12:51:04.0492 (UTC) FILETIME=[3AFE3EC0:01C3E01D] |
> -----Original Message----- > From: cygwin-owner On Behalf Of Alberto Serrano de la Casa > When I try the command : > > rsh <hostname> ls > > I get next error: > > RSH1001: The Local user name is undefined; it is not in the > registry and it is not defined as the NETUSER environment variable. > > However, If I execute > > rsh <hostname> -l <myusername> ls > > It works! > > I don't undesrtand at all , because the values of USER and > USERNAME values are the same as <myusername>. > > Any help, please? 1) This isn't a cygwin problem. 2) The error message makes it perfectly clear that RSH expects an environment variable called NETUSER, not USER or USERNAME. 3) It's still not a cygwin problem. 4) Although when you're using rsh the username on the remote system is usually the same as your local username, sometimes you'll want to act as a different user on the remote system. That's why rsh uses a different variable rather than USER or USERNAME. 5) It's still not a cygwin problem. 6) Did you read the man page for rsh "man rsh", the info page "info rsh", or the usage info "rsh --help" before you posted this? 7) It's still *soooooo* not a cygwin problem. The cygwin version of rsh doesn't even contain the text for that error message you just described. Are you using MKS or SFU rsh, perhaps? DaveK -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |