This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# File: /etc/ansible/books/stable/clone/dependencies/sapsnug.sh | |
# Author: bgstack15 | |
# Startdate: 2018-04-05 10:12 | |
# Title: Script to Accept Parameters to Send to Nsupdate Using Gsstsig | |
# Purpose: To wrap nsupdate -g in ansible | |
# History: | |
# Usage: | |
# Run as root, or define variables SNUG_PASSWORD and SNUG_USERNAME | |
# Variables: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ansibleown_version="2018-04-04a" | |
tu=ansible | |
tg="$( id -ng "${tu}" )" | |
for word in $@ ; | |
do | |
# set group accessible | |
find ${word} -exec chown "${tu}:${tg}" {} \; -exec chmod g+rwX {} \; | |
# set setgid and sticky bits | |
find ${word} -type d -exec chmod g+s,o+t {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
worldreadpythonlibs_version="2018-04-06a" | |
for word in /usr/lib{,64}/python2.7/site-packages ; | |
do | |
find ${word} -exec chmod g+rX,o+rX {} \; | |
done |
OlderNewer