Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Feb 2020 04:27:09 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r357561 - head/usr.bin/login
Message-ID:  <202002050427.0154R9lQ079088@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Wed Feb  5 04:27:08 2020
New Revision: 357561
URL: https://svnweb.freebsd.org/changeset/base/357561

Log:
  login.conf(5): set a default PATH for the daemon class
  
  This is a sensible default used by, e.g., cron(8), and useful if one wanted
  to honor it.
  
  This is a part of D21481.
  
  Submitted by:	Andrew Gierth <andrew_tao173.riddles.org.uk>

Modified:
  head/usr.bin/login/login.conf

Modified: head/usr.bin/login/login.conf
==============================================================================
--- head/usr.bin/login/login.conf	Wed Feb  5 04:17:14 2020	(r357560)
+++ head/usr.bin/login/login.conf	Wed Feb  5 04:27:08 2020	(r357561)
@@ -61,7 +61,13 @@ xuser:\
 	:tc=default:
 staff:\
 	:tc=default:
+
+# This PATH may be clobbered by individual applications.  Notably, by default,
+# rc(8), service(8), and cron(8) will all override it with a default PATH that
+# may not include /usr/local/sbin and /usr/local/bin when starting services or
+# jobs.
 daemon:\
+	:path=/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin:\
 	:mail@:\
 	:memorylocked=128M:\
 	:tc=default:



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