Global PATH setting

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Global PATH setting
# 1  
Old 04-04-2001

I am using Solaris 8 and I want to change the PATH setting for all users. I have edited /etc/profile, but when I log in and check the PATH variable, it hasn't changed.

Am I missing something?
# 2  
Old 04-04-2001
It is probably being rewritten in their .profile, .cshrc or .bashrc file. /etc/profile is sourced first, then the $HOME/.profile, then shell specific files.
# 3  
Old 04-04-2001
I checked the users .profile and this is exactly what is happening.

Many thanks!
# 4  
Old 07-20-2001
setting PATH for root

i am running solaris 8 and i have a similar problem. i can edit the .cshrc files for different users to change their PATH, but i want to add other directories to the path for root. however, i can't find a .profile or .cshrc in the / directory. i looked in the /etc/profile file, and there is no entry for PATH. how do i add a directory to the path for root? what about changing the shell of the root from /sbin/sh to /usr/bin/csh?

Thanks in advance for the help.

# 5  
Old 07-20-2001
if you want to create .cshrc for root, just create
the file /.cshrc and change login shell to csh.

# 6  
Old 07-20-2001
Originally posted by yellowfish
if you want to create .cshrc for root, just create
the file /.cshrc and change login shell to csh.

Be careful when chaning root's shell. /usr may not be available at boot time if it is not part of the root filesystem, which would make your shell unavailable. Many machines will refuse to boot properly in this case. Your root shell should also be statically linked to avoid the need to any libs that might be in /usr
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Setting class path

hi , can anybody help me to chage the class path in unix server.. what are the files need to update .... (2 Replies)
Discussion started by: Madhu Siddula
2 Replies

2. UNIX for Dummies Questions & Answers

Is there any $PATH default setting?

This is a very newbie's question: I was trying to add a new version of the same command "blastn", but the old command always shows up first. which blastn /usr/local/bin/blastnThe two versions of the same command "blastn" are located in: which -a blastn /usr/local/bin/blastn... (5 Replies)
Discussion started by: yifangt
5 Replies

3. UNIX for Dummies Questions & Answers

Add directory to a global PATH

Guys, I did a search on this but couldn't find any thing. I need to add /home/scadm/scripts to the PATH. If I do the below it works for the session I'm in. If I close it and reopen it doesnt work. PATH=$PATH\:/home/scadm/scripts ; export PATH I also want this path added to all the... (3 Replies)
Discussion started by: miltonrods
3 Replies

4. UNIX for Advanced & Expert Users

Setting a permanent global variable in unix accessible from any script

Is there anyway in which i can set a permanent global variable in unix, which when initialised with a value and modified during any shell script, would retain its value even if i logout and login I dont know whether i am being able to express my need clearly but basically what i want is a... (3 Replies)
Discussion started by: arindamlive
3 Replies

5. UNIX for Advanced & Expert Users

Setting global variables with BASH/Linux

I am using functions in a script and for some strange reason the EXPORT command doesnt seem to be making my variables global. Anyone got any ideas? I am using one function to pass some output top another using the pipe command, eg Function 1 | Function 2 Function 2 reads the value... (3 Replies)
Discussion started by: gregf
3 Replies

6. UNIX for Dummies Questions & Answers

setting a global variable in script

Hi All, I know to set global variable i can use export .. But take the situation like below .. I want to set a variable in one script and access that in second script i have done like this .. It is not working #!/usr/bin/ksh echo $RISSHI export RISSHI=1 (3 Replies)
Discussion started by: arunkumar_mca
3 Replies

7. Shell Programming and Scripting

Setting path

Hi all, I have a java command in a shell script. When i m executing the command from the prompt its working fine. But when i paste the same command in a shell script and execute the shell script it says path not found. Please help. (5 Replies)
Discussion started by: radhika03
5 Replies

8. UNIX for Dummies Questions & Answers

Setting $PATH for a particular file...????

:) dear members; I am trying to placea directory to keep minor records in particular directories.. rather than just rely on hard links.. I would like to set the $PATH variable so that I can access the directory itself from anywhere; ex./ /tmp or /bin /var... I know how to export enviromental... (4 Replies)
Discussion started by: moxxx68
4 Replies

9. UNIX for Dummies Questions & Answers

setting global variable for all users

hi, i am a newbie unix administrator. i want to set a variable, let's say : alias cls 'clear' But i am not going to add this line in the .login file for every home directory of my 500+ users. pls tell me where should i put this line in, so that all users can use this variable after... (4 Replies)
Discussion started by: champion
4 Replies
Login or Register to Ask a Question