Manage permissions using a terminal
Is it possible to manage permissions in "Privacy & Security" using a terminal, not a GUI?
Is it possible to manage permissions in "Privacy & Security" using a terminal, not a GUI?
No.
If one knows what they are doing in the Terminal, then the customary UNIX tools can allow you to set basic and Access Control List permissions on files and folders.
If they are managed computers, then you can probably do what you need through MDM. If they are not managed, you have zero license to subvert the user's wishes.
If you wish to pretend you provide some fictitious protection, you shouldn't act like malware.
In my case, I want to control the mouse using a Go script. At the first start, you need to approve the permission to use Accessibility using the terminal and this is a big problem for my task.
Maybe there is an opportunity to bypass this functionality with the help of some attribute?
😁
I know it looks like a malware, but it is needed for centralized installation of software, which in beta testing only offers a GUI option, with a "yes" or "no" click. My task is to make sure that the software installs the way we need it, and not the way the end user decides due to unnecessary questions during installation.
Maybe there is an opportunity to bypass this functionality with the help of some attribute?
What issue do you have with the user approving your script controlling the Mac?
The whole point of the system is to prevent rogue apps from changing settings.
I'm not sure, but it might be possible to control that with a Profile in a Mobile Device Management (MDM) scheme.
The problem is that some users fundamentally do not allow disk access and network traffic filtering, which discourages the software and prevents it from protecting the user's laptop from malicious traffic and other functionality from our security team.
y34r-z3r0 wrote:
I know it looks like a malware, but it is needed for centralized installation of software, which in beta testing only offers a GUI option, with a "yes" or "no" click. My task is to make sure that the software installs the way we need it, and not the way the end user decides due to unnecessary questions during installation.
I posted at the same time as you were posting your explanation of why you wanted to do it. My question had nothing to do with malware. However, based on your subsequent elaboration of what you're trying to do, I perhaps should have thought of that.
<Never mind>
and not the way the end user decides due to unnecessary questions during installation.
If your app signature remains the same, I would think it should only ask one time.
Manage permissions using a terminal