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

Asks for root password #6

Open
TamasBarta opened this issue Nov 1, 2024 · 7 comments
Open

Asks for root password #6

TamasBarta opened this issue Nov 1, 2024 · 7 comments

Comments

@TamasBarta
Copy link

TamasBarta commented Nov 1, 2024

I might misunderstand things, but my understanding is that polkit is for privilege escalation for the current user. This agent however doesn't accept my user's password, only the root password. I had root disabled, so it never worked for me, until I set a password for the root user. I'm certain this should not be the case.

(I installed hyprpolkitagent from the AUR)

@vaxerski
Copy link
Member

vaxerski commented Nov 1, 2024

I think that's how it works, do other polkit agents ask for the user password?

@SaltyBooty
Copy link

SaltyBooty commented Nov 2, 2024

I think that's how it works, do other polkit agents ask for the user password?

From my understanding, if user belongs to the group that is allowed to execute a particular command polkit agent will prompt for user password. If user doesn't belong to a group that is able to execute the command it asks for root password.

Edit: also it checks if user is able to perform the command without password prompt.

@vaxerski
Copy link
Member

vaxerski commented Nov 2, 2024

that does not answer my question

@TamasBarta
Copy link
Author

I used the KDE and Gnome agents before, and I was never asked for root password, only for my own. I was always in the ˋwheelˋ group (on Arch), if that makes a difference. Since I don't want my root account to have a password, I went back to the KDE agent for now, and that is asking for my user password.

@vaxerski
Copy link
Member

vaxerski commented Nov 4, 2024

odd.

@vaxerski
Copy link
Member

vaxerski commented Nov 4, 2024

patch.txt
try this?

@Grub4K
Copy link

Grub4K commented Dec 18, 2024

Yup that works for me to target the current user: Authenticating for unix-user:grub4k

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

4 participants