Skip to content
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

Root privileges required #54

Open
FrenchGithubUser opened this issue Apr 3, 2023 · 1 comment
Open

Root privileges required #54

FrenchGithubUser opened this issue Apr 3, 2023 · 1 comment

Comments

@FrenchGithubUser
Copy link

This package works pretty well, thanks for developing it !

But whenthe binary is in a folder that requires admin/root rights to write in like /usr/bin/ or in windows' programs folder, the update fails. Here is the error I get on linux : Error occurred while updating binary: open /usr/bin/.hatt.new: permission denied (the name of my program is hatt)

I was wondering how this issue should be addressed (ask the user for admin rights ? if so, how ? something else ?

@servusdei2018
Copy link

You could invoke the program with sudo to grant it the required privileges. For example, if you have a update subcommand to invoke the self updating behavior, you could run sudo hatt update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants