This question already has an answer here:
- How do I add myself back as a sudo user? 4 answers
Consider a single user(with a root user) where the user doesn't know the password of the root user which disables him from using
su root and who was in sudoers file but he himself removed him from the sudoers group with the command
sudo adduser foo sudo.
Now, How does the user foo will access root privileges?