How to execute 'sudo' from an account with no password? [duplicate]


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


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