Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3BD8D641.3020801@cportcorp.com> Date: Thu, 25 Oct 2001 23:19:29 -0400 From: Peter Buckley User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1 X-Accept-Language: en-us MIME-Version: 1.0 To: Matthew Lee CC: cygwin AT cygwin DOT com Subject: Re: rsh on Windows XP : Please help References: <3BD8CFFF DOT 66B41644 AT smartcontainer DOT net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Matt- Sounds like something I have dealt with a great deal. In short, the LocalSystem account (SYSTEM) on NT cannot access remote drives. If you run the service as another user, with the additional rights detailed in /usr/doc/cygwin/inetutils-1.3.2.README, does it work? Have you tried starting inetd from a command prompt? Does that work? You can find lengthy discussion about this topic in the cygwin mailing list archives, best searched with google (rsh SYSTEM site:cygwin.com). Or email me offlist for a more detailed commentary. HTH, Peter Matthew Lee wrote: > Hi, > > I am having a rather difficult time getting rsh to work properly with > networked drives. I am using CYGWIN_NT-5.1 1.3.3 (on Windows XP > machine). > > Basically, I cannot get rsh commands to access networked drives. > > On the windows box, I have a samba-shared drive on a Linux box mapped as > drive K. I want to run a windows-based cross-compiler on the XP > machine, but it needs to access source files on the Linux machine. The > cross-compiler is to be invoked by a build system (Aegis) running on the > Linux machine. > > Running cygwin locally on the windows box gives me (in part) this: > > ~> mount > k: on /cygdrive/k type user (binmode, noumount) > > The inetutils README file indicates that this drive should be in the > system mount table. I tried : mount -s k: /cygdrive/k, which warned me > that it would always be masked as user mode, but "mount" now display: > > ~> mount > k: on /cygdrive/k type system (textmode) > > Locally, "ls k:" and "ls /cygdrive/k" commands work as expected. > > > Now, if I rsh from a Linux box, I get (in part): > > LinuxBox> rsh windowsBox mount > k: on /cygdrive/k type system (textmode) > > However, if I try: > > LinuxBox> rsh windowsBox "ls k: 2>&1" > or > LinuxBox> rsh windowsBox "ls /cygdrive/k 2>&1" > > I get: > ls: k:: No such file or directory > ls: /cygdrive/k: No such file or directory > > If I telnet into the windows machine, supplying both a login name and > password, I get exactly the same results as the above "mount" and "ls" > commands supplied via rsh. > > inetd is running on the XP machine as LocalSystem. > > What's going wrong? Any help appreciated! > > > Regards, > Matt > Smart Container > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/