@sgoetz I have a script tied to a policy that creates a launchdaemon and
a local script on the client that syslogs data from /var/log/jamf.log to
a local syslog server and then up to SumoLogic in the cloud every 10min.
See this link for the script. Y...
I get most of the way there, minus the completion status. I deployed a
script via a policy to all machines that creates a script that runs
locally (logpush.sh) from a launchdaemon every 10min. The script takes
the contents of /var/log/jamf.log, parse...
Use a regex to replace any character between "%admin" and "ALL" with a
space, anchoring with "%" and "=". #!/bin/sh cat /private/tmp/test.txt |
sed 's/%admin.*ALL=/%admin ALL=/g'
@evobe Hmm, strange, it should work. Must be something simple: View your
current pwpolicy, if any, with this command (edit the user): (sudo
pwpolicy -u -getaccountpolicies) Then clear the pwpolicy with
this command (edit the user): (sudo pwpolicy -u...
@evobe Are you running the script as root locally (or using sudo), or
are you running from a Casper policy? It should work either way, but if
you are running locally you need to run it with privileges.