How to Factory Reset Ubuntu 17.10 [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
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.
command-line sudo
marked as duplicate by muru
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.
add a comment |Â
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.
command-line sudo
marked as duplicate by muru
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.
add a comment |Â
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.
command-line sudo
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
command-line sudo
edited Jan 28 at 2:30
![](https://i.stack.imgur.com/eVuAv.png?s=32&g=1)
![](https://i.stack.imgur.com/eVuAv.png?s=32&g=1)
wjandrea
7,34042256
7,34042256
asked Jan 28 at 1:57
Dillon Key
613
613
marked as duplicate by muru
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
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.
add a comment |Â
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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
.
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
edited Jan 28 at 2:27
answered Jan 28 at 2:21
![](https://i.stack.imgur.com/BQUjA.jpg?s=32&g=1)
![](https://i.stack.imgur.com/BQUjA.jpg?s=32&g=1)
user535733
6,09022437
6,09022437
add a comment |Â
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
answered Jan 28 at 3:25
![](https://i.stack.imgur.com/2SXNl.jpg?s=32&g=1)
![](https://i.stack.imgur.com/2SXNl.jpg?s=32&g=1)
WinEunuuchs2Unix
36.8k760138
36.8k760138
add a comment |Â
add a comment |Â
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
.
add a comment |Â
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
.
add a comment |Â
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
.
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
.
answered Jan 28 at 4:55
![](https://i.stack.imgur.com/QxbAJ.png?s=32&g=1)
![](https://i.stack.imgur.com/QxbAJ.png?s=32&g=1)
Chai T. Rex
3,82611132
3,82611132
add a comment |Â
add a comment |Â