Home | History | Annotate | only in /src/etc/root
History log of /src/etc/root
RevisionDateAuthorComments
 1.5 30-Aug-2022  riastradh /root: Install .cshrc and .profile links with the same mode.

Previously we would:

1. Install /root/.cshrc and /root/.profile with mode FILESMODE=644 as
requested in src/etc/root/Makefile and as echoed in
/etc/mtree/special.

2. Create hard links at /.cshrc and /.profile through CONFIGLINKS.

3. Because LINKSMODE was unset and defaults to NOBINMODE=444, change
the mode to 444.

This scenario is confusing, and mtree objects to it, which is bad for
warning fatigue in a security-relevant mechanism. (There are also
several other files mtree objects to out of the box -- we should fix
those too.)

With this change we install the links with the same mode as the
original files, in agreement with the mtree. The files, .cshrc and
.profile, are intended to be editable configuration files, so 644
makes sense while 444 makes no sense and gets in the way of editors
like vi.

Discussed on tech-userlevel:
https://mail-index.netbsd.org/tech-userlevel/2022/08/29/msg013498.html

XXX pullup-8
XXX pullup-9
 1.4 17-Nov-2012  uwe branches: 1.4.24; 1.4.34;
We don't need to include <bsd.prog.mk> to install a few config files
just <bsd.files.mk> and <bsd.links.mk> is enough.

Noticed because <bsd.prog.mk> sets LINKSMODE to BINMODE and that does
the wrong thing at least for unprivileged builds.
 1.3 05-Feb-2010  roy branches: 1.3.6; 1.3.8; 1.3.12;
Move the emergancy terminfo database from /root to /rescue.
 1.2 04-Feb-2010  roy Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.
 1.1 16-May-2004  lukem Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.
 1.3.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.3.8.1 28-Aug-2016  bouyer Pull up following revision(s) (requested by uwe in ticket #1368):
etc/root/Makefile: revision 1.4
We don't need to include <bsd.prog.mk> to install a few config files
just <bsd.files.mk> and <bsd.links.mk> is enough.
Noticed because <bsd.prog.mk> sets LINKSMODE to BINMODE and that does
the wrong thing at least for unprivileged builds.
 1.3.6.1 16-Jan-2013  yamt sync with (a bit old) head
 1.4.34.1 22-Feb-2023  martin Pull up following revision(s) (requested by riastradh in ticket #1604):

etc/ssh/Makefile: revision 1.4
usr.bin/mail/Makefile: revision 1.41
external/ibm-public/postfix/etc/Makefile: revision 1.2
etc/bluetooth/Makefile: revision 1.6
crypto/external/bsd/openssh/bin/Makefile: revision 1.5
etc/root/Makefile: revision 1.5
etc/iscsi/Makefile: revision 1.4

/root: Install .cshrc and .profile links with the same mode.

Previously we would:

1. Install /root/.cshrc and /root/.profile with mode FILESMODE=644 as
requested in src/etc/root/Makefile and as echoed in
/etc/mtree/special.
2. Create hard links at /.cshrc and /.profile through CONFIGLINKS.
3. Because LINKSMODE was unset and defaults to NOBINMODE=444, change
the mode to 444.

This scenario is confusing, and mtree objects to it, which is bad for
warning fatigue in a security-relevant mechanism. (There are also
several other files mtree objects to out of the box -- we should fix
those too.)

With this change we install the links with the same mode as the
original files, in agreement with the mtree. The files, .cshrc and
.profile, are intended to be editable configuration files, so 644
makes sense while 444 makes no sense and gets in the way of editors
like vi.

Discussed on tech-userlevel:
https://mail-index.netbsd.org/tech-userlevel/2022/08/29/msg013498.html

etc: Fix permissions of various editable configuration files.

This way they match the mtree and make sense and don't cause editors
to ask to override read-only files when editing them.

Exception: Not sure /etc/bluetooth/protocols makes as much sense to
edit, but the mtree says 644, so if you want to change it, make sure
to change it in both places -- Makefile and mtree.

/etc/ssh: Install ssh_known_hosts with mode 644.
Makes it agree with the mtree and more convenient for admin to edit.
 1.4.24.1 22-Feb-2023  martin Pull up following revision(s) (requested by riastradh in ticket #1800):

etc/ssh/Makefile: revision 1.4
usr.bin/mail/Makefile: revision 1.41
external/ibm-public/postfix/etc/Makefile: revision 1.2
etc/bluetooth/Makefile: revision 1.6
crypto/external/bsd/openssh/bin/Makefile: revision 1.5
etc/root/Makefile: revision 1.5
etc/iscsi/Makefile: revision 1.4

/root: Install .cshrc and .profile links with the same mode.

Previously we would:

1. Install /root/.cshrc and /root/.profile with mode FILESMODE=644 as
requested in src/etc/root/Makefile and as echoed in
/etc/mtree/special.
2. Create hard links at /.cshrc and /.profile through CONFIGLINKS.
3. Because LINKSMODE was unset and defaults to NOBINMODE=444, change
the mode to 444.

This scenario is confusing, and mtree objects to it, which is bad for
warning fatigue in a security-relevant mechanism. (There are also
several other files mtree objects to out of the box -- we should fix
those too.)

With this change we install the links with the same mode as the
original files, in agreement with the mtree. The files, .cshrc and
.profile, are intended to be editable configuration files, so 644
makes sense while 444 makes no sense and gets in the way of editors
like vi.

Discussed on tech-userlevel:
https://mail-index.netbsd.org/tech-userlevel/2022/08/29/msg013498.html

etc: Fix permissions of various editable configuration files.

This way they match the mtree and make sense and don't cause editors
to ask to override read-only files when editing them.

Exception: Not sure /etc/bluetooth/protocols makes as much sense to
edit, but the mtree says 644, so if you want to change it, make sure
to change it in both places -- Makefile and mtree.

/etc/ssh: Install ssh_known_hosts with mode 644.
Makes it agree with the mtree and more convenient for admin to edit.
 1.30 11-Jan-2025  tsutsui Use https:// for (commented out) PKG_PATH as dot.profile.
 1.29 02-Jul-2020  jdolecek branches: 1.29.8;
fix incomplete gnu/ deletion - PR misc/55444 by Jim Bernard
 1.28 04-Dec-2019  mrg remove no longer existing gnu/* from cdpath.
 1.27 01-Mar-2018  snj branches: 1.27.4;
/usr/X11R6 has been empty on most NetBSD installations since 2008,
and the last few straggling ports dumped it in 2015. It's time to
prune references to /usr/X11R6 from our config files.
 1.26 07-Dec-2017  jmcneill Update example PKG_PATH entry to use the CDN frontend, use uname -p instead
of uname -m for processor subdirectory, and derive the OS release from
uname -r.
 1.25 30-Nov-2014  riz branches: 1.25.8;
Freshen up the commented-out suggested PKG_PATH a bit.
 1.24 11-Mar-2012  he branches: 1.24.12;
Point first to 6.0 packages, then to packages for 5.1 or 5.0.
The latter have reduced usefullness in -current or netbsd-6 until
we have a compat50 package.
 1.23 11-Mar-2012  he Can't use Bourne shell syntax here... (Even in comments, for PKG_PATH.)
 1.22 21-Jun-2011  erh branches: 1.22.2; 1.22.4;
There is no .../5.99 path to use for PKG_PATH, so change it to 5.1 instead.
Also refer the reader to pkg_install.conf as an alternative.
 1.21 26-Aug-2009  tsutsui branches: 1.21.4;
netbsd.org -> NetBSD.org for URLs.
 1.20 15-Feb-2009  erh Add "/pub" to the PKG_PATH lines in the default .cshrc and .profile so they
actually have a chance of working. Also provide an example of how to include
more than one path.
 1.19 19-Nov-2008  cube branches: 1.19.2;
Sprinkle /usr/X11R7 where relevant. rc.d/x{fs,dm} are left to be done.
 1.18 11-Nov-2008  agc Fix csh syntax in last
 1.17 10-Nov-2008  joerg Add commented out example of PKG_PATH to make using binary packages
easier.
 1.16 31-Aug-2006  hubertf branches: 1.16.18; 1.16.26;
Sync order with src/etc/skel/dot.cshrc, no functional change.
 1.15 02-Sep-2003  cjep branches: 1.15.12;
Now that we have nuked /sys, change the cdpath to contain /usr/src/sys
rather than /sys.
 1.14 01-Mar-2001  tv Also make hup work in single user; revert dot.cshrc to atatat's version,
and make equivalent for dot.shrc.
 1.13 01-Mar-2001  tv Use "head -1" as a generic way to snarf the first line of the pid file;
also works with the existing alias in dot.shrc.
 1.12 01-Mar-2001  atatat Teach the hup alias to deal with sendmail's pid file
 1.11 06-May-2000  frueauf Since src/gnu/usr.sbin is populated add it to the cdpath.
 1.10 15-Jun-1999  abs Don't don't don't assume /usr/bin/id is always present. Loses in single user.
 1.9 10-Jan-1998  perry branches: 1.9.2;
fix root .cshrc so that it ends prompts with a '#' when invoked by root
and a '%' when invoked by non-root.
Submitted by riz@beast.boogers.sf.ca.us in pr-4248
 1.8 17-Dec-1997  mrg fix paths: remove old cruft and add pkg & X11R6
 1.7 28-Oct-1997  mrg RCSid police. fix pr#4307 from Eric Haszlakiewicz: csh aliases broken with.
 1.6 15-Feb-1997  mikel branches: 1.6.2;
cleanup Lite-1 merge
 1.5 30-Sep-1996  christos Fix PR/1024: Add /usr/local/{s,}bin to the path and the gnu sources to
cdpath. I think that adding /usr/local to the path is ok: everyone does
it, and it is part of mtree.
 1.4 24-Dec-1994  cgd get dot out of root's path.
 1.3 12-Dec-1993  mycroft Set 'BLOCKSIZE' variable (a la 4.4) rather than aliasing a bunch of things.
 1.2 06-Jun-1993  cgd remove /usr/local and /usr/contrib from root's path
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 15-Feb-1997  mikel import 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.2.1 28-Oct-1997  mellon Pull rev 1.7 up from trunk (mrg)
 1.9.2.1 23-Jun-1999  perry pullup 1.9->1.10 (David Brownlee): Check for /usr/bin/id before using
 1.15.12.1 02-Sep-2006  riz Pull up following revision(s) (requested by hubertf in ticket #104):
etc/root/dot.cshrc: revision 1.16
Sync order with src/etc/root/dot.cshrc, no functional change.
 1.16.26.3 23-Feb-2009  snj Apply patch (requested by erh in ticket #463):
Fix commented out PKG_PATH to be something that has a chance of working.
 1.16.26.2 20-Nov-2008  snj Pull up following revision(s) (requested by cube in ticket #96):
etc/login.conf: revision 1.3
etc/skel/dot.profile: revision 1.5
etc/root/dot.profile: revision 1.20
etc/skel/dot.cshrc: revision 1.4
etc/root/dot.cshrc: revision 1.19
Sprinkle /usr/X11R7 where relevant. rc.d/x{fs,dm} are left to be done.
 1.16.26.1 12-Nov-2008  snj Apply patch (requested by joerg in ticket #45):
Add commented out example of PKG_PATH to make using binary packages
easier.
 1.16.18.1 17-Jan-2009  mjf Sync with HEAD.
 1.19.2.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.21.4.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.22.4.1 17-Mar-2012  bouyer Pull up following revision(s) (requested by he in ticket #109):
etc/root/dot.cshrc: revision 1.23
etc/root/dot.cshrc: revision 1.24
etc/root/dot.profile: revision 1.26
Can't use Bourne shell syntax here... (Even in comments, for PKG_PATH.)
Point first to 6.0 packages, then to packages for 5.1 or 5.0.
The latter have reduced usefullness in -current or netbsd-6 until
we have a compat50 package.
 1.22.2.1 17-Apr-2012  yamt sync with head
 1.24.12.1 01-Dec-2014  martin Pull up following revision(s) (requested by riz in ticket #288):
etc/root/dot.cshrc: revision 1.25
etc/root/dot.profile: revision 1.27
Freshen up the commented-out suggested PKG_PATH a bit.
 1.25.8.2 12-Apr-2018  martin Pull up following revision(s) (requested by snj in ticket #742):

etc/root/dot.profile: revision 1.30
etc/skel/dot.profile: revision 1.10
etc/login.conf: revision 1.7
etc/root/dot.cshrc: revision 1.27
share/man/man7/hier.7: revision 1.129 (patch)
etc/man.conf: revision 1.37
etc/skel/dot.cshrc: revision 1.8

/usr/X11R6 has been empty on most NetBSD installations since 2008,
and the last few straggling ports dumped it in 2015. It's time to
prune references to /usr/X11R6 from our config files.

remove reference to /usr/X11R6
 1.25.8.1 08-Dec-2017  msaitoh Pull up following revision(s) (requested by jmcneill in ticket #430):
etc/root/dot.cshrc: revision 1.26
etc/root/dot.profile: revision 1.29
Update example PKG_PATH entry to use the CDN frontend, use uname -p instead
of uname -m for processor subdirectory, and derive the OS release from
uname -r.
 1.27.4.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.29.8.1 02-Aug-2025  perseant Sync with HEAD
 1.3 28-Oct-1997  mrg RCSid police. fix pr#4307 from Eric Haszlakiewicz: csh aliases broken with.
 1.2 22-May-1996  mrg don't put bogus info in here.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.10 08-Mar-2016  mlelstv tset was useful for fixed terminals and rarely changing configurations.
But for current software terminal emulators and varying network
logins it's just confusing.

No longer run tset when logging in.

ok @martin
 1.9 15-May-2009  ad Clearer wording when nagging about root logins.
 1.8 19-Feb-2000  mycroft Make the tset stuff actually set the environment variables again.
Someone was on crack.
 1.7 19-Feb-2000  mycroft Simplify the tset crap, and do not set $HOME gratuitously.
 1.6 16-Feb-2000  jwise 1.) bring over the second half of David Brownlee's change to dot.login --
don't query the user for terminal type if the type is not `unknown'

2.) change this a little in both the csh and the [k]sh cases -- do call
tset(1) even if the terminal type is known (so that TERMCAP is set
properly, but don't have it query the user.
 1.5 15-Feb-2000  abs Only display the 'use su' message in the non 'su -' case.
Update the 'use su' message (text from Miles Nordin).
If the terminal type is !unknown, do not prompt for it.
 1.4 28-Oct-1997  mrg branches: 1.4.2;
RCSid police. fix pr#4307 from Eric Haszlakiewicz: csh aliases broken with.
 1.3 15-Feb-1997  mikel cleanup Lite-1 merge
 1.2 24-Mar-1994  jtc Changed .login (csh) and .profile (sh) to be consistant with each other.
In particular, explicit setting of erase and kill chars via stty has been
removed.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 15-Feb-1997  mikel import 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.4.2.2 22-Feb-2000  he Pull up revisions 1.6-1.8 (requested by jwise):
Implement better handling of the SU_FROM environment variable.
 1.4.2.1 18-Feb-2000  he Pull up revision 1.5 (requested by abs):
Have su set SU_FROM environment variable, and use to avoid
incorrect 'use su' warning in root's .login.
Also do not prompt for terminal type unless it is unknown.
 1.35 25-Dec-2022  nia As with normal users, include /usr/games in the default PATH of root
 1.34 21-Jul-2022  kre branches: 1.34.2;

Get rid of the (insulting)
We recommend that you create a non-root account...
message from single user mode shell startups.
 1.33 09-Jul-2022  kre If /rescue is at the head of $PATH (which is how it starts out in /rescue/sh
unless changed by something - and has been since NetBSD 3) don't blindly
simply change it to a PATH that doesn't have /rescue in it at all.

This doesn't solve the "/rescue/tar execs /usr/bin/gzip" problem completely,
as if PATH is in the environment when /rescue/sh is started, that one will
override the shell's built in PATH, but this is better than nothing.
 1.32 24-Aug-2020  nia uname -p, pointed out by various
 1.31 15-Aug-2020  nia Use sysctl -n hw.machine_arch so this works on e.g. aarch64

Ues HTTPS
 1.30 01-Mar-2018  snj /usr/X11R6 has been empty on most NetBSD installations since 2008,
and the last few straggling ports dumped it in 2015. It's time to
prune references to /usr/X11R6 from our config files.
 1.29 07-Dec-2017  jmcneill Update example PKG_PATH entry to use the CDN frontend, use uname -p instead
of uname -m for processor subdirectory, and derive the OS release from
uname -r.
 1.28 08-Mar-2016  mlelstv branches: 1.28.8;
tset was useful for fixed terminals and rarely changing configurations.
But for current software terminal emulators and varying network
logins it's just confusing.

No longer run tset when logging in.

ok @martin
 1.27 30-Nov-2014  riz Freshen up the commented-out suggested PKG_PATH a bit.
 1.26 11-Mar-2012  he branches: 1.26.12;
Point first to 6.0 packages, then to packages for 5.1 or 5.0.
The latter have reduced usefullness in -current or netbsd-6 until
we have a compat50 package.
 1.25 21-Jun-2011  erh branches: 1.25.2; 1.25.4;
There is no .../5.99 path to use for PKG_PATH, so change it to 5.1 instead.
Also refer the reader to pkg_install.conf as an alternative.
 1.24 27-Dec-2010  christos branches: 1.24.4;
`` -> $()
 1.23 26-Aug-2009  tsutsui netbsd.org -> NetBSD.org for URLs.
 1.22 15-May-2009  ad Clearer wording when nagging about root logins.
 1.21 15-Feb-2009  erh Add "/pub" to the PKG_PATH lines in the default .cshrc and .profile so they
actually have a chance of working. Also provide an example of how to include
more than one path.
 1.20 19-Nov-2008  cube branches: 1.20.2;
Sprinkle /usr/X11R7 where relevant. rc.d/x{fs,dm} are left to be done.
 1.19 10-Nov-2008  joerg Add commented out example of PKG_PATH to make using binary packages
easier.
 1.18 22-Feb-2005  sketch branches: 1.18.26; 1.18.34;
Use hostname(1) in preference to uname(1) in case /usr isn't mounted.
 1.17 22-Feb-2005  sketch Revision 1.2 of dot.shrc changed the prompt to use a HOST variable without
setting it anywhere, so set it here.
 1.16 10-Oct-2002  abs If we are going to point ENV at .shrc, and link this in as /.profile as well
as /root/.profile, then use /root/.shrc rather than $HOME/.shrc otherwise
single user mode tries to use /.shrc...
 1.15 19-Feb-2000  mycroft branches: 1.15.6;
Make the tset stuff actually set the environment variables again.
Someone was on crack.
 1.14 19-Feb-2000  mycroft Simplify the tset crap, and do not set $HOME gratuitously.
 1.13 16-Feb-2000  jwise 1.) bring over the second half of David Brownlee's change to dot.login --
don't query the user for terminal type if the type is not `unknown'

2.) change this a little in both the csh and the [k]sh cases -- do call
tset(1) even if the terminal type is known (so that TERMCAP is set
properly, but don't have it query the user.
 1.12 16-Feb-2000  jwise Port to [k]sh(1) startup files David Brownlee's improvement from
cvs rdiff -r1.4 -r1.5 basesrc/etc/root/dot.login

As there, text is from Miles Nordin.
 1.11 05-Nov-1999  mycroft branches: 1.11.2;
(Ab?)use some sh(1) features:
* Put the aliases in a separate file, referenced by $ENV, so that they're
present in subshells.
* Do the same to make `set -o emacs' happen automatically in interactive
shells. (Yay, line editing by default!)
* Use `export FOO=bar' syntax, as it's shorter and other sh(1)-like shells
all support it these days.
 1.10 04-Apr-1999  mycroft branches: 1.10.2;
Avoid using id(1), as this loses when /usr isn't mounted.
 1.9 30-Mar-1999  hubertf branches: 1.9.2;
Add hup, ll and x shell functions similar to the aliases in dot.cshrc
plus set the prompt. Tested with /bin/sh and /bin/ksh.
 1.8 17-Jan-1998  thorpej Sync PATH with our csh counterpart.
 1.7 28-Oct-1997  mrg RCSid police. fix pr#4307 from Eric Haszlakiewicz: csh aliases broken with.
 1.6 15-Feb-1997  mikel cleanup Lite-1 merge
 1.5 24-Dec-1994  cgd get dot out of root's path.
 1.4 26-Mar-1994  jtc The contents of this file are evaluated by root, users without a home dir,
and even by the shell in single user mode. This change makes it work in
all of those circumstances, though probably not optimally.

It is likely that something better will be checked in after all of the
outstanding issues are resolved, but I have to check in something that
works before this week's tarballs are created.
 1.3 24-Mar-1994  jtc Changed .login (csh) and .profile (sh) to be consistant with each other.
In particular, explicit setting of erase and kill chars via stty has been
removed.
 1.2 06-Jun-1993  cgd remove /usr/local and /usr/contrib from root's path
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 15-Feb-1997  mikel import 4.4BSD-Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9.2.2 22-Feb-2000  he Pull up revisions 1.12-1.15 (via patch, requested by jwise):
Implement better handling of the SU_FROM environment variable.
 1.9.2.1 19-Apr-1999  mycroft Pull up rev 1.10:
Avoid using id(1), as this loses when /usr isn't mounted.
 1.10.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.11.2.2 05-Nov-1999  mycroft (Ab?)use some sh(1) features:
* Put the aliases in a separate file, referenced by $ENV, so that they're
present in subshells.
* Do the same to make `set -o emacs' happen automatically in interactive
shells. (Yay, line editing by default!)
* Use `export FOO=bar' syntax, as it's shorter and other sh(1)-like shells
all support it these days.
 1.11.2.1 05-Nov-1999  mycroft file dot.profile was added on branch comdex-fall-1999 on 1999-11-05 11:30:14 +0000
 1.15.6.1 07-Dec-2002  he Pull up revision 1.16 (requested by abs in ticket #909):
Use /root instead of ${HOME}, so that $ENV points to the
right place when in single user mode.
 1.18.34.3 23-Feb-2009  snj Apply patch (requested by erh in ticket #463):
Fix commented out PKG_PATH to be something that has a chance of working.
 1.18.34.2 20-Nov-2008  snj Pull up following revision(s) (requested by cube in ticket #96):
etc/login.conf: revision 1.3
etc/skel/dot.profile: revision 1.5
etc/root/dot.profile: revision 1.20
etc/skel/dot.cshrc: revision 1.4
etc/root/dot.cshrc: revision 1.19
Sprinkle /usr/X11R7 where relevant. rc.d/x{fs,dm} are left to be done.
 1.18.34.1 12-Nov-2008  snj Apply patch (requested by joerg in ticket #45):
Add commented out example of PKG_PATH to make using binary packages
easier.
 1.18.26.1 17-Jan-2009  mjf Sync with HEAD.
 1.20.2.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.24.4.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.25.4.1 17-Mar-2012  bouyer Pull up following revision(s) (requested by he in ticket #109):
etc/root/dot.cshrc: revision 1.23
etc/root/dot.cshrc: revision 1.24
etc/root/dot.profile: revision 1.26
Can't use Bourne shell syntax here... (Even in comments, for PKG_PATH.)
Point first to 6.0 packages, then to packages for 5.1 or 5.0.
The latter have reduced usefullness in -current or netbsd-6 until
we have a compat50 package.
 1.25.2.1 17-Apr-2012  yamt sync with head
 1.26.12.1 01-Dec-2014  martin Pull up following revision(s) (requested by riz in ticket #288):
etc/root/dot.cshrc: revision 1.25
etc/root/dot.profile: revision 1.27
Freshen up the commented-out suggested PKG_PATH a bit.
 1.28.8.2 12-Apr-2018  martin Pull up following revision(s) (requested by snj in ticket #742):

etc/root/dot.profile: revision 1.30
etc/skel/dot.profile: revision 1.10
etc/login.conf: revision 1.7
etc/root/dot.cshrc: revision 1.27
share/man/man7/hier.7: revision 1.129 (patch)
etc/man.conf: revision 1.37
etc/skel/dot.cshrc: revision 1.8

/usr/X11R6 has been empty on most NetBSD installations since 2008,
and the last few straggling ports dumped it in 2015. It's time to
prune references to /usr/X11R6 from our config files.

remove reference to /usr/X11R6
 1.28.8.1 08-Dec-2017  msaitoh Pull up following revision(s) (requested by jmcneill in ticket #430):
etc/root/dot.cshrc: revision 1.26
etc/root/dot.profile: revision 1.29
Update example PKG_PATH entry to use the CDN frontend, use uname -p instead
of uname -m for processor subdirectory, and derive the OS release from
uname -r.
 1.34.2.1 27-Jun-2023  martin Pull up following revision(s) (requested by nia in ticket #217):

etc/root/dot.profile: revision 1.35

As with normal users, include /usr/games in the default PATH of root
 1.2 15-Feb-1997  mikel cleanup Lite-1 merge
 1.1 15-Feb-1997  mikel branches: 1.1.1;
Initial revision
 1.1.1.1 15-Feb-1997  mikel import 4.4BSD-Lite
 1.9 21-Jul-2022  kre Cleanup the "hup" function - quote properly, and test for the pid
file existing (with something in it) before simply using it, so the
error message can be controlled, rather than just sh's cannot open file msg.
 1.8 24-Nov-2007  pavel branches: 1.8.4;
Source /etc/shrc only if it exists. Inspired by PR install/37209.
 1.7 14-Sep-2006  pavel branches: 1.7.8;
Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.
 1.6 01-Apr-2001  toddpw Fix syntax error in r1.5 -- semicolon needed before closing brace on same line.
 1.5 01-Mar-2001  tv Also make hup work in single user; revert dot.cshrc to atatat's version,
and make equivalent for dot.shrc.
 1.4 01-Mar-2001  tv Use "head -1" as a generic way to snarf the first line of the pid file;
also works with the existing alias in dot.shrc.
 1.3 14-May-2000  simonb Add RCSid.
 1.2 14-May-2000  mycroft Minor change:
Don't use a backquote expression to get the host name; use a pattern
substitution on lop-nor.ihack.net instead.
 1.1 05-Nov-1999  mycroft branches: 1.1.2; 1.1.4;
(Ab?)use some sh(1) features:
* Put the aliases in a separate file, referenced by $ENV, so that they're
present in subshells.
* Do the same to make `set -o emacs' happen automatically in interactive
shells. (Yay, line editing by default!)
* Use `export FOO=bar' syntax, as it's shorter and other sh(1)-like shells
all support it these days.
 1.1.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.1.2.2 05-Nov-1999  mycroft (Ab?)use some sh(1) features:
* Put the aliases in a separate file, referenced by $ENV, so that they're
present in subshells.
* Do the same to make `set -o emacs' happen automatically in interactive
shells. (Yay, line editing by default!)
* Use `export FOO=bar' syntax, as it's shorter and other sh(1)-like shells
all support it these days.
 1.1.2.1 05-Nov-1999  mycroft file dot.shrc was added on branch comdex-fall-1999 on 1999-11-05 11:30:14 +0000
 1.7.8.1 09-Jan-2008  matt sync with HEAD
 1.8.4.2 24-Nov-2007  pavel Source /etc/shrc only if it exists. Inspired by PR install/37209.
 1.8.4.1 24-Nov-2007  pavel file dot.shrc was added on branch mjf-devfs on 2007-11-24 11:14:42 +0000
 1.2 05-Feb-2010  roy Move the emergancy terminfo database from /root to /rescue.
 1.1 04-Feb-2010  roy Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.
 1.2 05-Feb-2010  roy Move the emergancy terminfo database from /root to /rescue.
 1.1 04-Feb-2010  roy Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.

RSS XML Feed