Skip site navigation (1)Skip section navigation (2)
Date:      23 Feb 2001 10:56:17 -0500
From:      Lowell Gilbert <lowell@world.std.com>
To:        freebsd-questions@freebsd.org, akadanak@kc.rr.com
Subject:   Re: CLICOLOR
Message-ID:  <44bsrt1jha.fsf@lowellg.ne.mediaone.net>
In-Reply-To: akadanak@kc.rr.com's message of "23 Feb 2001 15:29:31 %2B0100"
References:  <3A9667F9.F68612CF@i-clue.de> <NEBBKCKCKLNLIOPJGMEAMEDPCFAA.akadanak@kc.rr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
akadanak@kc.rr.com (Dana) writes:

> Yeah, that did it. I man'd all over the place
> but didn't think of man csh. But that only works
> until the next reboot. So I put it in .cshrc 
> and now it is permanent. 
> 
> But now I am thinking, what if I have 1,000 accounts.
> There must be a way to set this globally.

Sure.  Go back to 'man csh':

       A login shell begins by executing commands from the system
       files /etc/csh.cshrc and /etc/csh.login.  It then executes
       commands  from  files  in the user's home directory: first
       ~/.tcshrc (+) or, if ~/.tcshrc  is  not  found,  ~/.cshrc,
       then  ~/.history (or the value of the histfile shell vari-
       able), then ~/.login, and finally ~/.cshdirs (or the value
       of  the  dirsfile shell variable) (+).  The shell may read
       /etc/csh.login before instead of after /etc/csh.cshrc, and
       ~/.login before instead of after ~/.tcshrc or ~/.cshrc and
       ~/.history, if so compiled; see the  version  shell  vari-
       able. (+)

       Non-login shells read only /etc/csh.cshrc and ~/.tcshrc or
       ~/.cshrc on startup.

Of course, this only covers csh, and if you had 1000 users, sure some
would want a saner programming shell.  You'd need to do the equivalent
for other shells as well.

Alternatively, you can use login.conf to set environment variables.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44bsrt1jha.fsf>