Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >
article

KB-4160: How to hide applications from the Finder view in OS X

Centrify Identity Service, Mac Edition ,  

12 April,16 at 11:18 AM

Applies to: Centrify DirectControl on all versions of Mac OS X

Question:

It is possible to restrict an AD user's access to specific apps using the various GPs at:
  • User Configuration / Centrify Settings / Mac OS X Settings / Application Access Settings / ...
However although these GPs do correctly prevent the users from opening the apps, it is desired that the users not be able to see these apps at all.
Is it possible to hide the applications from the Finder view completely?


Answer:

Applications can be hidden from the Finder view using the chflags hidden /Path/To/App... command.

So to hide the Chess application, the following command can be used:
  • chflags hidden /Applications/Chess.app 

If the application contains spaces in its name, then make sure to enclose the path in quote marks:
  • chflags hidden "/Applications/App Store.app" 

This command can in turn be placed in the following GP: 
  • User Configuration / Centrify Settings / Common UNIX Settings / "Specify commands to run" 


Note that since the /Applications/ folder is a shared folder between all users of the Mac, once hidden - the application will be hidden to all users who log in to that machine. 

To unhide the app, use the following command at the Terminal: 
  • sudo chflags nohidden /Applications/Chess.app
  • sudo chflags nohidden "/Applications/App Store.app" 
(Note that if the "Specify commands to run" GP is still active, then the app will be hidden again the next time the user logs back in.) 


The app can also be opened directly without needing to unhide by using the following Terminal command: 
  • open /Applications/Chess.app
  • open "/Applications/App Store.app"  

(Provided that the app is only being hidden from view, and not also restricted via the Application Access GPs) 

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.