#!/bin/bash #ZMB_VAR apt update && apt full-upgrade -y echo -ne '\n' | apt install -y acl dnsutils mc samba winbind libpam-winbind libnss-winbind krb5-user krb5-config samba-dsdb-modules samba-vfs-modules mv /etc/krb5.conf /etc/krb5.conf.bak cat > /etc/krb5.conf < /etc/samba/smb.conf <> /etc/pam.d/common-session systemctl restart winbind nmbd wbinfo -u wbinfo -g mkdir /tank/share chown 'administrator':'domain users' /tank/share setfacl -Rm u:administrator:rwx,g::-,o::- /tank/share setfacl -Rdm u:administrator:rwx,g::-,o::- /tank/share systemctl restart smbd nmbd winbind