From 26c765aa31039abfbca2b7c81fed8404ff9bbf5a Mon Sep 17 00:00:00 2001 From: rwatson Date: Tue, 7 Mar 2000 18:52:37 +0000 Subject: [PATCH] There is nothing more annoying than su'ing to root and discovering that even simple things like md5 and ping aren't in your path. This patch moves the custom root-path setting from .login to .cshrc, so that users who su to root get a decent (and consistent) path. An appeal to change /etc/login.conf to provide a decent path for all users seems to have been vetoed for the time being. As a result, users will still, by default, not find ping or md5 in their path. However, at least root gets a decent default now. Reviewed by: asmodai Approved by: jkh --- etc/root/dot.cshrc | 3 +++ etc/root/dot.login | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/root/dot.cshrc b/etc/root/dot.cshrc index 7b66bd1b559..38a71cfbcbf 100644 --- a/etc/root/dot.cshrc +++ b/etc/root/dot.cshrc @@ -8,6 +8,9 @@ alias la ls -a alias lf ls -FA alias ll ls -lA +set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin /usr/X11R6/bin $HOME/bin) +setenv MANPATH "/usr/share/man:/usr/X11R6/man:/usr/local/man" + setenv PAGER more setenv BLOCKSIZE K diff --git a/etc/root/dot.login b/etc/root/dot.login index 9d9d3a50fda..659db13721f 100644 --- a/etc/root/dot.login +++ b/etc/root/dot.login @@ -3,9 +3,6 @@ # csh .login file # -set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin /usr/X11R6/bin $HOME/bin) -setenv MANPATH "/usr/share/man:/usr/X11R6/man:/usr/local/man" - # Interviews settings #setenv CPU "FREEBSD" #set path = ($path /usr/local/interviews/bin/$CPU) -- 2.45.2