Question

Locked

Setting PATH variable in SuSE

By eldhom ·
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 conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

set path?

by Jaqui In reply to Setting PATH variable in ...

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.

Back to Linux Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums