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

[Feature Request]: Doas support instead of sudo #1266

Open
ItsLiyua opened this issue Apr 8, 2024 · 5 comments
Open

[Feature Request]: Doas support instead of sudo #1266

ItsLiyua opened this issue Apr 8, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@ItsLiyua
Copy link

ItsLiyua commented Apr 8, 2024

Feature Request

Description

I'd like to see a feature that allows you to use doas instead of sudo since sudo is a very big project and therefore a more common attack surface.

Use Case

sudo had its bugs and exploits in the past and doas is a way simpler program which still does what most people use sudo for. I don't know if you use elevated privileges in any of your custom scripts (besides the install script) so I don't know if I can uninstall sudo after running the install script.

Proposed Solution

I'd like to see either an autodetection during the install script or an option to select the program of your choice.

Alternatives

I guess the alternatives are to use sudo but some people just prefer doas

Additional Information

If by any chance you don't know what doas is: It does basically the same as what most people use sudo for. It has a lot less features than sudo but most of them aren't used by the majority of users anyway. Here's the archwiki if that helps: https://wiki.archlinux.org/title/Doas

@ItsLiyua ItsLiyua added the enhancement New feature or request label Apr 8, 2024
@kRHYME7
Copy link
Collaborator

kRHYME7 commented Apr 9, 2024

how about letting a polkit handle it? still unsafe?

@ItsLiyua
Copy link
Author

ItsLiyua commented Apr 9, 2024

how about letting a polkit handle it? still unsafe?

I can't tell you whether that"s safe or not as I haven't really dealt with polkit yet. Either way you can't assume it's already set up so the install script would have to take are of that as well. And for setting up polkit you'll need root access which means either sudo or doas again.

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Apr 9, 2024

For the installation( which probably polkit don't exist yet ), we can add checks if users have doas or sudo. Adding check for doas as priority and fallback to sudo.

For the whole Theming experience, will try to use the polkit as much as possible. (Hyprland encourages having a polkit.) then again fallsback to doas then sudo.

@its-19818942118
Copy link

That honestly really good option I agree with this cuz I think the way Hyde is switching it needs even bits of customizability

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Apr 24, 2024

@ItsLiyua Please checkout #1390 as I cannot really test the entire changes yet.

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

No branches or pull requests

3 participants