balena-io / etcher

Flash OS images to SD cards & USB drives, safely and easily.
https://etcher.io/
Apache License 2.0
30.07k stars 2.12k forks source link

Unable to enter administrator password on the new popup prompt after selecting flash “balenaEtcher wants to make changes.” #2997

Closed ghost closed 1 year ago

ghost commented 5 years ago

Works on Administrator account, not on standard user account.

thundron commented 5 years ago

Hi, can you please describe a bit more the issue? Do you mean that you can't actually write the password (as in, you write but nothing happens) or that you can't confirm after writing the password, or something else?

fromanifromage commented 5 years ago

I might have the same error. First I see this message: "balenaEtcher wants to make changes. Type your password to allow this." Then I try to enter the correct password. I have tried alternating both the user and admin passwords; neither works. The program claims it will show a progress bar and it never shows.

ghost commented 5 years ago

@thundron, From what @fromanifromage has described is exactly whats appears for me. I just don’t know what the reasoning behind switching to a custom prompt only asking for the password while the default MacOS prompt asks both for username and password. It hasn’t been a problem with the default in the previous versions.

thundron commented 5 years ago

@ldon13 Reason is macOS Catalina unfortunately 🤦‍♂ If you run with sudo does it work? Can you paste here the output in the devtools console after closing the password dialogue? (cmd + opt + i to open it)

JokerQyou commented 4 years ago

When running in macOS Catalina 10.15.1, Etcher used to work properly, and a dialog like this would popup before actually flashing to SD card: image

After upgrading to Catalina 10.15.2, Etcher changed to this popup: image

And whatever you type in this dialog does not work, even if the password is correct. If you click "OK", it will popup again; if you click "Cancel", well, it cancels the flash.

Update: This ugly dialog would popup 3 times in a row (asking for your password for 3 times), and only after that would the flash begin. I did not find related description in the changelog, this is really confusing..

Update 2: I've turned to ApplePiBaker v2. It used a different approach: a privileged helper tool, which only requires admin password the first time you open the app. After the initial install, you won't need to provide password to start flashing. I think this might be helpful to the Etcher devs: https://www.tweaking4all.com/hardware/raspberry-pi/applepi-baker-v2/#WritingtoaDiskSudoAccessvsHelperTool

lurch commented 4 years ago

I did not find related description in the changelog

I think #2939 is the relevant PR ? Which only appears in the changelog as https://github.com/balena-io/etcher/blob/master/CHANGELOG.md#v1561

jellyfish-bot commented 4 years ago

[pipex] This issue has attached support thread https://jel.ly.fish/5942fd9e-617b-4d01-a572-ff115a43be88

lurch commented 4 years ago

AFAICT, this sounds like the problem I described here: https://github.com/balena-io/etcher/issues/3107#issuecomment-602047807

JokerQyou commented 4 years ago

This comment says that even PrivilegedHelperTools (whatever they are) don't work in Catalina either.

I guess not. ApplePiBaker uses privileged helper tool, but it's working all the time. I installed it last year (you can see my comment above) and the last time I used it two weeks ago everything works fine. I've long been using Catalina (currently on 10.15.6)

shawaj commented 3 years ago

This should be fixed now in v1.5.112. @Decrypt0r @JokerQyou @fromanifromage could you update to the latest version and check if it now works for you?

sjohnson-imi commented 3 years ago

The issue is still occurring. I'm using v1.5.115 on Catalina. It only asks for a password (not an administrator login) and then silently kicks back to the "select target" decision. I tried repeating this thrice (and on to five times) to see if that would get by, but no change.

sjohnson-imi commented 3 years ago

Seems to stem from the change from asking for admin credentials to asking for user credentials and relying on sudoers to allow access. Once I added the standard user account to the sudoers file, etcher was able to complete.

mcraa commented 2 years ago

@DavidAmeba123 the real etcher website is not asking you any password Please have a look at #3724 and double-check if you are really on https://etcher.io. When you start a flash with etcher it will ask you for an admin password to have all the rights for writing the target drive.

lurch commented 2 years ago

double-check if you are really on https://etcher.io/

That auto-redirects to https://www.balena.io/etcher/ :wink:

jdeibele commented 2 years ago

I'm on Ventura Public Beta and having a similar problem to what JokerQyou reported back in 2019. It's worse in that I can't flash.

I run as a user without administrative privileges. There is a different account with administrative privileges. Normally, I need to type in the name and password of an account with administrative privileges.

When I try to flash an ISO, I get this:

Screenshot 2022-07-22 at 09 03 01

Note that it is not asking for the name of an administrative account. On my computer, there is one account with administrative privileges but there could be 10.

After entering the password for the administrative account 3 times, I get this:

Screenshot 2022-07-22 at 09 03 25

The "Flash!" button flickers but doesn't do anything. I choose "Select Target" and repeat the cycle.

kmbgit commented 1 year ago

This works from a terminal (where "admin" is the name of a user with Administrator permission)...

su admin -c "sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher"

Alternatively, download the Raspberry Pi Imager from https://www.raspberrypi.com/software/ - it manages to ask for an admin username/password so it must be possible.

dfunckt commented 1 year ago

Closing in favor of #3321