Posted on 03-10-2020 09:29 AM
We have just discovered that by default the Status bar in Safari is disabled for some reason. We are doing our Phishing security training and are helping staff identify phishing and spam by hovering over links for example. Unfortunately, if they use Safari, that does absolutely nothing. So, I created a script that should enable it, but it doesn't appear to be working and was wondering if anybody else has come across this and how they addressed it. Here is my script;
#!/bin/bash
defaults write com.apple.Safari ShowStatusBar -boolean true
exit 0
*edited for bad grammar
Posted on 03-10-2020 11:33 AM
You have to direct commands like that to a specific plist path. If you just use the domain by itself (com.apple.Safari
), the script will assume it should be affecting the preference of the user running the command, which would be root in most cases when running it from a Jamf policy. That's why it doesn't appear to be working when running it from a policy.
You could fix that by getting the current logged in username and then using a full path to the Safari plist, like
loggedInUser=$(scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ && ! /loginwindow/ { print $ 3 }')
/usr/bin/defaults write /Users/$loggedInUser/Library/Preferences/com.apple.Safari.plist ShowStatusBar -boolean true
You could also consider using a Configuration Profile to manage this, especially if its something you'd like to enforce. The above command will only set the preference once - the user can easily switch it back off.
Posted on 06-18-2020 06:12 AM
Yeah we have been looking into this recently. I tried using a Configuration Profile. It works, but if the end user switch it off it does not restrict or re-apply the "on" setting.
Posted on 11-20-2020 07:53 AM
Does this also apply to a way to show the Safari Favorites bar too?
Example: defaults write com.apple.Safari ShowFavoriesBar -boolean true
Can anyone confirm this key/value pair exists for Safari 13/14?
Posted on 11-20-2020 08:14 AM
It looks like it’s stored in a ShowFavoritesBar-v2
setting in Safari 14. I’m not sure about Safari 13 but it might be the same.
It’s a Boolean value so either true or false.
Posted on 01-22-2024 09:49 PM
Do we have any new solution for Safari v17.3?