home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / question / 11032 < prev    next >
Encoding:
Internet Message Format  |  1992-09-14  |  2.2 KB

  1. Path: sparky!uunet!gatech!rutgers!uwvax!cs.wisc.edu!shubu
  2. From: shubu@cs.wisc.edu (Shubhendu Mukherjee)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: .netrc entry for default ftp connects
  5. Message-ID: <SHUBU.92Sep14090817@green.cs.wisc.edu>
  6. Date: 14 Sep 92 15:08:16 GMT
  7. References: <1992Sep12.184012.2519@lambda.msfc.nasa.gov>
  8.     <1992Sep12.215444.9640@bradley.bradley.edu> <smr.716471679@hitkw14>
  9. Sender: news@cs.wisc.edu (The News)
  10. Organization: Univ. of Wisconsin @ Madison, CS Dept.
  11. Lines: 54
  12. In-Reply-To: smr@hitkw14.pki-nbg.philips.de's message of 14 Sep 92 11:54:39 GMT
  13.  
  14. >>>>> In article <smr.716471679@hitkw14>, smr@hitkw14.pki-nbg.philips.de (S.Riehm) writes:
  15.  
  16. SR> guru@camelot.bradley.edu (Jerry Whelan) writes:
  17.  
  18. >In article <1992Sep12.184012.2519@lambda.msfc.nasa.gov> thigpen@lambda.msfc.nasa.gov (Keith Thigpen) writes:
  19. >-} .netrc works fine if I specify the machine that I want to contact. Often, tho,
  20. >-} I want to jump out on the net and use anonymous ftp.
  21.  
  22. >Well, then use this script (suitably modified for your situation) in
  23. >place of ftp:
  24.  
  25. SR> [script deleted]
  26.  
  27. SR> eek! that script adds a line to the end of your .netrc file every time
  28. SR> you ftp somewhere... why don't you just read the man page to get the
  29. SR> answer...
  30.  
  31. SR> ---
  32. SR> netrc(4)
  33.  
  34. SR> default             This is the same as 'machine name' except that
  35. SR> default matches any name.  There can be only
  36. SR> one default token, and it must be after all
  37. SR> machine tokens.  This is normally used for
  38. SR> ftp as follows:
  39.  
  40. SR> default login anonymous password user@site
  41.  
  42. SR> This provides automatic anonymous FTP login
  43. SR> to machines not specified in .netrc.  This
  44. SR> can be overridden in ftp by using the -n flag
  45. SR> to disable auto-login.
  46. SR> ---
  47.  
  48. SR> need I say more?
  49.  
  50. SR> catchya
  51.  
  52. Unfortunately, this doesn't seem to work on an Ultrix machine (not at least 
  53. on this DEC 3100).  I think this was mentioned before somewhere along the 
  54. thread of discussion. 
  55.  
  56. Luck!
  57. -Shubu
  58.  
  59.  
  60.  
  61.  
  62.  
  63. --
  64. -------------------------------------------------------------------------
  65. Shubhendu Sekhar Mukherjee       University of Wisconsin @ Madison, C.Sc.
  66. Net:shubu@cs.{wisc,utexas}.edu   [W]:(608) 262-1012   [H]:(608) 255-6322
  67. -------------------------------------------------------------------------   
  68.