dra icon indicating copy to clipboard operation
dra copied to clipboard

Allow running as regular user by invoking `sudo` when required

Open yermulnik opened this issue 9 months ago โ€ข 2 comments

I couldn't find any related issue, so apologies if this already had been discussed/explained. I'm running dra as a regular user (shall we say, to follow best security practices), but I'd like to utilize its capability to install downloaded asset w/o a need to separately run package manager with root privileges.

> dra download --install org_name/util_name
Release tag is v3.2.0
โœ” Pick the asset to download ยท util_name_3.2.0_amd64.deb
Saved to: /tmp/dra-27183312ec7b4b51851513bbbaf22f01
An error occurred while executing (status: 2):
  dpkg: error: requested operation requires superuser privilege

It would be beneficial if dra invoked sudo and asked the user to input password. Does that make any sense though?

Thanks for the great tool!

yermulnik avatar May 08 '25 17:05 yermulnik

Hi! That make sense. I have a vague memory that in the past I tried this approach, but there were some issues.

I will take a look at this once I have time for dra ๐Ÿ™‚

devmatteini avatar May 12 '25 21:05 devmatteini

@devmatteini Thank you. Appreciate your time ๐Ÿ‘๐Ÿป

yermulnik avatar May 12 '25 21:05 yermulnik