Guest Account Dock

kevin_kolcz
New Contributor II

I am in the process of switching over from Filewave to Jamf for Mac management and I'm amazed at how difficult it is to manage something as simple as the dock. I'm trying to use dockutil as suggested by many with no success. I am using the built in guest account for most of my macs and pretty sure I need to run a script at each login to kill the dock and then re-add the items I want on it. I am getting output that says users/root is not a home directory nor can it find a plist. Does anyone have any suggestions or something they have done to load a custom dock on guest accounts? The script I'm running after killing the dock is below.

#!/bin/sh

#!/bin/bash

# Adds Dock Items
###########################################################
DOCKUTIL_BINARY="/usr/local/bin/dockutil"
user=`stat -f "%Su" /dev/console`

# Addition of Guest User Specific Dock Applications 
###########################################################

$DOCKUTIL_BINARY --add "/Applications/App Store.app" --no-restart /Users/$user

$DOCKUTIL_BINARY --add "/Applications/Safari.app" --no-restart /Users/$user

$DOCKUTIL_BINARY --add "/Applications/Google Chrome.app" --no-restart /Users/$user

$DOCKUTIL_BINARY --add "/Applications/Photos.app" --no-restart /Users/$user

$DOCKUTIL_BINARY --add "/Applications/iTunes.app" --no-restart /Users/$user

$DOCKUTIL_BINARY --add "/Applications/Self Service.app" --no-restart /Users/$user

$DOCKUTIL_BINARY --add "/Applications/System Preferences.app" /Users/$user

exit 0

#!/bin/sh
0 REPLIES 0