From owner-freebsd-ports Tue Sep 7 23:33: 7 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 7790114F38 for ; Tue, 7 Sep 1999 23:32:52 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id XAA85810; Tue, 7 Sep 1999 23:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by hub.freebsd.org (Postfix) with ESMTP id CE7E114DBA for ; Tue, 7 Sep 1999 23:23:49 -0700 (PDT) (envelope-from andre.albsmeier@mchp.siemens.de) Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by david.siemens.de (8.9.3/8.9.3) with ESMTP id IAA20333 for ; Wed, 8 Sep 1999 08:22:30 +0200 (MET DST) Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.42.7]) by mail1.siemens.de (8.9.3/8.9.3) with ESMTP id IAA14957 for ; Wed, 8 Sep 1999 08:22:29 +0200 (MET DST) Received: (from daemon@localhost) by curry.mchp.siemens.de (8.9.3/8.9.3) id IAA79363 for ; Wed, 8 Sep 1999 08:22:29 +0200 (CEST) Message-Id: <199909080622.IAA19408@internal> Date: Wed, 8 Sep 1999 08:22:29 +0200 (CEST) From: Andre Albsmeier To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/13633: Better location for samba's private directory Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 13633 >Category: ports >Synopsis: Better location for samba's private directory >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Sep 7 23:30:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Andre Albsmeier >Release: FreeBSD 3.3-RC i386 >Organization: >Environment: All systems with the samba port installed. >Description: The samba ports creates a directory /usr/local/private for some secret files.I personally think this is quite ugly and we might choose to change this to /usr/local/etc/samba. (Patch 1). The directory is mode 700 because the secret smbpasswd file with the encrypted passwords lies there. The smbpasswd file itself is mode 600 which does the same kind of protection. So another approach would be to remove the private directory completely and put the affected stuff into /usr/local/etc as well. That's what I use here. (Patch 2) >How-To-Repeat: ls -l /usr/local :-) >Fix: Patch 1: --- Makefile.ORI Wed Sep 8 08:11:16 1999 +++ Makefile Wed Sep 8 08:11:31 1999 @@ -24,7 +24,7 @@ VARDIR= /var SAMBA_SPOOL= ${VARDIR}/spool/samba SAMBA_LOGDIR= ${VARDIR}/log -SAMBA_PRIVATE= ${PREFIX}/private +SAMBA_PRIVATE= ${PREFIX}/etc/samba SAMBA_CONFDIR= ${PREFIX}/etc # sample files STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/samba.sh.sample Patch 2: --- Makefile.ORI Wed Sep 8 08:11:16 1999 +++ Makefile Wed Sep 8 08:20:46 1999 @@ -24,7 +24,7 @@ VARDIR= /var SAMBA_SPOOL= ${VARDIR}/spool/samba SAMBA_LOGDIR= ${VARDIR}/log -SAMBA_PRIVATE= ${PREFIX}/private +SAMBA_PRIVATE= ${PREFIX}/etc SAMBA_CONFDIR= ${PREFIX}/etc # sample files STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/samba.sh.sample >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message