๐
๐
๐
๐
k3s Guides
Searchโฆ
๐
๐
๐
๐
k3s Guides
Easy k3s guides
Passwordless SSH Login
Passwordless sudo
k3s manual install
Installing Longhorn Storage Controller
Getting KubeApps installed
Creating k3s cluster with Ansible
Powered By
GitBook
Passwordless sudo
When executing commands as another user, then
sudo
is your friend.
Of course, one needs to authenticate correctly. But in day-to-day work it is tedious having to provide the password all the time.
The
sudo
-command can be made โpasswordlessโ by using a tool called
visudo
.
Just type
1
sudo visudo
Copied!
and your favourite editor will open.
Add the following line at the
very bottom
(important!)
1
username ALL=(ALL) NOPASSWD:ALL
Copied!
That allows the user with name to execute commands as
root
-user.
Previous
Passwordless SSH Login
Next
k3s manual install
Last modified
1yr ago
Copy link