FileWave Alliance

The Official Community Forum
  • Page:
  • 1

TOPIC: Location Services

Location Services 26 May 2017 15:48 #2563

  • Dan Rubin
  • Dan Rubin's Avatar Topic Author
  • Offline
  • 1st level - White Belt
  • 1st level - White Belt
  • Posts: 3
  • Thank you received: 0
Looking to enable location services and allow filewave for location services remotely or using filewave. How can this be done for Mac OS X? I can't really go to each machine and enable it manually.

Location Services 31 May 2017 09:42 #2565

  • P-M Lejon
  • P-M Lejon's Avatar
  • Offline
  • 5th level - Black Belt
  • 5th level - Black Belt
  • Posts: 92
  • Karma: 3
  • Thank you received: 15
Hello!

I was pretty sure I had posted this before, but couldn't find any previous post on this topic...


Nevertheless, here's what I do to enable location services for FileWave on our clients:

/Library/LaunchDaemons/my.domain.fwgui.location.on.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Label</key>
	<string>my.domain.fwgui.location.on</string>
	<key>ProgramArguments</key>
	<array>
		<string>/Library/Scripts/EnableLocationServices_fwGUI.sh</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
	<key>StartInterval</key>
	<integer>90000</integer>
</dict>
</plist>

/Library/Scripts/EnableLocationServices_fwGUI.sh
(see attachment)

Postflight script:
#!/bin/bash

/bin/launchctl load /Library/LaunchDaemons/my.domain.fwgui.location.on.plist

exit 0

Of course you need to exchange "my.domain" in the plist and postflight to what suits your organisation...
I've also placed my script in our organisation's script directory, but /Library/Scripts works. You should also set owner root and chmod the script to 0500 or 0700 (rx or rwx for root and root only)

I'm deploying it on 10.9 - 10.12.5 with no problems so far. If someone is still running 10.8 there's some commented code in the end of the script on how to enable location services prior to 10.9.


I hope it works (and makes sense) for you B)
Attachments:
P-M Lejon
System Administrator
BonnierNews
Sweden
Last Edit: by P-M Lejon.

Location Services 19 Jul 2017 21:10 #2623

  • Nate Surls
  • Nate Surls's Avatar
  • Offline
  • 1st level - White Belt
  • 1st level - White Belt
  • Posts: 3
  • Thank you received: 0
I'm using the following to get this to work...
/usr/bin/sudo -u _locationd /usr/bin/defaults write /var/db/locationd/clients.plist com.filewave.fwGUI -array '<dict><key>Authorized</key><true/><key>BundleId</key><string>com.filewave.fwGUI</string><key>BundlePath</key><string>/usr/local/sbin/FileWave.app/Contents/Resources/fwGUI.app</string><key>Executable</key><string>/usr/local/sbin/FileWave.app/Contents/Resources/fwGUI.app/Contents/MacOS/fwGUI</string><key>Hide</key><integer>1</integer><key>Registered</key><string>/usr/local/sbin/FileWave.app/Contents/Resources/fwGUI.app/Contents/MacOS/fwGUI</string><key>Requirement</key><string>identifier "com.filewave.fwGUI" and certificate leaf = H"fa0634669b8468270c24b4c8027f3e852059d606"</string><key>Whitelisted</key><true/></dict>'
Attachments:

Location Services 24 Jul 2017 07:32 #2625

  • P-M Lejon
  • P-M Lejon's Avatar
  • Offline
  • 5th level - Black Belt
  • 5th level - Black Belt
  • Posts: 92
  • Karma: 3
  • Thank you received: 15
Do you find the use of
identifier "com.filewave.fwGUI" and certificate leaf = H"fa0634669b8468270c24b4c8027f3e852059d606"
more stable than my choice of skipping the certificate?
Or do you consider it more secure (which it should be)?
P-M Lejon
System Administrator
BonnierNews
Sweden

Location Services 22 Jun 2018 13:05 #2951

  • Nate Surls
  • Nate Surls's Avatar
  • Offline
  • 1st level - White Belt
  • 1st level - White Belt
  • Posts: 3
  • Thank you received: 0
I never noticed a difference in 10.12. With 10.13 I use the attached fileset with no issues.

File Attachment:

File Name: EnableLocationServices.fileset_2018-06-22.zip
File Size: 8 KB
Attachments:
  • Page:
  • 1