Project

General

Profile

Actions

Submit #3220

closed

[PATCH] use $PATH set by login.conf

Added by Anonymous about 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
01/13/2020
Due date:
06/11/2020
% Done:

100%

Estimated time:

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
-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
--
a/share/skel/dot.cshrc
+++ b/share/skel/dot.cshrc
@ -13,7 +13,7 @ alias ll ls -lAF

  1. These are normally set through /etc/login.conf. You may override them here
  2. 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)
  3. setenv BLOCKSIZE K
  4. A righteous umask
  5. 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 @ #
  6. see also sh(1), environ(7). #

    # remove /usr/games if you want
    PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/pkg/sbin:/usr/pkg/bin:$HOME/bin; export PATH
  7. Setting TERM is normally done through /etc/ttys. Do only override
  8. if you're sure that you'll never log in via telnet or xterm or a
  9. serial line.
    --
    2.24.1
Actions #1

Updated by deef almost 4 years ago

  • Due date set to 06/11/2020
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Thank you.

Changes partially imported with commit fbed7187+. Removal of /usr/pkg from PATH is planned as a part of other maintenance work.

Actions

Also available in: Atom PDF