From owner-freebsd-bugs@FreeBSD.ORG Thu Jul 28 13:00:25 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C67E116A41F for ; Thu, 28 Jul 2005 13:00:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4849743D49 for ; Thu, 28 Jul 2005 13:00:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j6SD0PQl030766 for ; Thu, 28 Jul 2005 13:00:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j6SD0PDC030760; Thu, 28 Jul 2005 13:00:25 GMT (envelope-from gnats) Resent-Date: Thu, 28 Jul 2005 13:00:25 GMT Resent-Message-Id: <200507281300.j6SD0PDC030760@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Eygene A.Ryabinkin" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D38A16A41F for ; Thu, 28 Jul 2005 12:55:28 +0000 (GMT) (envelope-from rea@rea.mbslab.kiae.ru) Received: from rea.mbslab.kiae.ru (rea.mbslab.kiae.ru [144.206.177.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1735D43D46 for ; Thu, 28 Jul 2005 12:55:26 +0000 (GMT) (envelope-from rea@rea.mbslab.kiae.ru) Received: from rea.mbslab.kiae.ru (localhost [127.0.0.1]) by rea.mbslab.kiae.ru (Postfix) with ESMTP id 441E6BB63 for ; Thu, 28 Jul 2005 16:55:22 +0400 (MSD) Received: by rea.mbslab.kiae.ru (Postfix, from userid 1000) id 1C67FBB60; Thu, 28 Jul 2005 16:55:22 +0400 (MSD) Message-Id: <20050728125522.1C67FBB60@rea.mbslab.kiae.ru> Date: Thu, 28 Jul 2005 16:55:22 +0400 (MSD) From: "Eygene A.Ryabinkin" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: conf/84221: Wrong permissions on /etc/opiekeys X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Eygene A.Ryabinkin" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2005 13:00:25 -0000 >Number: 84221 >Category: conf >Synopsis: Wrong permissions on /etc/opiekeys >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jul 28 13:00:24 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Eygene A. Ryabinkin >Release: FreeBSD 5.4-STABLE i386 >Organization: Code Labs >Environment: System: FreeBSD **************** 5.4-STABLE FreeBSD 5.4-STABLE #6: Wed Jul 27 10:22:02 MSD 2005 root@****************:/usr/obj/usr/src/sys/TWINS i386 >Description: The permissions on /etc/opiekeys are wrong: 0644 instead of 0600. It does not make any sense to give the read permission without the write one, just due to the design of OPIE: if one should read and authenticate using /etc/opiekeys, then precisely that being thould write the new hash to that file. Thanks to Peter Jeremy for giving me this argument! There were the same bug for S/Key a long time ago, but at that times FreeBSD was maintaining 0600 permissions on the /etc/skeykeys file. >How-To-Repeat: ls -l /etc/opiekeys >Fix: First, chmod 0600 /etc/opiekeys. The fix the OPIE sources to create that file with right permissions. >Release-Note: >Audit-Trail: >Unformatted: