mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
samba: Make sure that permissions of the lock dir are fine.
This commit is contained in:
@@ -325,7 +325,6 @@ winbind gid = 10000-20000
|
||||
winbind use default domain = yes
|
||||
|
||||
log file = /var/log/samba/samba-log.%m
|
||||
lock directory = /var/lock/samba
|
||||
pid directory = /var/run/
|
||||
log level = $sambasettings{'LOGLEVEL'}
|
||||
syslog = $sambasettings{'SYSLOGLEVEL'}
|
||||
|
||||
@@ -82,6 +82,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
--libdir=/usr/lib/ \
|
||||
--sysconfdir=/var/ipfire \
|
||||
--localstatedir=/var \
|
||||
--with-cachedir=/var/lib/samba \
|
||||
--with-lockdir=/var/lib/samba \
|
||||
--with-piddir=/var/run \
|
||||
--with-ads \
|
||||
@@ -96,6 +97,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
--with-winbind \
|
||||
--disable-swat \
|
||||
--enable-cups \
|
||||
--disable-avahi \
|
||||
--with-syslog
|
||||
cd $(DIR_APP)/source3 && make proto && make all $(MAKETUNING) $(EXTRA_MAKE)
|
||||
cd $(DIR_APP)/source3 && make install
|
||||
|
||||
@@ -7,8 +7,17 @@
|
||||
. /etc/sysconfig/rc
|
||||
. $rc_functions
|
||||
|
||||
function fix_permissions() {
|
||||
local lockdir="/var/lib/samba/winbindd_privileged"
|
||||
|
||||
chmod 750 "${lockdir}"
|
||||
chgrp wbpriv "${lockdir}"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
fix_permissions
|
||||
|
||||
boot_mesg "Starting nmbd..."
|
||||
loadproc /usr/sbin/nmbd -D
|
||||
|
||||
|
||||
Reference in New Issue
Block a user