| Server IP : 85.214.239.14 / Your IP : 216.73.216.189 Web Server : Apache/2.4.65 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/3/root/proc/3/task/3/root/proc/3/root/usr/share/samba/ |
Upload File : |
#! /bin/sh
# Check if the given service (smb|nmb|winbind|samba)
# should be run according to the settings in smb.conf
[ -f /etc/samba/smb.conf ] || exit 1
server_role=$(testparm -s --parameter-name="server role" 2>/dev/null)
[ "active directory domain controller" = "$server_role" ] \
&& addc=1 || addc=0
case "$1" in
( smb | smbd )
exit $addc
;;
( winbind | winbindd )
exit $addc
;;
( nmb | nmbd )
[ "$addc" = 1 ] && exit 1
disable_netbios=$(testparm -s --parameter-name="disable netbios" 2>/dev/null)
[ Yes = "$disable_netbios" ] && exit 1 || exit 0
;;
( samba | samba-ad-dc )
# source4/samba/server.c checks for other parameters too, even if !AD-DC
# Should we support these?
exit $((!$addc))
;;
( * )
echo "Wrong usage: should be smb|nmb|winbind|samba" >&2
exit 255
;;
esac