How to execute 'sudo' from an account with no password? [duplicate]
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
This question already has an answer here:
Execute sudo without Password?
7 answers
How do I reset a lost administrative password?
14 answers
I have only an account with no password. The other one is the guest.
When I runsudo
and and it asks to introduce the password I click ENTER, and it says to try again. I also tried to go to the account management to change the password but there I also click ENTER in the window that appears to confirm the authentication and it tells me to try again. I have no password.
Is there something that I have to write when I don't have a password by default? What can I do to solve this problem?
Also, I already did passwd
and pressed enter in password UNIX (actual):
and it says that passwd: token authentication error
.
sudo password users
marked as duplicate by wjandrea, user535733, Community⦠Mar 9 at 20:41
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
 |Â
show 1 more comment
up vote
0
down vote
favorite
This question already has an answer here:
Execute sudo without Password?
7 answers
How do I reset a lost administrative password?
14 answers
I have only an account with no password. The other one is the guest.
When I runsudo
and and it asks to introduce the password I click ENTER, and it says to try again. I also tried to go to the account management to change the password but there I also click ENTER in the window that appears to confirm the authentication and it tells me to try again. I have no password.
Is there something that I have to write when I don't have a password by default? What can I do to solve this problem?
Also, I already did passwd
and pressed enter in password UNIX (actual):
and it says that passwd: token authentication error
.
sudo password users
marked as duplicate by wjandrea, user535733, Community⦠Mar 9 at 20:41
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Possibly related: Execute sudo without Password? E.g. See this answer - the solution might be to setNOPASSWD: ALL
in your sudoers file.
â wjandrea
Mar 9 at 19:44
I can't because I can't get passedsudo
command, so I can't set nothing.
â jtrainers
Mar 9 at 19:54
Maybe you could do it in single-user mode? See How do I boot into single-user mode from GRUB?
â wjandrea
Mar 9 at 19:56
Yes, that was just what I did to solve the problem. I used this answer. I reset the password in order to have something to put into thesudo
command. Thanks, man.
â jtrainers
Mar 9 at 20:00
So just to clarify, you created a password for your user account, right?
â wjandrea
Mar 9 at 20:06
 |Â
show 1 more comment
up vote
0
down vote
favorite
up vote
0
down vote
favorite
This question already has an answer here:
Execute sudo without Password?
7 answers
How do I reset a lost administrative password?
14 answers
I have only an account with no password. The other one is the guest.
When I runsudo
and and it asks to introduce the password I click ENTER, and it says to try again. I also tried to go to the account management to change the password but there I also click ENTER in the window that appears to confirm the authentication and it tells me to try again. I have no password.
Is there something that I have to write when I don't have a password by default? What can I do to solve this problem?
Also, I already did passwd
and pressed enter in password UNIX (actual):
and it says that passwd: token authentication error
.
sudo password users
This question already has an answer here:
Execute sudo without Password?
7 answers
How do I reset a lost administrative password?
14 answers
I have only an account with no password. The other one is the guest.
When I runsudo
and and it asks to introduce the password I click ENTER, and it says to try again. I also tried to go to the account management to change the password but there I also click ENTER in the window that appears to confirm the authentication and it tells me to try again. I have no password.
Is there something that I have to write when I don't have a password by default? What can I do to solve this problem?
Also, I already did passwd
and pressed enter in password UNIX (actual):
and it says that passwd: token authentication error
.
This question already has an answer here:
Execute sudo without Password?
7 answers
How do I reset a lost administrative password?
14 answers
sudo password users
sudo password users
edited Mar 9 at 19:31
asked Mar 9 at 19:18
![](https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg?sz=32)
![](https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg?sz=32)
jtrainers
13
13
marked as duplicate by wjandrea, user535733, Community⦠Mar 9 at 20:41
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by wjandrea, user535733, Community⦠Mar 9 at 20:41
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Possibly related: Execute sudo without Password? E.g. See this answer - the solution might be to setNOPASSWD: ALL
in your sudoers file.
â wjandrea
Mar 9 at 19:44
I can't because I can't get passedsudo
command, so I can't set nothing.
â jtrainers
Mar 9 at 19:54
Maybe you could do it in single-user mode? See How do I boot into single-user mode from GRUB?
â wjandrea
Mar 9 at 19:56
Yes, that was just what I did to solve the problem. I used this answer. I reset the password in order to have something to put into thesudo
command. Thanks, man.
â jtrainers
Mar 9 at 20:00
So just to clarify, you created a password for your user account, right?
â wjandrea
Mar 9 at 20:06
 |Â
show 1 more comment
Possibly related: Execute sudo without Password? E.g. See this answer - the solution might be to setNOPASSWD: ALL
in your sudoers file.
â wjandrea
Mar 9 at 19:44
I can't because I can't get passedsudo
command, so I can't set nothing.
â jtrainers
Mar 9 at 19:54
Maybe you could do it in single-user mode? See How do I boot into single-user mode from GRUB?
â wjandrea
Mar 9 at 19:56
Yes, that was just what I did to solve the problem. I used this answer. I reset the password in order to have something to put into thesudo
command. Thanks, man.
â jtrainers
Mar 9 at 20:00
So just to clarify, you created a password for your user account, right?
â wjandrea
Mar 9 at 20:06
Possibly related: Execute sudo without Password? E.g. See this answer - the solution might be to set
NOPASSWD: ALL
in your sudoers file.â wjandrea
Mar 9 at 19:44
Possibly related: Execute sudo without Password? E.g. See this answer - the solution might be to set
NOPASSWD: ALL
in your sudoers file.â wjandrea
Mar 9 at 19:44
I can't because I can't get passed
sudo
command, so I can't set nothing.â jtrainers
Mar 9 at 19:54
I can't because I can't get passed
sudo
command, so I can't set nothing.â jtrainers
Mar 9 at 19:54
Maybe you could do it in single-user mode? See How do I boot into single-user mode from GRUB?
â wjandrea
Mar 9 at 19:56
Maybe you could do it in single-user mode? See How do I boot into single-user mode from GRUB?
â wjandrea
Mar 9 at 19:56
Yes, that was just what I did to solve the problem. I used this answer. I reset the password in order to have something to put into the
sudo
command. Thanks, man.â jtrainers
Mar 9 at 20:00
Yes, that was just what I did to solve the problem. I used this answer. I reset the password in order to have something to put into the
sudo
command. Thanks, man.â jtrainers
Mar 9 at 20:00
So just to clarify, you created a password for your user account, right?
â wjandrea
Mar 9 at 20:06
So just to clarify, you created a password for your user account, right?
â wjandrea
Mar 9 at 20:06
 |Â
show 1 more comment
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Possibly related: Execute sudo without Password? E.g. See this answer - the solution might be to set
NOPASSWD: ALL
in your sudoers file.â wjandrea
Mar 9 at 19:44
I can't because I can't get passed
sudo
command, so I can't set nothing.â jtrainers
Mar 9 at 19:54
Maybe you could do it in single-user mode? See How do I boot into single-user mode from GRUB?
â wjandrea
Mar 9 at 19:56
Yes, that was just what I did to solve the problem. I used this answer. I reset the password in order to have something to put into the
sudo
command. Thanks, man.â jtrainers
Mar 9 at 20:00
So just to clarify, you created a password for your user account, right?
â wjandrea
Mar 9 at 20:06