Advance

How to Linux login without entering password

Richard 3 Min Read
Linux login without entering password
1
(1)

In this article, we tried to teach you how to Linux login without entering password step by step. Also, You can visit the packages available in Eldernode site to purchase a Linux VPS server.

Tutorial Linux login without entering password

To do this, first run the “sudo visudo” command to open the “sudoers” file, now add the following line to the end of the file:

username ALL=(ALL) NOPASSWD:ALL

By adding this line to the sudoers file, the user can execute commands that need to be executed with the root user access level without entering his own password, For example commands like chmod or ifconfig and so on. Naturally you have to enter the username you want instead of username. Now save the file and exit. Now you need to delete your user account password, because you want your user to login without having to login:

sudo passwd -d "whoami"

If this does not work, run the following command, but instead of whoami you should write the username:

# sudo passwd -d username

 

Recommended Article: How to run a command with time limit in Linux

Enter username instead of username. I tested this method on various Linux distributions and found out. This method definitely works on Linux that use LightDM.

Conclusion

In this article, you will learn how to log in to the Linux system without entering a password. After completing the above steps, you will be able to log in to your Linux server without entering a password.

How useful was this post?

Click on a star to rate it!

Average rating 1 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

View More Posts
Richard
Eldernode Writer
We Are Waiting for your valuable comments and you can be sure that it will be answered in the shortest possible time.

Leave a Reply

Your email address will not be published. Required fields are marked *

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way

+8595670151

7 days a week, 24 hours a day