Quote:
|
Originally Posted by confusednewuser
editing the .tcshrc for every user is what i'm currently doing. but this seems a bad solution if, for example on a network, you had hundreds of users and you wanted to add one new thing to their path without changing their current .tcshrc.
hence i'm sure there must be a single file somewhere that allows me to set the path for all users.
does anyone know if what i'm saying is right and if so, what is this file i must edit
|
Hi Confusednewuser!
I don't know tcshrc, but let's assume that basrc follows similar principles. (Instead of bashrc, replace with tcshrc!)
This is what every users .bashrc file contains. Note /etc/bashrc is a parameters file common to all users:
======================
root:merlin:/root: # cat .bashrc
======================
# .bashrc
# User specific aliases and functions
. . . . .
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
=======================
What you could do is:
1) in the if-statement, test:
if [the /etc/bashrc is available from a central server]; if so then include its values using, ". remote:/etc/bashrc"
or:
2) you could copy remote:/etc/bashrc into local:/etc/bashrc on bootup of each local machine. Add this copy statement to /etc/init.d/rc.local.
This approach still requires that you edit each machine. But only once.
Hope this is usefull!