From nobody Fri Sep 22 12:44:09 2023 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RsX5P6l2Cz4tqLM; Fri, 22 Sep 2023 12:44:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RsX5P60ZSz3KG4; Fri, 22 Sep 2023 12:44:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695386649; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sxUh/GgGhuAncQmL1bTKh/53J49RrKkOVo4BuPXfhs0=; b=ACunMKoKE+Z9Axl07jLmKkkECot8rKGlN4xcuPHWNLd3q9PgkRPpQxGt6LX6A/4RTK4Rwo glLVCDfw4lPjNmIziH/0oq2O+TPs7FPMxdlkfTImvrSdj5+OipW1WDE3POKEnoSxxPlHQS k5gcLK/R14jGAliBdizCnNqo32P2eXljOH+f7AByVwW+TpsvLefIiroRKstaOjRj719oVj t+MmoaHxPLYaHH0CoikpILjIX4wBHIAbylh24CNwtg1hqTfG4K3bYhN4u3C3ky+DOf1PIS 5GPzrNs4H7yq3zuKu97VJwSS9zgDGEcTrP8mqrf8XTtfjnFtL/tZgRWKRUpNFQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695386649; a=rsa-sha256; cv=none; b=KMASd4+PZlIYqWLI1hNc4oPBhLNjG3xhhA7S+c1QGHfHvCpqul74sQ2+Sa1/1pL7582vN7 o1FQdQRWAwl72USD7OJJhH/HkNE2tBbN5CBcQkxNzfsqDMOFqJXIsCLKRYgArFxz01TYx/ 7mxY/CJmaRp8VGLlLieLo6VP6IKfAldXi6Wb3GCeP0jyv6gUFe36ToYVXFagNWb3DzgqZ1 MrJMbSMzGsKYbZBnEDI0Pw8ZhvP7gPE6v2FDWb2RYXN7wgLX8DlWPVGHKmlxJdSrK22YcO Va+srtg3SILkMkGrUbpFpjStgOj9Gif5CwThHVm1LiELr1nUuU9bxCnyRT1HCA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695386649; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sxUh/GgGhuAncQmL1bTKh/53J49RrKkOVo4BuPXfhs0=; b=pL/RsZvSgrbiPrAN4X/qyU/3t8JnrKa+ZbLkG+Bf4R947H4VDmgkEh5UAHA+62fK4CjhnY BQsbMhanSycDxjX6mTRzZmUwkT5E0OWLHAtHFdrgxkFwvvcCzUwEACZ4ANzhwImwZc/e7f /Q/R3L0jSroRaEiJhzRdQmOcnedjASp7/uvZiIaAc9NE18uNMZqgU0qe4spvZV2CTQ18fP EnTClm6TNZg8G6+Xtj7S9qLc4A4wq+PpQr+U5RX1CtEBZ0k5oF+3ZWL7gWeq6z3QeHl7vF 3hRfXHAsxUVXIhI67ATeUO4a53wnnVcD5n8KFE07su82SLzN5EMTOHXcsoo5FA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RsX5P55fpz70N; Fri, 22 Sep 2023 12:44:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38MCi9rt030773; Fri, 22 Sep 2023 12:44:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38MCi9UW030770; Fri, 22 Sep 2023 12:44:09 GMT (envelope-from git) Date: Fri, 22 Sep 2023 12:44:09 GMT Message-Id: <202309221244.38MCi9UW030770@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: 8a43207b6d32 - stable/14 - daemon.8: Document -u sets HOME, USER, and SHELL List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 8a43207b6d32b222f09634e74aa16d90c5ebf976 Auto-Submitted: auto-generated The branch stable/14 has been updated by 0mp: URL: https://cgit.FreeBSD.org/src/commit/?id=8a43207b6d32b222f09634e74aa16d90c5ebf976 commit 8a43207b6d32b222f09634e74aa16d90c5ebf976 Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2023-09-18 18:17:55 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2023-09-22 12:41:28 +0000 daemon.8: Document -u sets HOME, USER, and SHELL Fixes: 6b3ad1d73732 When -u option is used also set USER, HOME and SHELL MFC after: 3 days (cherry picked from commit c1207678f7ebd546a0705dabc3218e49abe06a99) --- usr.sbin/daemon/daemon.8 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/usr.sbin/daemon/daemon.8 b/usr.sbin/daemon/daemon.8 index 5ccf18566240..fce08bc90e62 100644 --- a/usr.sbin/daemon/daemon.8 +++ b/usr.sbin/daemon/daemon.8 @@ -24,7 +24,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd January 14, 2021 +.Dd September 18, 2023 .Dt DAEMON 8 .Os .Sh NAME @@ -176,6 +176,11 @@ Set the title for the daemon process. The default is the daemonized invocation. .It Fl u , Fl -user Ar user Login name of the user to execute the program under. +Environment variables +.Ev HOME , USER , +and +.Ev SHELL +are set accordingly. Requires adequate superuser privileges. .El .Pp