Question Locked

Setting PATH variable in SuSE

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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.

2 replies

by jaqui

PATH= is the command.

and echo $PATH will give the path system variable.
echo $path will give random data from whatever was in the ram space that was allocated by your running echo $path.

GNU/Linux is case sensitive, PATH is different than path.

This discussion is closed to new replies.