From owner-freebsd-hackers@freebsd.org Thu Jan 30 09:36:10 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 02CF5232F46 for ; Thu, 30 Jan 2020 09:36:10 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 487Zwm2T1qz3PNM for ; Thu, 30 Jan 2020 09:36:08 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.15.2) with ESMTPS id 00U9a4cD033670 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 30 Jan 2020 10:36:04 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1580376964; bh=1Iinbhwi3o5bQkT2DjApVS1Qq+Kha/zu7pywEWiaXTU=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=RidBn2rblVwP9x926dUJleChof0OCzShyWDumLEh7smySJA8LLsOvgP09RIhQOZhB 2wYAu3LB1IxYJYqWwJ5uIJVDTeQDLttswjD3iR+hP7YhEifHSM2W9HOu7aFhqnrx4S +fjmWtsVJK2owhM9r4OBXqdb/gdpAbQvHIHSkH8w= Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id 00U9a4FW033667; Thu, 30 Jan 2020 10:36:04 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Date: Thu, 30 Jan 2020 10:36:04 +0100 (CET) From: Wojciech Puchar To: Ryan Stone cc: Gordon Bergling , FreeBSD Hackers Subject: Re: More secure permissions for /root and /etc/sysctl.conf In-Reply-To: Message-ID: References: <20200129092631.GA22505@lion.0xfce3.net> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 487Zwm2T1qz3PNM X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=fail (rsa verify failed) header.d=puchar.net header.s=default header.b=RidBn2rb; dmarc=none; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-3.90 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_REJECT(1.00)[puchar.net:s=default]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[puchar.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[puchar.net:-]; RCVD_IN_DNSWL_NONE(0.00)[90.144.1.194.list.dnswl.org : 127.0.10.0]; IP_SCORE(-2.60)[ip: (-6.86), ipnet: 194.1.144.0/24(-3.43), asn: 43476(-2.75), country: PL(0.07)]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; FREEMAIL_CC(0.00)[googlemail.com]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] 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: Thu, 30 Jan 2020 09:36:10 -0000 On Wed, 29 Jan 2020, Ryan Stone wrote: > On Wed, Jan 29, 2020 at 4:26 AM Gordon Bergling via freebsd-hackers > wrote: >> >> Hi, >> >> I recently stumbled upon the default world readable permissons of /root and >> /etc/sysctl.conf. I think that it would be more secure to reduce the default >> permission for /root to 0700 and to 0600 for /etc/sysctl.conf. > > I don't see the point in making this change to sysctl.conf. sysctls > are readable by any user. Hiding the contents of sysctl.conf does not > prevent unprivileged users from seeing what values have been changed > from the defaults; it merely makes it more tedious. true. but /root should be root only readable