[11346] in Athena Bugs
decmips 7.6G: ftp
daemon@ATHENA.MIT.EDU (Petr Adamek)
Sun Nov 7 12:32:49 1993
To: bugs@MIT.EDU
Date: Sun, 07 Nov 93 12:32:32 EST
From: Petr Adamek <adamek@MIT.EDU>
System name: e51-007-7
Type and version: KN02ca 7.6G
Display type: PMAG-DV
What were you trying to do?
use ftp's .netrc "default" feature
What's wrong:
seems doesn't work. I tried couple of combinations, "default"
seems to be irrelevant;
I put in the .netrc file:
default login anonymous password adamek@
What should have happened:
when I ftp a random machine I should be logged in as anonymous
Please describe any relevant documentation references:
man netrc:
+ A line in the .netrc file can be either a machine line or a default
line.
+ The default line must be the first line in the file if it is
present.
+ Fields in a default line appear in this order: default, default
machine name.
Communications from OLC consultants:
*** Reply from consultant othomas@NAVIGATOR.MIT.EDU [1].
[Thu 04-Nov-93 9:58am]
Petr,
According to the manual, the default line provides a machine-name
match if no other 'machine' line matches. For example, let's say your .netrc
file looks like this:
machine grandma.mit.edu login wolf password riding_hood
machine witch.mit.edu login broom password stick
default login anonymous password myself@mit.edu
If you say 'ftp grandma.mit.edu' or 'ftp witch.mit.edu' it will match. For an
ftp to any other machine, it should log you in as user anonymous, password
myself@mit.edu.
Now, that's how it _should_ work. However, I can't get it to work with the
sample I tried. I'm checking into whether the athena version of ftp is
differenct.
-oliver thomas
*** Reply from consultant wchuang@MOMONEY.MIT.EDU [1].
[Sat 06-Nov-93 3:20pm]
Hello, Petr...
I don't believe that the "default" line is accepted on Athena (it hasn't
been before, and it isn't right now, as far as I can see). In fact, I
think the only ftp program I know that definitely uses it (there may be
others) is called "ncftp"...
(I think, I was compiling it elsewhere a few days ago).