home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / question / 11078 < prev    next >
Encoding:
Text File  |  1992-09-15  |  2.6 KB  |  71 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!umn.edu!umeecs!nova!ellis
  3. From: ellis@nova.gmi.edu (Stew Ellis)
  4. Subject: Re: .netrc entry for default ftp connects
  5. Message-ID: <ellis.716557807@nova>
  6. Keywords: ftp netrc
  7. Sender: news@zip.eecs.umich.edu (Mr. News)
  8. Organization: GMI Engineering&Management Institute, Flint, MI
  9. References: <1992Sep12.184012.2519@lambda.msfc.nasa.gov> <1992Sep12.215444.9640@bradley.bradley.edu> <smr.716471679@hitkw14>
  10. Date: Tue, 15 Sep 1992 11:50:07 GMT
  11. Lines: 58
  12.  
  13. smr@hitkw14.pki-nbg.philips.de (S.Riehm) writes:
  14.  
  15. >guru@camelot.bradley.edu (Jerry Whelan) writes:
  16.  
  17. >>In article <1992Sep12.184012.2519@lambda.msfc.nasa.gov> thigpen@lambda.msfc.nasa.gov (Keith Thigpen) writes:
  18. >>-} .netrc works fine if I specify the machine that I want to contact. Often, tho,
  19. >>-} I want to jump out on the net and use anonymous ftp.
  20.  
  21. >>Well, then use this script (suitably modified for your situation) in
  22. >>place of ftp:
  23.  
  24. >[script deleted]
  25.  
  26. >eek! that script adds a line to the end of your .netrc file every time
  27. >you ftp somewhere... why don't you just read the man page to get the
  28. >answer...
  29.  
  30. >---
  31. >netrc(4)
  32.  
  33. >    default             This is the same as 'machine name' except that
  34. >            default matches any name.  There can be only
  35. >            one default token, and it must be after all
  36. >            machine tokens.  This is normally used for
  37. >            ftp as follows:
  38.  
  39. >            default login anonymous password user@site
  40.  
  41. >            This provides automatic anonymous FTP login
  42. >            to machines not specified in .netrc.  This
  43. >            can be overridden in ftp by using the -n flag
  44. >            to disable auto-login.
  45. >---
  46.  
  47. >need I say more?
  48.  
  49. >catchya
  50.  
  51. >-----------------------------------------------------------------
  52. >Stephen Riehm        Configuration Management       _-_|\ 
  53. >smr@pki-nbg.philips.de    Philips Kommunikations Industrie  /     \
  54. >Work: +49 911 526 2975    N|rnberg, Germany          \_.-.*/
  55. >Fax:  +49 911 526 2095    "I was there, now I am here!"           v 
  56. >"My company speaks another language, I CAN'T speak on it's behalf"
  57.  
  58. Do you actually use this?  What hardware and OS version?  I just replaced my
  59. .netrc file with one having only the default line such as above and tried
  60. two well-known sites, oak.oakland.edu and export.lcs.mit.edu.  It did not
  61. work with either one.
  62.  
  63. I just read my man page (SunOS 4.1.2) and there is no mention of any of this
  64. about default.
  65.  
  66. --
  67. --                                                        ___________________
  68.   R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765  /   _____  ______ 
  69.   Humanities & Social Science,  GMI Eng.& Mgmt. Inst.   /        / /  /  / /
  70.   Flint, MI 48504      ellis@nova.gmi.edu              /________/ /  /  / /
  71.