How to edit sudoers file in ubuntu [closed]

Posted on

How to edit sudoers file in ubuntu [closed] – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, ubuntu, sudo, , .

I accidentally changed the mode of the file /etc/sudoers and added a
line to the file.

Now every time I want to “sudo”, I got a error message like “parse error in /etc/sudoers near line 21”

I can’t login as a root also now. How can I solve this.

Solution :

You can try this:

pkexec visudo 

Leave a Reply

Your email address will not be published.