Solved

.profile

Posted on 2002-07-21
5
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
cron job says it ran, no results 25 136
Unix Script: Loop over all days of a month 17 132
Install MySQL 5.6 and PHP on Centos Linux 6 181
Shell Script on AIX 7 178
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

751 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