To change PATH for all users - you would make the change to /etc/profile
To change the PATH for one user - you would make the change to the account's .profile in that account's home directory.
Get rid of that '.' in the path. It is a security risk. Especially when you have it as the first entry in the path.
Adding paths to PATH (the global varaible where the system searches for commands)
For sh, ksh, bash shell add this line to your .profile file \(in your home directory\):
PATH=$PATH:/usr/local/bin:/usr/ccs/bin
export PATH
For csh add this line to your .cshrc file:
set path = \($path /usr/local/bin\)
For tcsh add the same line to your .tcshrc file:
set path = \($path /usr/local/bin\)
I tried everything which you mentioned ( for all users as well as for one user) but I am not able to set the required path..
I am giving the o/p of both