Setting PATH variable in SuSE - TechRepublic
Question
July 20, 2009 at 12:52 AM
eldhom

Setting PATH variable in SuSE

by eldhom . Updated 16 years, 10 months ago

Hi,
I want to secure the PATH variable for a user. I have a user say user1, his home directory is /home/user1 and shell is /bin/csh. When I create a user the profile files (for csh shell ie, ~/.cshrc and ~/.login) will not create in the home directory by default. In /etc/csh.cshrc and /etc/csh.login, there is no “set path=” entry. /etc/profile has an entry like PATH=/bin:/sbin:/usr/bin:/usr/sbin. When I login as user1 and try echo $path it is giving some other path. From which file it is getting this path? .In /etc/login.defs also the path is same as in /etc/profile.

This discussion is locked

All Comments