Authentication Required for everything I do in Ubuntu 19.10

Ankit Jain picture Ankit Jain · Feb 18, 2020 · Viewed 10.7k times · Source

I recently upgraded ubuntu from 19.04 to 19.10. Initially, I was not able to login into this user. Whenever I entered password it didn't log in and asked for password again. There was a kind of login loop. Now I am able to login after changing the display manager to lightgdm. But I don't know what is wrong now. After login, it keeps on asking the authentication for every possible thing. Some of them are "Authentication required to create a color profile", "Authentication required to refresh the system repositories", "System policy prevents Wifi scan" and many more. This user is already in the sudo group. Other user works fine. And I am not even able to "unlock the user in Users Settings (this solution is given at many places). Please help me.

Answer

adadion picture adadion · Jun 23, 2020

I have 18.04 with the exact same problem for days, and now has been solved. All I did was creating .pkla file containing custom policy for sudo group in /etc/polkit-1/localauthority/50-local.d/99-sudonopassword.pkla. (I must login with root in terminal -> sudo su.

[No password prompt]
Identity=unix-group:sudo
Action=*
ResultActive=yes
ResultInactive=yes
ResultAny=yes

See pklocalauthority for more details. Then reboot just in case.

If it fails, try reinstall polkit using sudo apt install --reinstall policykit-1. Then reboot just in case.