This is the mail archive of the
mailing list for the Cygwin project.
Re: other services ok, ftp not (was 1.5.11 - tcp problems)
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Carlo Florendo <list-subscriber at hq dot astra dot ph>
- Cc: cygwin at cygwin dot com
- Date: Tue, 12 Oct 2004 11:54:47 -0400 (EDT)
- Subject: Re: other services ok, ftp not (was 1.5.11 - tcp problems)
- References: <firstname.lastname@example.org> <416B3A95.email@example.com>
- Reply-to: cygwin at cygwin dot com
See comments inline below.
On Tue, 12 Oct 2004, Carlo Florendo wrote:
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
I'm encountering exactly the same problem where invoking /usr/bin/ftp
ftp: ftp/tcp: unknown service.
On my system, /etc/services is indeed a symlink to the Windows services
/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:
$ ls -ld winnt
drwxrwxr-x+ 40 Administ SYSTEM 32768 Oct 6 11:17 winnt
$ cd winnt
$ ls -ld system32
drwxrwxr-x+ 29 Administ SYSTEM 319488 Oct 12 08:29 system32
$ cd system32
$ ls -ld drivers
drwxrwxr--+ 4 Administ SYSTEM 28672 Sep 20 15:34 drivers
$ cd 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.
$ cd etc
$ ls -l
-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:
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!
|\ _,,,---,,_ firstname.lastname@example.org
ZZZzz /,`.-'`' -. ;-;;,_ email@example.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