cannot use sudo on ubuntu server passwordless authentication?
Posted
by
Lucas Crijns
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Lucas Crijns
Published on 2014-08-22T15:30:44Z
Indexed on
2014/08/22
16:36 UTC
Read the original article
Hit count: 362
Hello I'm new at the forum and I want to introduce myself: I'm Lucas Crijns and I'm a very happy user of ubuntu server.
I was reading about passwordless authentication with ssh. So I made a key and published it to ubuntu server, it worked well and I could login with my private key. But then I locked the account to prevent hacking from my password. After I ran "passwd -l lucas", I was not longer able by my next login to use sudo. Because it was asking for a password and I locked it. I was thinking that sudo would also be without a password. My question is now: is it possible to use sudo? And how can I enable it without a valid password for sudo?
Thank you for your help!
© Ask Ubuntu or respective owner