home *** CD-ROM | disk | FTP | other *** search
- 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
- From: jjk1@ns1.cc.lehigh.edu (Konsultant Josh/fuzzy.happy.green.box)
- Newsgroups: comp.os.linux
- Subject: Re: DOS2Linux: Newbie to Newbie
- Message-ID: <1992Aug12.175116.20750@ns1.cc.lehigh.edu>
- Date: 12 Aug 92 17:51:16 GMT
- Organization: Lehigh University
- Lines: 33
-
- In article <bjl.713562403@freyr>, bjl@loki.pttrnl.nl (Ben Lippolt) writes:
- >
- >You can put '.' in your path. In 'csh' or 'tcsh' you do this as follows:
- >
- > % set path = (. <rest of your path>)
- >
- >In 'sh' and 'bash' you do it like:
- >
- > $ PATH=.:<rest of your path>
- > $ export $PATH
- >
-
- Although this can be done, it is generally considered a terrible
- security risk when done in the root account. The point is that the
- superuser should be running only programs which (s)he knows the
- location of; for example, if you have a . in your path and you execute
- "alias dir 'ls -lasg'" in csh, you can quite easily have just run a
- program in the current directory, called alias, which wipes your disk
- out. Obviously, you're not going to expect such things in distributed
- files or when there is nobody else using your system, but it also
- helps "protect you from yourself" in some instances.
-
- Of course, as root on your own machine, it's up to you :-)
-
- -- Josh
- --
- ____________------------===========------------____________
- from: Josh Kopper
- jjk1@lehigh.edu
-
- Computer Engineering, CSEE Department, Lehigh University
-
- Systems Programming - Lehigh University Computing Center
-