From owner-svn-doc-head@freebsd.org Mon Sep 16 01:55:48 2019 Return-Path: Delivered-To: svn-doc-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A0538EF3CE; Mon, 16 Sep 2019 01:55:48 +0000 (UTC) (envelope-from loader@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Wq8N3lRqz3ysV; Mon, 16 Sep 2019 01:55:48 +0000 (UTC) (envelope-from loader@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 642C7193D2; Mon, 16 Sep 2019 01:55:48 +0000 (UTC) (envelope-from loader@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x8G1tm7o042017; Mon, 16 Sep 2019 01:55:48 GMT (envelope-from loader@FreeBSD.org) Received: (from loader@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x8G1tmC3042016; Mon, 16 Sep 2019 01:55:48 GMT (envelope-from loader@FreeBSD.org) Message-Id: <201909160155.x8G1tmC3042016@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: loader set sender to loader@FreeBSD.org using -f From: Fukang Chen Date: Mon, 16 Sep 2019 01:55:48 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r53406 - head/en_US.ISO8859-1/books/handbook/security X-SVN-Group: doc-head X-SVN-Commit-Author: loader X-SVN-Commit-Paths: head/en_US.ISO8859-1/books/handbook/security X-SVN-Commit-Revision: 53406 X-SVN-Commit-Repository: doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Sep 2019 01:55:48 -0000 Author: loader Date: Mon Sep 16 01:55:47 2019 New Revision: 53406 URL: https://svnweb.freebsd.org/changeset/doc/53406 Log: Update the Process Accounting section. PR: 202203 Reviewed by: ian Submitted by: ian Differential Revision: https://reviews.freebsd.org/D20878 Modified: head/en_US.ISO8859-1/books/handbook/security/chapter.xml Modified: head/en_US.ISO8859-1/books/handbook/security/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/handbook/security/chapter.xml Sat Sep 14 18:40:11 2019 (r53405) +++ head/en_US.ISO8859-1/books/handbook/security/chapter.xml Mon Sep 16 01:55:47 2019 (r53406) @@ -3567,10 +3567,23 @@ UWWemqWuz3lAZuORQ9KX Before using process accounting, it must be enabled using the following commands: - &prompt.root; touch /var/account/acct -&prompt.root; chmod 600 /var/account/acct -&prompt.root; accton /var/account/acct -&prompt.root; sysrc accounting_enable=yes + &prompt.root; sysrc accounting_enable=yes +&prompt.root; service accounting start + + The accounting information is stored in files located in + /var/account, which is automatically created, + if necessary, the first time the accounting service starts. + These files contain sensitive information, including all the + commands issued by all users. Write access to the files is + limited to root, + and read access is limited to root and members of the + wheel group. + To also prevent members of wheel from reading the files, + change the mode of the /var/account + directory to allow access only by root. Once enabled, accounting will begin to track information such as CPU statistics and executed