sparkle-project / Sparkle

A software update framework for macOS
https://sparkle-project.org
Other
7.3k stars 1.05k forks source link

Sparkle asking for password on every app update #1196

Closed prohtex closed 6 years ago

prohtex commented 6 years ago

I recently set up a new iMac Pro with High Sierra 10.13.3. For some reason, all my apps that use Sparkle to update are now asking for authentication before updating, something that never happened before. Any ideas about why this is happening and what I can do to resolve? Entering valid user credentials works, but getting authenticated with every app update doesn't appear to be normal behavior.

autoupdate

kornelski commented 6 years ago

Is it possible that apps in /Applications are read-only for you? See "Get Info" on a few apps in Finder.

If you're the only user of this computer, this may help:

sudo chown -R $USER /Applications/*.app

Alternatively, if this dialog is a mistake, check out Console.app. Sparkle should print more information there explaining why it needs it.

prohtex commented 6 years ago

drwxr-xr-x 3 501 staff 96B Mar 19 20:54 Swinsian.app

You're right, a different user account installed these applications. Thanks.

jkbullard commented 6 years ago

The ownership/permissions you posted may be correct.

Note: For the .app itself, you usually only need "x" permissions, because .apps are directories and you need "x" permissions to search them. You wouldn't ordinarily write into the contents of the .app folder, you'd write into the .app/Contents folder or the .app/Contents/Resources folder.

If this is happening on all your apps, you might want to examine the ownership/permissions of /Applications folder itself. I've seen situations where a bad installer (not necessarily evil, just ignorance or carelessness, I think) has modified the permissions of /Applications. See System Folder Security for more info.

prohtex commented 6 years ago

In my case, I created a user (501), installed some applications, then removed that user. The new user (504), had read-only permissions on many of those apps, whereas the original user (501), had full permissions. It seemed like the right move to chown my app bundles to the new user, which is what I did. If the issue isn't resolved, I'll post again!

PS, my Applications Dir:

drwxrwxr-x+ 124 root admin 3.9K Mar 19 21:04 Applications