Skip to content

Commit 57a88de

Browse files
committed
README update
README update
1 parent 861734f commit 57a88de

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
* [MDM variables](#mdm-variables)
3939
* [Jamf Pro variables](#jamf-pro-variables)
4040
* [Privileged scripts](#privileged-scripts)
41+
* [Use Cases](#use-cases)
42+
* [Disabling or re-enabling](#disabling-or-re-enabling)
4143
* [File locations](#file-locations)
4244
* [Security Considerations](#security-considerations)
4345
- [How to use SF Symbols](#how-to-use-sf-symbols)
@@ -401,8 +403,6 @@ defaults write /Library/Preferences/nl.root3.support.plist ExtensionLoadingA -bo
401403
### Privileged scripts
402404
To allow scripts to be executed with elevated privileges, the Support App has a built-in Privileged Helper Tool. This upgrade over the deprecated SupportHelper makes sure communication is transmitted more securely between the main app the the built-in Privileged Helper Tools with additional checks such as code requirement and scripts must have proper permissions and owner. The script must me owned by `root` and have 755 permissions. Additionally, only paths to a script set in a Configuration Profile will be executed. Values set with `defaults write` are not supported.
403405

404-
By default, the Privileged Helper Tool is automatically enabled when using the PKG installer. To opt-out, set the key `DisablePrivilegedHelperTool` to `true` during the time of installation. Also at launch of the Support App, the Privileged Helper Tool will be removed when the key is set. Please also note that for the App Catalog integration, the Privileged Helper Tool is a requirement.
405-
406406
> **Warning**
407407
> Because the script permissions are checked before execution, commands are not supported anymore as of version 2.6.
408408
@@ -422,6 +422,15 @@ There are a couple of use cases where privileged scripts can help. For example r
422422
* Run device compliance remediation, such as the macOS Security Compliance Project Remediation Script
423423
* Any other action requiring root privileges, especially when users have standard permissions
424424

425+
#### Disabling or re-enabling
426+
By default, the Privileged Helper Tool is automatically enabled when using the PKG installer. To opt-out, set the key `DisablePrivilegedHelperTool` to `true` during the time of installation. Also at launch of the Support App, the Privileged Helper Tool will be removed when the key is set. Please also note that for the App Catalog integration, the Privileged Helper Tool is a requirement.
427+
428+
Additionally the Support App app bundle comes with scripts to manually disable or re-enable the Privileged Helper Tool. For example when you accidentaly used or misconfigured the `DisablePrivilegedHelperTool` key, or chose to (not) use it at a later time:
429+
* Disable: `/Applications/Support.app/Contents/Resources/uninstall_privileged_helper_tool.zsh`
430+
* Re-enable: `/Applications/Support.app/Contents/Resources/install_privileged_helper_tool.zsh`
431+
432+
For example, you can run those scripts locally of by your MDM solution. You can verify the Privileged Helper Tool is enabled by checking the file locations mentioned in [File locations](#file-locations).
433+
425434
#### File locations
426435
The Support App installs some files related to the Privileged Helper Tool:
427436

src/Support/Views/ButtonTemplateViews/Item.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ struct Item: View {
255255

256256
}
257257
} catch {
258-
logger.log("Failed to run privileged script. Error: \(error.localizedDescription)")
258+
logger.log("Failed to run privileged script. Error: \(error.localizedDescription, privacy: .public)")
259259
}
260260
}
261261
}

src/Support/Views/ButtonTemplateViews/ItemSmall.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ struct ItemSmall: View {
200200

201201
}
202202
} catch {
203-
logger.log("Failed to run privileged script. Error: \(error.localizedDescription)")
203+
logger.log("Failed to run privileged script. Error: \(error.localizedDescription, privacy: .public)")
204204
}
205205
}
206206
}

0 commit comments

Comments
 (0)