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.