Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2930

Ubuntu 20.04.4 and I edited my sudoers wrongly. cant correct it. cant use pttyagent cant use pkexec. How esle can I edit sudoers?

$
0
0

I found some solutions but they require using pkexec and pttyagent I had even more errors.tried

  • pkexec visudo /etc/sudoers and got this"Error getting authority: Error initializing authority: Could not connect: No such file or directory".

Also tried using

  • pttyagent --process id method and got this error "Authorization not available. Check if polkit service is running or see debug message for more information"

I'm using wsl and ubuntu on my local machine (windows 10).

I got into this mess because I cant seem to run service docker start. found a solution that required me to edit my sudoers file. Now my problems have become even more complex.

My last solution is to uninstall wsl2 and Ubuntu 20.04 LTS and reinstall them again. Don't know if that will work either

I'm trying the recovery mode option I'm in recovery mode, I'm at the command line, I've entered the my PW. I'm trying to run these

mount -n -o remount,rw /

chmod u+x /etc/sudoers

visudo /etc/sudoers

but it's saying mount is not recognized as an internal or external command. Where am I to run these commands from? Cause I started out by running them from the default that the command line opened on which is

X:\windows\system32>even cd tox:

and ran them from there too but the same erro happened.


Viewing all articles
Browse latest Browse all 2930

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>