Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Sep 1999 08:22:29 +0200 (CEST)
From:      Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/13633: Better location for samba's private directory
Message-ID:  <199909080622.IAA19408@internal>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909080622.IAA19408>