1

I use Clean My Mac to periodically clean out old log files and caches. Right before the clean, it asks me permission and I have to enter my password to authenticate. Is there any way I can authorize the app once and skip this step every time?

2
1

No, it's asking for authentication not because the app needs it but because it's altering system files and OS X will always need authentication for this.

4
  • This. Eactly how sudo behaves. Nov 7 '19 at 12:40
  • Actually, would also be interesting to see if it follows sudo timeout rules (by default, if you use sudo on the CLI, the OS won't request the password again for another 10 minutes or so). So, start CleanMyMac, run it, and enter the password. Close it, and see if it requires the password again - if it doesn't it's using sudo timeouts. If so, you could extend the timeout to infinite (i.e. never require it again) - but this is not recommended ever. See how to change the timeouts here: osxdaily.com/2016/05/05/change-sudo-password-timeout Nov 7 '19 at 12:48
  • Er, this question is 7 years old. No idea why it's on the front page! Nov 7 '19 at 12:50
  • @Fiddle It’s on the front page because there’s a new answer. There’s no problem with responding to something from a long time ago, that’s encouraged on Stack Exchange.
    – grg
    Nov 7 '19 at 16:06
1

The answer will depend on how the application requests authorization.

Authorization Services

If the application is well designed, the request will be through Authorization Services provided by macOS. In this case, you need to determine which authorisation right or rights are being requested by the application.

A well designed Mac application will define their own unique rights. A reasonably well designed application will use an existing right defined by Apple.

Once you know the rights involved, you can modify the security policy database to lessen or even remove the authorisation restrictions. The database is modified with the security command line tool included with macOS; see the authorizationdb flag for making changes to the authorisation policy database.

All this is not recommended because you are actively reducing the security of your computer.

As an aside, Authorization Services are not available to applications sold in the Mac App Store or sandboxed applications.

0

I don’t think there is a way to completely authorise the “Clean My Mac” application. The reason why it asks you to confirm your password is that you are authorising the app and to make sure it doesn’t starts by itself. Trust me, even I feel frustrated because of this, but in a whole, asking of permission is a better way.

1
  • 1
    What do you mean by "it doesn't start by itself"?
    – nohillside
    Nov 15 '15 at 9:03
-2

you can find the binary in the application folder, according to view package content, and to run the binary in sudo mode

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .