delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/24/22:41:00

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Thu, 24 Jul 2003 22:40:44 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: xiaoqin_qiu AT agilent DOT com
cc: cygwin AT cygwin DOT com
Subject: RE: Inetd question
In-Reply-To: <63D8F97C6315D411B078009027612DD30C27DB3F@axcs11.cos.agilent.com>
Message-ID: <Pine.GSO.4.44.0307242227000.26427-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Thu, 24 Jul 2003 xiaoqin_qiu AT agilent DOT com wrote:

> Hi,
>
> Telnet is working now, rsh is working half-way. Here is what I did:
>
> 1) I uninstalled everything.
> 2) I reinstalled cygwin with default packages.
> 3) Then I installed inetd package, ran iu-config, mkpasswd,... However,
>    it still didn't work.
> 4) Then I upgraded login package to the latest 1.9.6 from 1.9.5.
> 5) Then reinstalled cygwin package again because before the
>    reinstallation of cygwin package, login.exe got "The procedure entry
>    point _getreent could not be located in the dynamic link library
>    cygwin1.dll." error.
> 5) Changed my UID in /etc/passwd to one less than 65536, otherwise, I
>    got couldn't switch to my account error in telnet login session.
> 6) Telnet worked.

FYI, login has nothing to do with this (or, at least, not directly).  You
must've hit a bug that was fixed in Cygwin 1.5.0, and installing that made
telnet work.  The only difference between login 1.9-6 and 1.9-5, IIRC, is
that 1.9-6 is compiled for Cygwin 1.5.0, hence the need to update Cygwin.

The second step 5) above is weird, though (not just because there are two
5's), since Cygwin 1.5.0 is supposed to have 32-bit UIDs...

> 7) Rsh complianed about no remote directory. Then I changed my home
>    directory from a network mapped drive to local drive in /etc/passwd.

This would happen, since you use passwordless authentication, and network
shares usually aren't available in that mode.

> 8) Rsh still complained Permission denied. Then I setup /etc/hosts.equiv
>    and rsh worked. But .rhosts is still not working.
>  My .rhosts file in on a FAT32 file system. In the bash window, I ran ls
> -l .rhosts, it showed 644. However, when I ran rsh, Windows event log
> showed bad .rhosts owner. This file is owned by my account. Inetd is
> starting with local admin account. And I tried to chown SYSTEM .rhosts.
> It didn't work. I have CYGWIN=ntsec. Maybe it is related to FAT32?

Yes.  FAT filesystems don't store permissions at all.  Cygwin has an
"ntea" mode that should also store ownership (if that patch was ever
applied -- I'm too lazy to go look right now), but it won't work for
FAT32.  Sorry.  Either use an NTFS filesystem, or use FAT and add "ntea"
to your CYGWIN variable.
	Igor

> Thanks,
> Xiaoqin Qiu
>
>
> -----Original Message-----
> From: QIU,XIAOQIN (A-Sonoma,ex1)
> Sent: Thursday, July 24, 2003 2:46 PM
> To: 'cygwin AT cygwin DOT com'
> Subject: RE: Inetd question
>
>
> Todd is right. I used this syntax and I could get my account passwd
> entry quickly. However, when I tried to do the same thing for mkgroup -d
> -u <uname> <domain name>, I got error "Cannot get PDC, code = 2453"
> after it printed SYSTEM group entry.
>
>  And I am quite concern about why when I started inetd using local admin
> user, the inetd process running using UID 400 and I got connection
> refused error.
>
> Any idea?
>
> Xiaoqin Qiu
> Technical Computing Group
> IT Infrastructure Services Organization
> Agilent Technologies, Inc.
> (818)879-6220
> xiaoqin_qiu AT agilent DOT com
>
>
> -----Original Message-----
> From: Bowden, Todd [mailto:todd.bowden at atosorigin dot com]
> Sent: Thursday, July 24, 2003 1:59 PM
> To: QIU,XIAOQIN (A-Sonoma,ex1); 'cygwin AT cygwin DOT com'
> Subject: RE: Inetd question
>
> Acutally the command would be the following:
>
> mkpasswd -d -u <username> <DOMAINNAME> >> /etc/passwd
>
> This would not get everyone in your domain.
>
> Todd C. Bowden
> HP Certified
> AtosOrigin
> 5000 S. Bowen
> Arlington, TX 76017
> Office: 817-264-8211
> E-mail: Todd DOT Bowden AT atosorigin DOT com
>
>
> -----Original Message-----
> From: xiaoqin_qiu AT agilent DOT com [ mailto:xiaoqin_qiu AT agilent DOT com]
> Sent: Thursday, July 24, 2003 3:50 PM
> To: cygwin AT cygwin DOT com
> Subject: RE: Inetd question
>
>
> I tried that. But it still took long time and had a lot of other
> people's entries showing up. Thanks,
>
> Xiaoqin Qiu
> Technical Computing Group
> IT Infrastructure Services Organization
> Agilent Technologies, Inc.
> (818)879-6220
> xiaoqin_qiu AT agilent DOT com
>
>
> -----Original Message-----
> From: Rob [ mailto:rob2 AT siklos DOT ca]
> Sent: Thursday, July 24, 2003 1:10 PM
> To: xiaoqin_qiu AT agilent DOT com; cygwin AT cygwin DOT com
> Subject: Re: Inetd question
>
>
> > 2)  I didn't run mkpasswd -d because the domain is too big that it is
> > going to take forever.
>
> you could run: mkpasswd -d -u myusername >> /etc/passwd

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019