Mail Archives: cygwin/2004/10/12/11:55:16
Carlo,
See comments inline below.
On Tue, 12 Oct 2004, Carlo Florendo wrote:
> Hello,
>
> I've recently searched the archives for problems regarding cygwin unable
> to do ftp and came across the thead entitled "1.5.11 - tcp problems"
> which was started on September 14. I've replied to the last message in
> the thread (since the problem seemed not to be solved on the mailing
> list.)
>
> I'm encountering exactly the same problem where invoking /usr/bin/ftp
> gives a:
>
> ftp: ftp/tcp: unknown service.
>
> On my system, /etc/services is indeed a symlink to the Windows services
> file:
>
> /etc/services -> C:\WINNT\system32\drivers\etc\services
>
> I've followed the advice on one of the message replies stating that
> there should at least be +r access on services by users. I also made
> sure the parent directories containing `service' to be readable by all.
> Here's how the permissions look like now:
>
> SYSTEM /cygdrive/c
> $ ls -ld winnt
> drwxrwxr-x+ 40 Administ SYSTEM 32768 Oct 6 11:17 winnt
>
> SYSTEM /cygdrive/c
> $ cd winnt
>
> SYSTEM /cygdrive/c/winnt
> $ ls -ld system32
> drwxrwxr-x+ 29 Administ SYSTEM 319488 Oct 12 08:29 system32
>
> SYSTEM /cygdrive/c/winnt
> $ cd system32
>
> SYSTEM /cygdrive/c/winnt/system32
> $ ls -ld drivers
> drwxrwxr--+ 4 Administ SYSTEM 28672 Sep 20 15:34 drivers
^^^
> SYSTEM /cygdrive/c/winnt/system32
> $ cd drivers
>
> SYSTEM /cygdrive/c/winnt/system32/drivers
> $ ls -ld etc
> drwxrwxr--+ 2 Administ SYSTEM 4096 Jun 22 00:09 etc
^^^
They have to be executable, not readable. The readable bit controls
listing the contents of the directory, but accessing the files requires
the directory to be executable.
> SYSTEM /cygdrive/c/winnt/system32/drivers
> $ cd etc
>
> SYSTEM /cygdrive/c/winnt/system32/drivers/etc
> $ ls -l
> total 15
> -rwxrwx---+ 1 Administ SYSTEM 1757 Apr 11 2004 hosts
^^^
> -rwxrwx---+ 1 Administ SYSTEM 3683 Jul 14 2003 lmhosts.sam
> -rwxrwx---+ 1 Administ SYSTEM 407 Jul 14 2003 networks
^^^
> -rwxrwx---+ 1 Administ SYSTEM 799 Jul 14 2003 protocol
^^^
> -rwxrwxr--+ 1 Administ SYSTEM 7116 Jul 14 2003 services
All of the above have to be readable, too.
> However, I stll get the same error:
>
> SYSTEM /cygdrive/c/winnt/system32/drivers/etc
> $ ftp
> ftp: ftp/tcp: unknown service
>
> Then, I copied the services file itself and temporarily renamed the
> symlink. After invoking ftp, it still didn't work.
Of course it wouldn't. Cygwin uses Winsock, which looks for the files in
the above directory, not in /etc. The /etc links are simply to make
Cygwin look more like Linux.
> Trying the windows ftp program bundled with the OS works fine, but,
> FWIW, I guess this is irrelevant on this issue.
>
> Attached is the output of cygcheck -svr. Any hints?
> Thanks a lot!
> Carlo
HTH,
Igor
--
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!
"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing." -- Dr. Jubal Harshaw
--
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 -