public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: inetutils-1.5-2 test release
@ 2008-03-18 16:33 Charles Wilson
  2008-03-18 16:56 ` Corinna Vinschen
  2008-03-18 17:59 ` Dr. Volker Zell
  0 siblings, 2 replies; 7+ messages in thread
From: Charles Wilson @ 2008-03-18 16:33 UTC (permalink / raw)
  To: cygwin

> The test release of inetutils installs fine with setup.
> I tested it with my original xinetd setup (replacing the in.* daemons with the new ones).
> 
> Authentication via ftpd does not seem to work in the new release:
> ...
> 530 Login incorrect.

This is odd. ftpd works for me
  1) on XP SP2, where inetd is installed as a service on its own,
  running under the local system account
  2) on XP SP2, where inetd is installed as a service using cygrunsrv,
  running under the local system account
  3) on XP SP2, where inetd is invoked via sysvinit's init process
  (/etc/rc.d/inetd), and were init is running under the local system
  account

However, ftpd does not work if inetd is running under
sshd_server/cyg_server/other_privileged_user -- so I assume it will not
yet work under vista.  But that issue is not a regression, AFAICT. What
are the details of your installation?  I don't need full cygcheck, just
OS ver, user that inetd is running as, whether inetd is installed as a
service on its own, under cygrunsrv, or via sysvinit's init service (and
the user under which init is running), and an `ls -l' listing of /etc.

> Remote commands via the new rsh do not seem to work:
> >rsh vzell@xp.de.oracle.com ls
> /bin/rsh: must be setuid root.

Hm. again, this works for me -- unless inetd is running under a
"privileged user". This is because rshd contains code to check the UID
(against '18' == LocalSystem; it doesn't know how to deal with other
privileged UIDs. But again -- the old rshd had the same limitation in
the code, so I am a bit confused as to how it worked for you, before.
Unless xinetd was running under LocalSystem, but inetd is not?

> Last question. What is .talkrc for ? I get the following in /var/log/messages when running talk. The man page says nothing.
> Mar 18 13:30:37 localhost talkd: PID 2132: can't open config file /home/vzell/.talkrc: No such file or directory

You're right, this is not documented at all.

2001-10-25  Sergey Poznyakoff

        Talkd essencially rewritten. New feature: system-wide and
        user-specific access-control lists allow for controlling
        who and from where is able to request talks.

Somebody also mentioned that error message (note the date):
http://lists.gnu.org/archive/html/bug-inetutils/2002-09/msg00037.html
but it was never corrected.

Anyway, it seems that .talkrc is intended for per-user access control,
like the `talkd --acl FILE' option is for site-wide access control. 
  -a, --acl FILE         read site-wide ACLs from FILE
The format of the site-wide acl file and the per-user acl file is the
same -- because it is parsed by the same code. However, the format isn't
documented at all, either.

Perusing the code, it looks like the format is:

allow|deny <RE> <INET> [<INET> [<INET> ...]

where one of allow/deny is required
<RE> is a regular expression (regcomp() style) that is applied to the
caller's username. Whether "Extended" RE patterns are allowed depends on
the system implementation of regcomp.
<INET> is a network address. It appears that any of these formats work:
  192.168.1.0/255.255.255.0 
  192.168.1.0/24
  192.168.1.2
  any
but no dns lookups are possible. Both <RE> and (one of the) <INET> have
to match for the specified rule (allow or deny) to apply. The default
behavior is:

allow * any

I'll look into silencing that "error" message.

BTW, I hadn't even gotten around to announcing this as an official test
release yet. You're really on the ball...

--
Chuck

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: inetutils-1.5-2 test release
  2008-03-18 16:33 inetutils-1.5-2 test release Charles Wilson
@ 2008-03-18 16:56 ` Corinna Vinschen
  2008-03-18 18:48   ` Charles Wilson
  2008-03-18 17:59 ` Dr. Volker Zell
  1 sibling, 1 reply; 7+ messages in thread
From: Corinna Vinschen @ 2008-03-18 16:56 UTC (permalink / raw)
  To: cygwin

On Mar 18 12:32, Charles Wilson wrote:
> > The test release of inetutils installs fine with setup.
> > I tested it with my original xinetd setup (replacing the in.* daemons with the new ones).
> > 
> > Authentication via ftpd does not seem to work in the new release:
> > ...
> > 530 Login incorrect.
> 
> This is odd. ftpd works for me
>   1) on XP SP2, where inetd is installed as a service on its own,
>   running under the local system account
>   2) on XP SP2, where inetd is installed as a service using cygrunsrv,
>   running under the local system account
>   3) on XP SP2, where inetd is invoked via sysvinit's init process
>   (/etc/rc.d/inetd), and were init is running under the local system
>   account
> 
> However, ftpd does not work if inetd is running under
> sshd_server/cyg_server/other_privileged_user -- so I assume it will not
> yet work under vista.  But that issue is not a regression, AFAICT. What
> are the details of your installation?

That is a regression, afaics.  The privileged account needs the specific
user privileges to change the user context, but if it has these
privileges, it should behave not different than when running under the
SYSTEM account in earlier versions of Windows.  The old ftpd doesn't test
the uid for being any fixed value.  Same for inetd.

> Hm. again, this works for me -- unless inetd is running under a
> "privileged user". This is because rshd contains code to check the UID
> (against '18' == LocalSystem; it doesn't know how to deal with other
> privileged UIDs. But again -- the old rshd had the same limitation in
> the code, 

Uh, no.  the old rshd has this in the code:

  #ifdef __CYGWIN__
	  uid_t ROOT_UID = getuid ();
  #else
	  ROOT_UID	(0)
  #endif


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: inetutils-1.5-2 test release
  2008-03-18 16:33 inetutils-1.5-2 test release Charles Wilson
  2008-03-18 16:56 ` Corinna Vinschen
@ 2008-03-18 17:59 ` Dr. Volker Zell
  2008-04-17 21:35   ` Charles Wilson
  1 sibling, 1 reply; 7+ messages in thread
From: Dr. Volker Zell @ 2008-03-18 17:59 UTC (permalink / raw)
  To: cygwin

>>>>> Charles Wilson writes:

    >> The test release of inetutils installs fine with setup.
    >> I tested it with my original xinetd setup (replacing the in.* daemons with the new ones).
    >> 
    >> Authentication via ftpd does not seem to work in the new release:
    >> ...
    >> 530 Login incorrect.

    > This is odd. ftpd works for me
    >   1) on XP SP2, where inetd is installed as a service on its own,
    >   running under the local system account
    >   2) on XP SP2, where inetd is installed as a service using cygrunsrv,
    >   running under the local system account
    >   3) on XP SP2, where inetd is invoked via sysvinit's init process
    >   (/etc/rc.d/inetd), and were init is running under the local system
    >   account

    > However, ftpd does not work if inetd is running under
    > sshd_server/cyg_server/other_privileged_user -- so I assume it will not
    > yet work under vista.  But that issue is not a regression, AFAICT. What
    > are the details of your installation?  I don't need full cygcheck, just
    > OS ver, user that inetd is running as, whether inetd is installed as a
    > service on its own, under cygrunsrv, or via sysvinit's init service (and
    > the user under which init is running), and an `ls -l' listing of /etc.


OS: XP SP2

I was running xinetd with my previous tests (but checked now inetd and it
is the same) with your option 3) under Local System account.


06:41 PM [632]> ls -l
total 619
-rw-r--r--   1 vzell  users    4279 Nov 13 01:00 DIR_COLORS
-rw-r--r--   1 vzell  admin    5689 Mar 18 18:30 Descript.ion
-rw-r--r--   1 vzell  admin     588 Feb 20  2006 GeoIP.conf
-rw-r--r--   1 vzell  users   87738 Aug 23  2007 Muttrc
lrwxrwxrwx   1 vzell  admin      17 May 21  2007 TIMEZONE -> /etc/default/init
drwxr-xr-x+  2 vzell  admin       0 Jul 24  2007 WindowMaker/
drwxr-xr-x+ 14 vzell  admin       0 Feb 12 15:41 X11/
-rw-r--r--   1 vzell  admin    2557 Aug 22  2003 a2ps-site.cfg
-rw-r--r--   1 vzell  admin   15071 Aug 22  2003 a2ps.cfg
-rw-r--r--   1 vzell  admin      18 Jan  3  2003 aliases
drwxr-xr-x+  2 vzell  admin       0 Feb 20 14:36 alternatives/
drwxr-xr-x+  2 vzell  admin       0 Jul 24  2007 apache/
drwxr-xr-x+  5 vzell  admin       0 Feb 17 18:10 apache2/
drwxr-xr-x+  7 vzell  users       0 Feb 12 14:58 asciidoc/
-rw-r--r--   1 vzell  admin     144 Jan  2  2003 at.deny
-rw-r--r--   1 vzell  admin     301 Feb  2  2006 bash.bashrc
-rw-r--r--   1 vzell  admin  215739 Oct 30  2006 bash_completion
drwxr-xr-x+  2 vzell  admin       0 Nov 13 00:52 bash_completion.d/
drwxr-xr-x+  2 vzell  admin       0 Jul 24  2007 bonobo-activation/
drwxr-xr-x+  2 vzell  users       0 Nov 13 01:00 boxes/
-rw-r--r--   1 vzell  users      32 Nov 13 01:00 brlapi.key
drwxr-xr-x+  2 vzell  users       0 Nov 13 00:25 brltty/
-rw-r--r--   1 vzell  users   15747 Nov 13 01:00 brltty.conf
-rw-r--r--   1 vzell  admin    7658 Oct 24  2004 clamd.conf
-rw-r--r--   1 vzell  admin     844 Feb 22 13:03 colordiffrc
drwxr-xr-x+  2 vzell  admin       0 Jul 24  2007 cron.d/
-rw-r--r--   1 vzell  admin    1714 Jun 10  2007 csh.cshrc
-rw-r--r--   1 vzell  admin     428 Jun 10  2007 csh.login
-rw-r--r--   1 vzell  admin    1471 Dec  9  2006 cygport.conf
-rw-r--r--   1 vzell  admin    5138 Jan  5 19:48 cygserver.conf
drwxr-xr-x+  2 vzell  admin       0 Jul 24  2007 default/
drwxr-xr-x+  4 vzell  admin       0 Nov 13 00:52 defaults/
drwxr-xr-x+  3 vzell  admin       0 Jul 24  2007 dpkg/
drwxr-xr-x+  2 vzell  users       0 Nov 13 01:00 email/
-rw-r--r--   1 vzell  admin    4868 Dec 16 13:03 enscript.cfg
-rw-r--r--   1 vzell  admin     153 Aug 22  2005 esd.conf
-rw-r--r--   1 system root    22992 Jan 13  2007 exim.conf
drwxr-xr-x+  4 vzell  admin       0 Jul 24  2007 fonts/
-rw-r--r--   1 vzell  admin    1497 Sep 17  2004 freshclam.conf
-rw-r--r--   1 vzell  admin      14 Mar  5 02:54 ftpusers
-rw-r--r--   1 vzell  admin      40 Mar  5 02:54 ftpwelcome
drwxr-xr-x+  6 vzell  admin       0 Jul 24  2007 gconf/
drwxr-xr-x+  3 vzell  admin       0 Jul 24  2007 ggi/
drwxr-xr-x+  3 vzell  admin       0 Jul 24  2007 gnome-vfs-2.0/
-rw-r--r--   1 vzell  admin   10793 Aug  2  2005 gnome-vfs-mime-magic
-rw-r--r--   1 vzell  admin     481 Feb 27 13:34 group
drwxr-xr-x+  2 vzell  admin       0 Jul 24  2007 gtk/
drwxr-xr-x+  2 vzell  admin       0 Jul 24  2007 gtk-2.0/
lrwxrwxrwx   1 vzell  admin      37 Aug  1  2005 hosts -> C:\WINDOWS\system32\drivers\etc\hosts*
-rw-r--r--   1 vzell  admin     200 Dec 10  2002 hosts.allow
-rw-r--r--   1 vzell  admin     407 Dec 10  2002 hosts.deny
-rw-r--r--   1 vzell  admin      64 Feb 21 13:57 hosts.equiv
drwxr-xr-x+  2 vzell  admin       0 Jul 24  2007 imlib/
-rw-r--r--   1 vzell  admin    2668 Mar 18 18:00 inetd.conf
-rw-r--r--   1 vzell  admin    2061 Dec  4  2003 inetd.conf.ok
drwxr-xr-x+  2 vzell  users       0 Mar 18 11:39 inetd.d/
-rw-r--r--   1 vzell  admin    1678 Feb 20 12:48 inittab
-rw-r--r--+  1 vzell  admin      44 Feb 27 14:03 ioctl.save
-rw-r--r--   1 vzell  admin    5651 Feb 15 17:20 irssi.conf
drwxr-xr-x+  2 vzell  users       0 Feb 20 23:37 joe/
-rw-r--r--   1 vzell  admin    4394 Mar  3  2003 ksh.kshrc
-rw-r--r--   1 vzell  admin    3525 Nov 15 15:15 lftp.conf
-rw-r--r--   1 vzell  users    4188 Aug 13  2007 libtextcat.conf
drwxr-xr-x+  2 vzell  admin       0 Feb 20 23:38 lighttpd/
lrwxrwxrwx   1 vzell  admin      33 May 21  2007 localtime -> /usr/share/zoneinfo/Europe/Berlin
-rw-r--r--   1 vzell  admin  139967 Nov 15  2005 lynx.cfg
drwxr-xr-x+  2 vzell  admin       0 Jul 24  2007 mail/
-rw-r--r--   1 vzell  admin       9 Jun 27  2002 mailname
-rw-r--r--   1 vzell  admin      84 Oct 21  2005 manweb.conf
-rw-r--r--   1 vzell  admin   36823 Nov 10  2005 mime-magic
-rw-r--r--   1 vzell  admin   99960 Nov 10  2005 mime-magic.dat
-rw-r--r--   1 vzell  users    1898 Aug 23  2007 mime.types
-rw-r--r--   1 vzell  users  132839 Sep 17  2007 moduli
-rw-r--r--   1 vzell  admin    1680 Mar  5 02:54 motd
-rw-r--r--   1 vzell  admin   39887 Jul  9  2007 multitail.conf
lrwxrwxrwx   1 vzell  admin      40 Aug  1  2005 networks -> C:\WINDOWS\system32\drivers\etc\networks*
-rw-r--r--   1 vzell  admin      23 Feb 28  2003 nntpserver
drwxr-xr-x+  3 vzell  admin       0 Feb 20 23:40 openldap/
-rw-r--r--   1 vzell  admin      16 Nov 29  2001 organization
-rw-r--r--   1 vzell  admin   11614 Nov 21 19:14 orpierc
drwxr-xr-x+  2 vzell  admin       0 Jul 24  2007 pango/
-rw-r--r--   1 vzell  admin     595 Nov 10  2005 paper.config
-rw-r--r--   1 vzell  admin       3 Jul  7  2007 papersize
-rw-r--r--   1 vzell  admin    1375 Feb 27 13:39 passwd
-rw-r--r--   1 vzell  admin    2880 Sep  6  2003 pinforc
drwxr-xr-x+  2 vzell  admin       0 Mar 18 17:59 postinstall/
drwxr-xr-x+  2 vzell  admin       0 Jul 24  2007 postremove/
drwxr-xr-x+  2 vzell  admin       0 Mar 18 11:39 preremove/
lrwxrwxrwx   1 vzell  admin      23 Jul  3  2004 printcap -> /usr/local/etc/printcap
-rw-r--r--   1 vzell  admin     162 Feb 27 12:48 profile
drwxr-xr-x+  2 vzell  admin       0 Jan 19 20:58 profile.d/
-rw-r--r--   1 vzell  admin    1826 May 19  2003 proftpd.conf
lrwxrwxrwx   1 vzell  admin      40 Aug  1  2005 protocols -> C:\WINDOWS\system32\drivers\etc\protocol*
drwxr-xr-x+  2 vzell  admin       0 Jul 24  2007 qt3/
-rw-r--r--   1 vzell  users     985 Nov 13 01:05 quilt.quiltrc
-rw-r--r--   1 system system     65 Jan  2  2003 rc
drwxr-xr-x+ 10 vzell  admin       0 Feb 27 13:32 rc.d/
-rw-r--r--   1 vzell  admin     743 Mar 10  2005 rpc
drwxr-xr-x+  2 vzell  admin       0 Jul 24  2007 rpm/
-rw-r--r--   1 vzell  admin     208 Nov 24  2001 rsyncd.conf
-rw-r--r--   1 vzell  admin     162 Dec 19 17:49 saslauthd.conf
-rw-r--r--   1 vzell  admin   49152 Dec 19 18:27 sasldb2
-rw-r--r--   1 vzell  admin    3517 Jul 10  2007 screenrc
lrwxrwxrwx   1 vzell  admin      31 Jul  3  2004 sendmail.cf -> /usr/local/etc/mail/sendmail.cf
lrwxrwxrwx   1 vzell  admin      40 Aug  1  2005 services -> C:\WINDOWS\system32\drivers\etc\services
drwxr-xr-x+  2 vzell  admin       0 Mar 18 17:59 setup/
-rw-r--r--   1 vzell  admin    4616 Feb 22 13:03 sgreprc
-rw-r--r--   1 vzell  admin     138 Mar  5 02:54 shells
drwxr-xr-x+  2 vzell  admin       0 Jul 24  2007 skel/
-rw-r--r--   1 vzell  admin    6452 Dec 22  2006 smartd.conf
drwxr-xr-x+  3 vzell  admin       0 Jul 24  2007 sound/
drwxr-xr-x+  2 vzell  users       0 Dec 16 13:03 squid/
-rw-r--r--   1 vzell  admin    1482 Jan  5 20:59 ssh_config
-rw-------   1 system root      668 Feb 27 13:46 ssh_host_dsa_key
-rw-r--r--   1 system admin     590 Feb 27 13:46 ssh_host_dsa_key.pub
-rw-------   1 system root      963 Feb 27 13:46 ssh_host_key
-rw-r--r--   1 system admin     627 Feb 27 13:46 ssh_host_key.pub
-rw-------   1 system root     1671 Feb 27 13:46 ssh_host_rsa_key
-rw-r--r--   1 system admin     382 Feb 27 13:46 ssh_host_rsa_key.pub
-rw-r--r--   1 vzell  admin    3199 Jan  5 21:00 sshd_config
drwxr-xr-x+  2 vzell  admin       0 Feb 27 13:39 ssmtp/
drwxr-xr-x+  2 vzell  users       0 Feb 12 14:59 stunnel/
drwxr-xr-x+  2 vzell  admin       0 Feb 20 23:14 sysconfig/
-rw-r--r--   1 vzell  admin     418 Jan  5 20:39 syslog-ng.conf
-rw-r--r--   1 vzell  admin     413 May 10  2007 syslog.conf
-rw-r--r--   1 vzell  admin   14856 May 19  2006 termcap
drwxr-xr-x+  2 vzell  admin       0 Jul 24  2007 terminfo/
-rw-r--r--   1 vzell  admin       0 Dec 10  2002 tidyrc
-rw-r--r--   1 vzell  admin     347 Oct  9  2003 tpasswd.conf
-rw-r--r--   1 vzell  users      85 Dec  1 12:47 typespeedrc
-rw-r--r--   1 vzell  admin    4224 Nov 17  2006 wgetrc
drwxr-xr-x+  2 vzell  admin       0 Jul 24  2007 x3270/
-rw-r--r--   1 vzell  admin     298 Nov 10  2002 xinetd.conf
drwxr-xr-x+  2 vzell  admin       0 Mar  8 19:10 xinetd.d/
drwxr-xr-x+  2 vzell  admin       0 Jul 24  2007 xml/
-rw-r--r--   1 vzell  admin    5183 Feb 16  2006 xpdfrc
-rw-r--r--   1 vzell  admin     534 Dec 10  2002 zprofile

--------

If I try the old rsh against your new daemons it seems to work:

06:53 PM [637]> /bin/rsh vzell@localhost pwd
/home/vzell

and in /var/log/messages:

Mar 18 18:53:28 localhost rshd: PID 160: 2nd port not reserved 1022
Mar 18 18:53:51 localhost rshd: PID 2948: vzell@xp.de.oracle.com as vzell: cmd='pwd'

---

By the way, for every telnet session I see the following two entries in
/var/log/messages

Mar 18 18:02:11 localhost telnetd: PID 180: ttloop: retrying
Mar 18 18:02:39 localhost telnetd: PID 180: child process 1180 exited: 0

Is this expected behaviour ?

    > Chuck

Ciao
  Volker
  

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: inetutils-1.5-2 test release
  2008-03-18 16:56 ` Corinna Vinschen
@ 2008-03-18 18:48   ` Charles Wilson
  2008-03-18 19:44     ` Corinna Vinschen
  0 siblings, 1 reply; 7+ messages in thread
From: Charles Wilson @ 2008-03-18 18:48 UTC (permalink / raw)
  To: cygwin

Corinna Vinschen wrote:
> On Mar 18 12:32, Charles Wilson wrote:
>> This is odd. ftpd works for me
>>   1) on XP SP2, where inetd is installed as a service on its own,
>>   running under the local system account
>>   2) on XP SP2, where inetd is installed as a service using cygrunsrv,
>>   running under the local system account
>>   3) on XP SP2, where inetd is invoked via sysvinit's init process
>>   (/etc/rc.d/inetd), and were init is running under the local system
>>   account
>>
>> However, ftpd does not work if inetd is running under
>> sshd_server/cyg_server/other_privileged_user -- so I assume it will not
>> yet work under vista.  But that issue is not a regression, AFAICT. What
>> are the details of your installation?
> 
> That is a regression, afaics.  The privileged account needs the specific
> user privileges to change the user context, but if it has these
> privileges, it should behave not different than when running under the
> SYSTEM account in earlier versions of Windows.  The old ftpd doesn't test
> the uid for being any fixed value. 

ftp was the worst as far as porting changes from 1.3.2-X to 1.5. LOTS of 
stuff. It is entirely possible that I (a) missed something in forward 
porting old modifications, or (b) there was some new code in 1.5 that 
needed modification and I missed that.

That's why this is a test release. It works for me, but I've only got 
the one computer (* okay, I just got a vista machine last week, but I 
haven't even tried to install cygwin on it. Reading the horror stories...)

> Same for inetd.

Right. I had no issues with inetd *itself*, running under the cyg_server 
(or sshd_server) account. It was (some of) the slave daemons that were 
troublesome -- but not all.  telnetd works (for me), for instance.  I 
remember that at least one of the r* cmds worked (for me), too -- except 
that unless LocalServer, .rhosts were not honored.


> Uh, no.  the old rshd has this in the code:
> 
>   #ifdef __CYGWIN__
> 	  uid_t ROOT_UID = getuid ();
>   #else
> 	  ROOT_UID	(0)
>   #endif

Oops. I was thinking of rlogind:

#define ROOT_UID    18

--
Chuck




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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: inetutils-1.5-2 test release
  2008-03-18 18:48   ` Charles Wilson
@ 2008-03-18 19:44     ` Corinna Vinschen
  0 siblings, 0 replies; 7+ messages in thread
From: Corinna Vinschen @ 2008-03-18 19:44 UTC (permalink / raw)
  To: cygwin

On Mar 18 13:46, Charles Wilson wrote:
> (* okay, I just got a vista machine last week, but I haven't 
> even tried to install cygwin on it. Reading the horror stories...)

<diabolical laughter>

> Oops. I was thinking of rlogind:
>
> #define ROOT_UID    18

Uh oh.  There's a certain chance that I never tested that on post-XP
either...


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: inetutils-1.5-2 test release
  2008-03-18 17:59 ` Dr. Volker Zell
@ 2008-04-17 21:35   ` Charles Wilson
  0 siblings, 0 replies; 7+ messages in thread
From: Charles Wilson @ 2008-04-17 21:35 UTC (permalink / raw)
  To: cygwin

Dr. Volker Zell wrote:

Fixed the ftp problem. It was an '=' vs. '==' transcription bug.

> If I try the old rsh against your new daemons it seems to work:
> 
> 06:53 PM [637]> /bin/rsh vzell@localhost pwd
> /home/vzell

Fixed this. The new version of rsh added a check to ensure that rsh.exe 
client had the setuid bit ON (that is, its getuid() is 'root'), and 
exited otherwise.  Obvious that's wrong on cygwin.  The only reason 
'/bin/rsh user@machine' (with no command) worked is because that is 
implmented as 'exec rlogin' BEFORE checking the setuid -- and the 
rlogin.exe client does not check that getuid() is 'root').

> and in /var/log/messages:
> 
> Mar 18 18:53:28 localhost rshd: PID 160: 2nd port not reserved 1022

This was a red herring. Just a cut-n-paste error; this log message 
belonged elsewhere in the code.

> Mar 18 18:53:51 localhost rshd: PID 2948: vzell@xp.de.oracle.com as vzell: cmd='pwd'

Normal log message when a rcmd/rexec/rsh fails. The failure was due to 
the setuid thing, above.

> By the way, for every telnet session I see the following two entries in
> /var/log/messages
> 
> Mar 18 18:02:11 localhost telnetd: PID 180: ttloop: retrying
> Mar 18 18:02:39 localhost telnetd: PID 180: child process 1180 exited: 0
> 
> Is this expected behaviour ?

Well, kinda. If your server is faster than your client...

//<<< function io_drain >>>//
  again:
   ncc = read (net, netibuf, sizeof netibuf);
   if (ncc < 0)
     {
       if (errno == EAGAIN)
         {
           syslog (LOG_INFO, "ttloop: retrying");
           goto again;
         }

It just means that you tried to read from an empty but non-blocking 
socket. I don't really like the way this is coded; it's a 100% busy 
loop. But, that's why it's called ttloop (which is the only caller of 
io_drain):

#define ttloop(c) while (c) io_drain ()

But ttloop is used rather sparingly -- for instance, while doing the 
handshaking to set up the login prompt. Most of the time telnetd sits in 
a select() loop.

--
Chuck

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* inetutils-1.5-2 test release
@ 2008-03-18 14:08 Dr. Volker Zell
  0 siblings, 0 replies; 7+ messages in thread
From: Dr. Volker Zell @ 2008-03-18 14:08 UTC (permalink / raw)
  To: Cygwin List

Hi

The test release of inetutils installs fine with setup.

I tested it with my original xinetd setup (replacing the
in.* daemons with the new ones).

---------------------------

Authentication via ftpd does not seem to work in the new release:

NEW:

>ftp xp.de.oracle.com
Connected to xp.de.oracle.com.
220-
220- Connected to the cygwin ftp server...
220-
220 xp.de.oracle.com FTP server (GNU inetutils 1.5) ready.
Name (xp.de.oracle.com:vzell):
331 Password required for vzell.
Password:
530 Login incorrect.
/bin/ftp: Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> quit
221 Goodbye.

OLD:

>ftp xp.de.oracle.com
Connected to xp.de.oracle.com.
220-
220- Connected to the cygwin ftp server...
220-
220 xp FTP server (GNU inetutils 1.3.2) ready.
Name (xp.de.oracle.com:vzell):
331 Password required for vzell.
Password:
230-       ____________________,             ______________________________________
230-    .QQQQQQQQQQQQQQQQQQQQQQQQL_         |                                      |
230-  .gQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ__   |                                      |
230-  gQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ==   |                    _.---.)           |
230-  QQQQQQQQQQQQQQQQQQQQQQQQQQQF=         |          (^--^)_.-"      `;          |
230-  QQQQQQQQQ================!            |          ) ee (           |          |
230-  QQQQQQQQ                              |         (_.__._)         /           |
230-  QQQQQQQQ                              |           `--',        ,'            |
230-  QQQQQQQQ     ~"jjj__,                 |            jgs )_|--')_|             |
230-  QQQQQQQQ       "jjjjjjjjjj___         |                ""'   ""'             |
230-  QQQQQQQQ        ~jjjjjjjjjjjjjjjjj__  |                                      |
230-  QQQQQQQQ        _jjjjjjjjjjjjjj/~~~~  |      The Hippo says: Welcome to      |
230-  QQQQQQQQ      .{jjjjjjj/~~~~~         |                             _        |
230-  QQQQQQQQ     .{/~~~~`                 |  ____  _   _   ____  _ _ _ (_) ____  |
230-  QQQQQQQQ                              | / ___)| | | | / _  || | | || ||  _ \ |
230-  QQQQQQQQ                              |( (___ | |_| |( (_| || | | || || | | ||
230-  QQQQQQQQQL_______________,            | \____) \__  | \___ | \___/ |_||_| |_||
230-  QQQQQQQQQQQQQQQQQQQQQQQQQQQL___       |        (___/  (____|                 |
230-  4QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ___  |                                      |
230-  (=QQQQQQQQQQQQQQQQQQQQQQQQQQQQQ====   |       -.-. -.-- --. .-- .. -.        |
230-    (QQQQQQQQQQQQQQQQQQQQQQQQF=         |______________________________________|
230-
230 User vzell logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> 221 Goodbye.

-----------------------------------

Remote commands via the new rsh do not seem to work:

NEW
>rsh vzell@xp.de.oracle.com ls
/bin/rsh: must be setuid root.

OLD:

>rsh vzell@xp.de.oracle.com ls
1016989963.dat
1016989963.phb
AddrBook.Dat
Calendar
:
:
---------------------------------

Last question. What is .talkrc for ? I get the following in
/var/log/messages when running talk. The man page says nothing.

Mar 18 13:30:37 localhost talkd: PID 2132: can't open config file /home/vzell/.talkrc: No such file or directory

Ciao
  Volker

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-04-17 20:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-18 16:33 inetutils-1.5-2 test release Charles Wilson
2008-03-18 16:56 ` Corinna Vinschen
2008-03-18 18:48   ` Charles Wilson
2008-03-18 19:44     ` Corinna Vinschen
2008-03-18 17:59 ` Dr. Volker Zell
2008-04-17 21:35   ` Charles Wilson
  -- strict thread matches above, loose matches on Subject: below --
2008-03-18 14:08 Dr. Volker Zell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).