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

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite
1













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.










share|improve this 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 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














up vote
0
down vote

favorite
1













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.










share|improve this 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 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












up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1






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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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
















  • 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















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















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

GRUB: Fatal! inconsistent data read from (0x84) 0+xxxxxx

Problem in reading from socket

Do not install recommended packages of dependencies