Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6168

How to restore user to sudoers? [closed]

$
0
0

The system is Ubuntu 22.04.2.I mistakenly removed my user from sudoers, and the root account cannot login directly.Now, if I use the "sudo" command, "user is not in the sudoers file. This incident will be reported." will be displayed.I only have read-only permission to system files.

I tried to add my account to sudoers file, but shown Permission denied.Is there any way to restore my user to sudoers?sudoers screenshot


Viewing all articles
Browse latest Browse all 6168

Trending Articles



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