How to Factory Reset Ubuntu 17.10 [duplicate]

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








up vote
1
down vote

favorite













This question already has an answer here:



  • How to modify an invalid '/etc/sudoers' file?

    12 answers



I would like to know how to reset Ubuntu to default and if it resets my terminal.



I tried to put in a command to make it if I messed up my password it would tell me something sassy. I did that in the /etc/sudoers/ file, and I messed it up. I can't use any sudo command and I would like to reset my terminal, or my whole Ubuntu set up. I tried to initiate super-user with su and I put in my password correctly, as this is a private computer, and it told me su: Authentication Failure.



If you could please tell me how I could undo my mistake I would appreciate it. This is a new computer so Factory Reset would not delete anything important. I will provide anymore detail that you may request, if I know it. I am new to Ubuntu and Linux.










share|improve this question















marked as duplicate by muru command-line
Users with the  command-line badge can single-handedly close command-line questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Jan 28 at 5:14


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.


















    up vote
    1
    down vote

    favorite













    This question already has an answer here:



    • How to modify an invalid '/etc/sudoers' file?

      12 answers



    I would like to know how to reset Ubuntu to default and if it resets my terminal.



    I tried to put in a command to make it if I messed up my password it would tell me something sassy. I did that in the /etc/sudoers/ file, and I messed it up. I can't use any sudo command and I would like to reset my terminal, or my whole Ubuntu set up. I tried to initiate super-user with su and I put in my password correctly, as this is a private computer, and it told me su: Authentication Failure.



    If you could please tell me how I could undo my mistake I would appreciate it. This is a new computer so Factory Reset would not delete anything important. I will provide anymore detail that you may request, if I know it. I am new to Ubuntu and Linux.










    share|improve this question















    marked as duplicate by muru command-line
    Users with the  command-line badge can single-handedly close command-line questions as duplicates and reopen them as needed.

    StackExchange.ready(function()
    if (StackExchange.options.isMobile) return;

    $('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
    var $hover = $(this).addClass('hover-bound'),
    $msg = $hover.siblings('.dupe-hammer-message');

    $hover.hover(
    function()
    $hover.showInfoMessage('',
    messageElement: $msg.clone().show(),
    transient: false,
    position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
    dismissable: false,
    relativeToBody: true
    );
    ,
    function()
    StackExchange.helpers.removeMessages();

    );
    );
    );
    Jan 28 at 5:14


    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.
















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite












      This question already has an answer here:



      • How to modify an invalid '/etc/sudoers' file?

        12 answers



      I would like to know how to reset Ubuntu to default and if it resets my terminal.



      I tried to put in a command to make it if I messed up my password it would tell me something sassy. I did that in the /etc/sudoers/ file, and I messed it up. I can't use any sudo command and I would like to reset my terminal, or my whole Ubuntu set up. I tried to initiate super-user with su and I put in my password correctly, as this is a private computer, and it told me su: Authentication Failure.



      If you could please tell me how I could undo my mistake I would appreciate it. This is a new computer so Factory Reset would not delete anything important. I will provide anymore detail that you may request, if I know it. I am new to Ubuntu and Linux.










      share|improve this question
















      This question already has an answer here:



      • How to modify an invalid '/etc/sudoers' file?

        12 answers



      I would like to know how to reset Ubuntu to default and if it resets my terminal.



      I tried to put in a command to make it if I messed up my password it would tell me something sassy. I did that in the /etc/sudoers/ file, and I messed it up. I can't use any sudo command and I would like to reset my terminal, or my whole Ubuntu set up. I tried to initiate super-user with su and I put in my password correctly, as this is a private computer, and it told me su: Authentication Failure.



      If you could please tell me how I could undo my mistake I would appreciate it. This is a new computer so Factory Reset would not delete anything important. I will provide anymore detail that you may request, if I know it. I am new to Ubuntu and Linux.





      This question already has an answer here:



      • How to modify an invalid '/etc/sudoers' file?

        12 answers







      command-line sudo






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 28 at 2:30









      wjandrea

      7,34042256




      7,34042256










      asked Jan 28 at 1:57









      Dillon Key

      613




      613




      marked as duplicate by muru command-line
      Users with the  command-line badge can single-handedly close command-line questions as duplicates and reopen them as needed.

      StackExchange.ready(function()
      if (StackExchange.options.isMobile) return;

      $('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
      var $hover = $(this).addClass('hover-bound'),
      $msg = $hover.siblings('.dupe-hammer-message');

      $hover.hover(
      function()
      $hover.showInfoMessage('',
      messageElement: $msg.clone().show(),
      transient: false,
      position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
      dismissable: false,
      relativeToBody: true
      );
      ,
      function()
      StackExchange.helpers.removeMessages();

      );
      );
      );
      Jan 28 at 5:14


      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 muru command-line
      Users with the  command-line badge can single-handedly close command-line questions as duplicates and reopen them as needed.

      StackExchange.ready(function()
      if (StackExchange.options.isMobile) return;

      $('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
      var $hover = $(this).addClass('hover-bound'),
      $msg = $hover.siblings('.dupe-hammer-message');

      $hover.hover(
      function()
      $hover.showInfoMessage('',
      messageElement: $msg.clone().show(),
      transient: false,
      position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
      dismissable: false,
      relativeToBody: true
      );
      ,
      function()
      StackExchange.helpers.removeMessages();

      );
      );
      );
      Jan 28 at 5:14


      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.






















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          3
          down vote













          There is no such thing as 'Factory Reset' for the same reason there is no 'Restore Partition': Those features are meant to preserve your Product Key (or equivalent). Product Keys track paid software. Ubuntu does not have one.



          The equivalent of a 'Factory Reset' in the Ubuntu world is to simply dig out your original install media and reinstall.






          share|improve this answer





























            up vote
            2
            down vote













            If you messed up your /etc/sudoers file you should be able to boot with your live USB and copy it over.



            Completely reinstalling Ubuntu should not be necessary in such a case.



            When you say "sassy" I assume you mean sudo insults.






            share|improve this answer



























              up vote
              0
              down vote













              su requires root's password rather than yours, and root is unlikely to have a password on Ubuntu, so su is generally unusable by itself.



              You can try pkexec in place of sudo (as in pkexec visudo) and undo your changes to /etc/sudoers.






              share|improve this answer



























                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes








                up vote
                3
                down vote













                There is no such thing as 'Factory Reset' for the same reason there is no 'Restore Partition': Those features are meant to preserve your Product Key (or equivalent). Product Keys track paid software. Ubuntu does not have one.



                The equivalent of a 'Factory Reset' in the Ubuntu world is to simply dig out your original install media and reinstall.






                share|improve this answer


























                  up vote
                  3
                  down vote













                  There is no such thing as 'Factory Reset' for the same reason there is no 'Restore Partition': Those features are meant to preserve your Product Key (or equivalent). Product Keys track paid software. Ubuntu does not have one.



                  The equivalent of a 'Factory Reset' in the Ubuntu world is to simply dig out your original install media and reinstall.






                  share|improve this answer
























                    up vote
                    3
                    down vote










                    up vote
                    3
                    down vote









                    There is no such thing as 'Factory Reset' for the same reason there is no 'Restore Partition': Those features are meant to preserve your Product Key (or equivalent). Product Keys track paid software. Ubuntu does not have one.



                    The equivalent of a 'Factory Reset' in the Ubuntu world is to simply dig out your original install media and reinstall.






                    share|improve this answer














                    There is no such thing as 'Factory Reset' for the same reason there is no 'Restore Partition': Those features are meant to preserve your Product Key (or equivalent). Product Keys track paid software. Ubuntu does not have one.



                    The equivalent of a 'Factory Reset' in the Ubuntu world is to simply dig out your original install media and reinstall.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Jan 28 at 2:27

























                    answered Jan 28 at 2:21









                    user535733

                    6,09022437




                    6,09022437






















                        up vote
                        2
                        down vote













                        If you messed up your /etc/sudoers file you should be able to boot with your live USB and copy it over.



                        Completely reinstalling Ubuntu should not be necessary in such a case.



                        When you say "sassy" I assume you mean sudo insults.






                        share|improve this answer
























                          up vote
                          2
                          down vote













                          If you messed up your /etc/sudoers file you should be able to boot with your live USB and copy it over.



                          Completely reinstalling Ubuntu should not be necessary in such a case.



                          When you say "sassy" I assume you mean sudo insults.






                          share|improve this answer






















                            up vote
                            2
                            down vote










                            up vote
                            2
                            down vote









                            If you messed up your /etc/sudoers file you should be able to boot with your live USB and copy it over.



                            Completely reinstalling Ubuntu should not be necessary in such a case.



                            When you say "sassy" I assume you mean sudo insults.






                            share|improve this answer












                            If you messed up your /etc/sudoers file you should be able to boot with your live USB and copy it over.



                            Completely reinstalling Ubuntu should not be necessary in such a case.



                            When you say "sassy" I assume you mean sudo insults.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Jan 28 at 3:25









                            WinEunuuchs2Unix

                            36.8k760138




                            36.8k760138




















                                up vote
                                0
                                down vote













                                su requires root's password rather than yours, and root is unlikely to have a password on Ubuntu, so su is generally unusable by itself.



                                You can try pkexec in place of sudo (as in pkexec visudo) and undo your changes to /etc/sudoers.






                                share|improve this answer
























                                  up vote
                                  0
                                  down vote













                                  su requires root's password rather than yours, and root is unlikely to have a password on Ubuntu, so su is generally unusable by itself.



                                  You can try pkexec in place of sudo (as in pkexec visudo) and undo your changes to /etc/sudoers.






                                  share|improve this answer






















                                    up vote
                                    0
                                    down vote










                                    up vote
                                    0
                                    down vote









                                    su requires root's password rather than yours, and root is unlikely to have a password on Ubuntu, so su is generally unusable by itself.



                                    You can try pkexec in place of sudo (as in pkexec visudo) and undo your changes to /etc/sudoers.






                                    share|improve this answer












                                    su requires root's password rather than yours, and root is unlikely to have a password on Ubuntu, so su is generally unusable by itself.



                                    You can try pkexec in place of sudo (as in pkexec visudo) and undo your changes to /etc/sudoers.







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Jan 28 at 4:55









                                    Chai T. Rex

                                    3,82611132




                                    3,82611132












                                        Popular posts from this blog

                                        pylint3 and pip3 broken

                                        Missing snmpget and snmpwalk

                                        How to enroll fingerprints to Ubuntu 17.10 with VFS491