Solved

.profile

Posted on 2002-07-21
5
244 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

930 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

16 Experts available now in Live!

Get 1:1 Help Now