Another permission try.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -79,12 +79,9 @@ if [ ! -f /var/lib/samba/private/secrets.tdb ]; then
|
|||||||
|
|
||||||
# Allow adding printer drivers for Administrator
|
# Allow adding printer drivers for Administrator
|
||||||
# Note: These commands require running winbind that resolves the group name
|
# Note: These commands require running winbind that resolves the group name
|
||||||
# HACK: Nested folders get group with rx mask so we force also user as Domain Admins
|
|
||||||
sleep 10
|
sleep 10
|
||||||
setfacl -R -m "g:Domain Admins:rwx" /var/lib/samba/printerdrivers
|
chgrp "Domain Admins" /var/lib/samba/printerdrivers
|
||||||
setfacl -R -m "d:g:Domain Admins:rwx" /var/lib/samba/printerdrivers
|
chmod 2775 /var/lib/samba/printerdrivers
|
||||||
setfacl -R -m "u:Domain Admins:rwx" /var/lib/samba/printerdrivers
|
|
||||||
setfacl -R -m "d:u:Domain Admins:rwx" /var/lib/samba/printerdrivers
|
|
||||||
|
|
||||||
# HACK: In Samba 4.16 and above shares are not visible otherwise
|
# HACK: In Samba 4.16 and above shares are not visible otherwise
|
||||||
smbclient -L 127.0.0.1 -P
|
smbclient -L 127.0.0.1 -P
|
||||||
|
|||||||
Reference in New Issue
Block a user