home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 8017 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.8 KB  |  53 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!boulder!kinglear!drew
  3. From: drew@kinglear.cs.colorado.edu (Drew Eckhardt)
  4. Subject: Re: DOS2Linux: Newbie to Newbie
  5. Message-ID: <1992Aug12.174828.18311@colorado.edu>
  6. Sender: news@colorado.edu (The Daily Planet)
  7. Nntp-Posting-Host: kinglear.cs.colorado.edu
  8. Organization: University of Colorado at Boulder
  9. References: <1992Aug11.085511.3148@nntp.hut.fi>
  10. Date: Wed, 12 Aug 1992 17:48:28 GMT
  11. Lines: 40
  12.  
  13. In article <1992Aug11.085511.3148@nntp.hut.fi> sakaria@vipunen.hut.fi (Sakari Aaltonen) writes:
  14. >
  15. >If your background is non-Unix like mine, you might find the following
  16. >hints useful:
  17. >
  18. >1. You have compiled your first hello.c for Linux. You type
  19. >  hello
  20. >and nothing happens. Gotcha! Unlike MSDOS, say, Linux does NOT automatically
  21. >search your current directory. You should type
  22. >  ./hello
  23.  
  24.  
  25. This isn't Linux, it's your PATH environment variable.  '.' must be 
  26. explicitly stated in PATH.
  27.  
  28. To add . to your path, edit your .profile (Bourne shells), or .cshrc (C shells),
  29. and add . to the PATH= (Bourne shell), or path=() (C shell) statement.  To 
  30. add . to your path immediately under Bourne shell,
  31.  
  32. PATH=${PATH}:.
  33.  
  34. 'C' shell : 
  35.  
  36. setenv PATH $PATH:.
  37.  
  38. Note that having . in your path is a security hole - if you are in 
  39. /tmp or any other world writeable directory, or some users directory,
  40. they can have mispellings of normal commands there to catch you.
  41. If you screw up, they can have something SUID to you, and have 
  42. access to all your files.  
  43.  
  44. Also, if . is first, things in the current directory will be 
  45. executed first - so typing a normal ls in the wrong place can give some
  46. one access to all your files.
  47.  
  48.  
  49. -- 
  50. Microsoft is responsible for propogating the evils it calls DOS and Windows, 
  51. IBM for AIX (appropriately called Aches by those having to administer it), but neither is as bad as AT&T.  Boycott AT&T, and let them know how you feel. 
  52.  
  53.