Solved

.profile

Posted on 2002-07-21
5
243 Views
Last Modified: 2010-04-21
in .profile why need' ' in setting PATH?

TERM=VT100
export TERM
PATH='.:$HOME/bin:/bin:.......'
0
Comment
Question by:ww111697
5 Comments
 
LVL 11

Expert Comment

by:griessh
ID: 7168386
You don't need the "'"
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 50 total points
ID: 7168937
you don't need single quotes, in your example it probably inhibits to do what you want. Better use double quotes instead.
0
 
LVL 1

Expert Comment

by:dkloes
ID: 7173113
Not related but you should put the . at the end of the PATH rather than the beginning to prevent spoofing of real Unix programs.  Takes a little longer to run but better for security.
0
 

Author Comment

by:ww111697
ID: 7179247
I am sorry, but what do you mean by "to prevent spoofing of real Unix programs"?
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7179518
> .. prevent spoofing of real programs ..
means that if you have . first in your PATH, some bad people might place programs like  ls, pwd, pws, etc.
somewhere in the filesystem, and these progs might do what *they* want and what you expect, 'cause they are found in PATH first before the real programs in /bin or /usr/bin

That's all, off-topic ...
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now