-
-
Notifications
You must be signed in to change notification settings - Fork 150
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Using blobsaver with sudo on Linux hint in Wiki or Readme #459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Alternatively, I think it would be best to just have the program call |
Use this udev rule and you won't need su privileges
|
Thx for sharing this method. But i think it would be helpful for some users, if theres a hint in the readme or wiki for either using sudo or your solution. As mentioned, it gave me a very bad day :D and the solution was so obvious. |
That is because there is a udev rule that comes bundled with libirecovery. In addition to the rule above it sets the owner and group access on the device, but it wasn't working for me. Seems the same happened in your case. I tinkered a bit and made it work by only changing the mode and saving it as 39-libirecovery.rules to override the existing one. |
hm okay. I thought I was the problem. :D Maybe this "bug" happened to me too. |
I mean... yeah, this probably needs to be kept open imho. Like at the very least |
is this gonna become my job now |
I was not aware of this. Is the udev rule not installed automatically when libirecovery is installed? @superrnovae |
That depends on your distro, and |
I have no idea how polkit and udev works; but if someone could provide a more in depth explanation of what blobsaver should do (like what CLI programs or C functions to call) I could add a way for blobsaver to automatically detect it and try to fix it. Or if there's a way to elevate permissions while blobsaver is already running that would work too. |
What is the error message given when it fails due to incorrect/missing permissions? I can at least try to add a more detailed error message to explain possible solutions. |
On archlinux, I can't read apnonce normally without sudo. What happens is: This message stays for a while: Then after quite a while (longer than the time taken for The terminal output is:
I can get the apnonce value fine if I run blobsaver with sudo. |
@Redecorating how did you install libirecovery? |
I have it from the AUR:
It includes a udev rule, although I'm not too sure of how to check if this rule is changing the permissions of the usb device or not. |
I'll move this to a discussion, since it doesn't seem like something that can be easily fixed. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Hey there,
sorry, it might seem really dumb but i think it would be nice to have a hint in the Wiki under "blobsaver on Linux" or in the readme that its mandatory to use blobsaver on linux with su privilegs. If i had this Info (not your fault just my total braindeadness) it would have saved me a bad day yesterday because i got stuck in recovery mode. On Linux (Im using Fedora) blobsaver cant detect my Iphone (13 Pro Max) in recovery mode without su privilegs.
Thx for reading and greetings:)
The text was updated successfully, but these errors were encountered: