From owner-freebsd-hackers@freebsd.org Sun Feb 2 13:44:01 2020 Return-Path: Delivered-To: freebsd-hackers@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 7B1F522E8DC for ; Sun, 2 Feb 2020 13:44:01 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: from mail-vs1-xe41.google.com (mail-vs1-xe41.google.com [IPv6:2607:f8b0:4864:20::e41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 489XHN37Glz48jg for ; Sun, 2 Feb 2020 13:44:00 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: by mail-vs1-xe41.google.com with SMTP id k188so7239441vsc.8 for ; Sun, 02 Feb 2020 05:44:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=p9VB9hsS3vLUUEJEf+sf5ISPWbZ/ZTBEHuAxd55KYRY=; b=IhEq73qJ1znUVTgMs5RU5vjv/cJeKsFRdfB9EVqqpX/6rwPl/3KQ5pZ7GRELz1e7Fj pgnYCBHhYmXXBuolXY2m1r61woLsPLhnlF5cnmUDkAqV3xuryL6cSeD/bQPS64zyKXn7 iG2i/cs5BTe5161CAM26zHbOjUkJvey9ojTOL51JNebA3UT3h5gDIgaAFURQVS8vK+M2 N9m9BOoz7ONp3afaw8avGagH24HvxvtL388Mj3EpLOlYP4/GYCnSl44QFxrxiUuSTqwo eQlvtddnx2GNc++Ap357Vai1aJIqTFSMNEj2JHFbF1NJArAvtP6J7Je1jMPWtgi0d03X ++qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=p9VB9hsS3vLUUEJEf+sf5ISPWbZ/ZTBEHuAxd55KYRY=; b=JmsHuWQk04WJ6/5w1Lr/WbXzZd1F/Erqx4pt2UBv4IOQef1KvchLCIYtWRXkul8R4F 06wPLyOmmkl7VAOF8GLtMabn42pFYxxJMdOx4z+4HDCEnYzzPCLIMr0mbgrNDaH0R5Pr BhttstwJ/VI/mk9dCECPuE381HPYd16eBRVgAHOnJtoFWmujyYxUMs+UKKruaNBNArSW r14dOfdrIr4G6Tp595rFWNks3Yj7iZ05GOOI/a7IqNSen3B7l6S/dEryG56GcoILV7Q+ V9TWoOSCotLfUN+NyHQlnrLkMglClF1KXqXpO9+fiNn29LfB5FaMbNzwRAotxt56j+ca Yb0Q== X-Gm-Message-State: APjAAAXng9pRvBn5zjZ4HTQhJLnE34w5zlgrELsJbjgepy9zN37rZci+ rkTS+Sa/03ppnC1tm+EGE2Ps7T2Oz8KSFD03LD0= X-Google-Smtp-Source: APXvYqwlfWXzfuKMf6tvB8tlIzqsYM9rgBMG8F69KuIev/yXCnkW6c1lvGhNUuRSXMI462E8cPQGSwMH5iIBAmSa69s= X-Received: by 2002:a67:be13:: with SMTP id x19mr12062403vsq.20.1580651039123; Sun, 02 Feb 2020 05:43:59 -0800 (PST) MIME-Version: 1.0 References: <4584E3BE-F412-4902-AFB9-CAE88D660ED1@googlemail.com> <202002011904.011J4rBB079499@gndrsh.dnsmgr.net> In-Reply-To: From: Ben Woods Date: Sun, 2 Feb 2020 21:43:44 +0800 Message-ID: Subject: Re: More secure permissions for /root and /etc/sysctl.conf To: "Rodney W. Grimes" Cc: Gordon Bergling , FreeBSD Hackers , Ryan Stone , Wojciech Puchar X-Rspamd-Queue-Id: 489XHN37Glz48jg X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=IhEq73qJ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of woodsb02@gmail.com designates 2607:f8b0:4864:20::e41 as permitted sender) smtp.mailfrom=woodsb02@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_FIVE(0.00)[5]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[1.4.e.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (2.55), ipnet: 2607:f8b0::/32(-2.00), asn: 15169(-1.76), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_CC(0.00)[googlemail.com]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Feb 2020 13:44:01 -0000 On Sun, 2 Feb 2020 at 09:46, Ben Woods wrote: > On Sun, 2 Feb 2020 at 03:05, Rodney W. Grimes < > freebsd-rwg@gndrsh.dnsmgr.net> wrote: > >> c) The default for home directories in all the BSD's I looked at >> are 755. >> >> d) All distributions I looked at ship /root as 755. This would be >> FreeBSD as the odd man out. >> > > I just spun up a few other BSD's to check this, and found the following > for /root permissions: > > DragonFlyBSD 5.6.2 = 700 > HardenedBSD build 104 = 755 > NetBSD 9.0 RC1 = 755 > OpenBSD 6.6 = 700 > In case anyone is interested, I have also had a look at a few popular Linux distributions, and found the following for /root permissions: ArchLinux 2020.02.01 = 700 CentOS 8 = 550 Debian 10 = 700 Fedora 31 = 550 Slackware 14.2 = 710 Ubuntu 19.10 = 700 Regards, Ben