If I right-click an application and click Get Info, a window like in the following image pops up:
Then, after unlocking the Sharing & Permissions section, let's say I wish to change the permissions for everyone to No Access.
This is fairly simple to do through the GUI, but I was wondering if it was possible to do this through Terminal.
I know I could simply use chmod and change the permissions recursively for the application directory like that, but I would prefer a solution that simply changes the permissions in the same way the GUI does such that it is updated accordingly in the Info window for the app.
I do not believe this is a duplicate of this post because the answer to it only shows how to add access control entries, not how to modify them.