Script per impostare le permission delle share utenti in samba: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

21 March 2025

26 February 2025

25 February 2025

  • curprev 16:1516:15, 25 February 2025 Gabriele.vivinetto talk contribs 692 bytes +692 Created page with "Se si hanno le directory corrispondenti agli username, e si vogliono impostare le permission delle share, usare:<pre> #!/bin/bash DOMAIN=EXAMPLE REALM=ad.example.com touch /tmp/errors.txt rm -f errors.txt for DIR in * do echo $DIR chown -R ${DOMAIN}\\${DIR}:${DOMAIN}\\Domain\ Users $DIR 2>&1 > /dev/null || echo "$DIR" >> /tmp/errors.txt samba-tool ntacl set "O:$(wbinfo --name-to-sid ${DIR}@a$REALM | cut -f 1 --delimiter=' ')G:DUD:(A;;0x001f01ff;;;$(wbinfo --name-to-s..." Tag: Visual edit