home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 8033 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  1.6 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!mips!darwin.sura.net!jvnc.net!netnews.upenn.edu!netnews.cc.lehigh.edu!ns1.cc.lehigh.edu!jjk1
  2. From: jjk1@ns1.cc.lehigh.edu (Konsultant Josh/fuzzy.happy.green.box)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: DOS2Linux: Newbie to Newbie
  5. Message-ID: <1992Aug12.175116.20750@ns1.cc.lehigh.edu>
  6. Date: 12 Aug 92 17:51:16 GMT
  7. Organization: Lehigh University
  8. Lines: 33
  9.  
  10. In article <bjl.713562403@freyr>, bjl@loki.pttrnl.nl (Ben Lippolt) writes:
  11. >
  12. >You can put '.' in your path. In 'csh' or 'tcsh' you do this as follows:
  13. >
  14. >    % set path = (. <rest of your path>)
  15. >
  16. >In 'sh' and 'bash' you do it like:
  17. >
  18. >    $ PATH=.:<rest of your path>
  19. >    $ export $PATH
  20. >
  21.  
  22. Although this can be done, it is generally considered a terrible
  23. security risk when done in the root account.  The point is that the
  24. superuser should be running only programs which (s)he knows the
  25. location of; for example, if you have a . in your path and you execute
  26. "alias dir 'ls -lasg'" in csh, you can quite easily have just run a
  27. program in the current directory, called alias, which wipes your disk
  28. out.  Obviously, you're not going to expect such things in distributed
  29. files or when there is nobody else using your system, but it also
  30. helps "protect you from yourself" in some instances.
  31.  
  32. Of course, as root on your own machine, it's up to you :-)
  33.  
  34. -- Josh
  35. -- 
  36. ____________------------===========------------____________
  37.                      from: Josh Kopper
  38.                       jjk1@lehigh.edu
  39.     
  40.   Computer Engineering, CSEE Department, Lehigh University
  41.  
  42.   Systems Programming - Lehigh University Computing Center
  43.