Solved

.profile

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AIX print queues constantly going down 11 520
SSH commands for Nas4free 21 423
How should I mount this 3 TB USB Hard disk to my Linux server? 9 110
aix unix tar error 3 66
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…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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…

776 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