Submit #3220
closed[PATCH] use $PATH set by login.conf
100%
Description
---
etc/login.conf | 2
etc/root/dot.cshrc | 2 -
etc/root/dot.profile | 2 --
share/skel/dot.cshrc | 2 +
share/skel/dot.profile | 4 ---
5 files changed, 2 insertions(), 10 deletions(-)
diff --git a/etc/login.conf b/etc/login.conf
index 924c977c70..1ac23f1026 100644
--- a/etc/login.conf
++ b/etc/login.conf@ -27,7 +27,7
@ default:\
:copyright=/etc/COPYRIGHT:\
:welcome=/etc/motd:\
:setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\
- :path=/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin /usr/pkg/sbin /usr/pkg/bin ~/bin:\
:path=/sbin /bin /usr/sbin /usr/bin /usr/games /raven/sbin /raven/bin /usr/local/sbin /usr/local/bin ~/bin:\
:nologin=/var/run/nologin:\
:cputime=unlimited:\
:datasize=unlimited:\
diff --git a/etc/root/dot.cshrc b/etc/root/dot.cshrc
index 5fe105df4e..1cc5d4676c 100644
--- a/etc/root/dot.cshrc
+++ b/etc/root/dot.cshrc@ -14,8 +14,6
@ alias ll ls -lA
# A righteous umask
umask 22
set path = (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin /usr/pkg/bin /usr/pkg/sbin /usr/games $HOME/bin)
setenv EDITOR vi
setenv PAGER less
setenv BLOCKSIZE K
diff --git a/etc/root/dot.profile b/etc/root/dot.profile
index aed84137df..ec40124964 100644
--- a/etc/root/dot.profile
+++ b/etc/root/dot.profile@ -1,7 +1,5
@
# $FreeBSD: src/etc/root/dot.profile,v 1.20 1999/08/27 23:24:09 peter Exp $
#PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/pkg/sbin:/usr/pkg/bin a/share/skel/dot.cshrc
-export PATH
HOME=/root
export HOME
TERM=${TERM:-cons25}
diff --git a/share/skel/dot.cshrc b/share/skel/dot.cshrc
index a89117f113..208396a6e0 100644
--
+++ b/share/skel/dot.cshrc@ -13,7 +13,7
@ alias ll ls -lAF
- These are normally set through /etc/login.conf. You may override them here
- if wanted.
-# set path = (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin $HOME/bin)
+# set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /raven/sbin /raven/bin /usr/local/sbin /usr/local/bin $HOME/bin) - setenv BLOCKSIZE K
- A righteous umask
- umask 22
diff --git a/share/skel/dot.profile b/share/skel/dot.profile
index 6e1c04820f..a55b1f0b71 100644
--- a/share/skel/dot.profile
+++ b/share/skel/dot.profile@ -4,10 +4,6
@ # - see also sh(1), environ(7).
#
# remove /usr/games if you wantPATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/pkg/sbin:/usr/pkg/bin:$HOME/bin; export PATH - Setting TERM is normally done through /etc/ttys. Do only override
- if you're sure that you'll never log in via telnet or xterm or a
- serial line.
--
2.24.1