samba: Make sure that permissions of the lock dir are fine.

This commit is contained in:
Michael Tremer
2014-06-12 16:14:11 +02:00
parent b56746432b
commit 889219356e
3 changed files with 11 additions and 1 deletions

View File

@@ -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