Ubuntu 14.04 Login Loop from running startx in root
up vote
3
down vote
favorite
I made a really big mistake and no other articles seem to be fixing this. I was trying to fix my new Ubuntu laptop that I bought because it has the username defualt (spelled wrong) and I didn't like the terminal showing defualt@defualtHP. I think I was able to change it to rootMLR@MLR. I did this from pressing Ctrl+Alt+F1 and using commands I looked up. Then I stupidly entered "startx". Now I can't log in as rootMLR.
So far I have tried:
chown rootMLR:defualt .Xauthority
The outputfor ls -lah
is now:
-rw------- 1 rootMLR defualt 0 Nov 00:46 .Xauthority
If i try
chown rootMLR:rootMLR .Xauthority
it says invalid group.
How can I tell what I should put in the chown command?
But when I reboot, I still am stuck in a log in loop.
After the reboot when I try
chown rootMLR:defualt .Xauthority
it sayscannot access '.Xauthority' No such file or directory
.
I tried deleting it with
rm /home/rootMLR/.Xauthority
and then rebooting but it doesn't work.
This is all because I stupidly did startx
from the Ctrl+Alt+F1
windows.
I'm not attached to this at all yet; is there a way to restore factory defaults or even delete a user all together or something? Or restore the entire operating system to default? I don't have a boot disk or anything for this unfortunately. I can't believe it was working fine and I messed it up; this is very frustrating.
Any help would be immensely appreciated. I need this PC for a project for work and I spent a lot of money on it. I am a super-noob, I need command-by-command instructions if possible. I use Red Hat at work and I really want to start using Linux at home but now I'm very worried that I will not be able to fix this.
command-line login chown
add a comment |
up vote
3
down vote
favorite
I made a really big mistake and no other articles seem to be fixing this. I was trying to fix my new Ubuntu laptop that I bought because it has the username defualt (spelled wrong) and I didn't like the terminal showing defualt@defualtHP. I think I was able to change it to rootMLR@MLR. I did this from pressing Ctrl+Alt+F1 and using commands I looked up. Then I stupidly entered "startx". Now I can't log in as rootMLR.
So far I have tried:
chown rootMLR:defualt .Xauthority
The outputfor ls -lah
is now:
-rw------- 1 rootMLR defualt 0 Nov 00:46 .Xauthority
If i try
chown rootMLR:rootMLR .Xauthority
it says invalid group.
How can I tell what I should put in the chown command?
But when I reboot, I still am stuck in a log in loop.
After the reboot when I try
chown rootMLR:defualt .Xauthority
it sayscannot access '.Xauthority' No such file or directory
.
I tried deleting it with
rm /home/rootMLR/.Xauthority
and then rebooting but it doesn't work.
This is all because I stupidly did startx
from the Ctrl+Alt+F1
windows.
I'm not attached to this at all yet; is there a way to restore factory defaults or even delete a user all together or something? Or restore the entire operating system to default? I don't have a boot disk or anything for this unfortunately. I can't believe it was working fine and I messed it up; this is very frustrating.
Any help would be immensely appreciated. I need this PC for a project for work and I spent a lot of money on it. I am a super-noob, I need command-by-command instructions if possible. I use Red Hat at work and I really want to start using Linux at home but now I'm very worried that I will not be able to fix this.
command-line login chown
It's 14.04 version 32 bit. If there's any other information that can help me get an answer, I'll provide it. I've been up for hours trying to fix this.
– Mike_lr
Nov 18 '14 at 6:16
It is very difficult to help without knowing what you did to "fix the name" exactly (and BTW that was not quite right because you have not changed the group. What about creating another administrative user from command line, see askubuntu.com/questions/70236/… and then deleting the users with the mess and then starting anew? See also askubuntu.com/questions/7477/…
– Rmano
Nov 18 '14 at 8:53
What group do you see when you login asrootMLR
in Ctrl+Alt+F1 and typeid
?
– Abey
Nov 18 '14 at 10:48
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I made a really big mistake and no other articles seem to be fixing this. I was trying to fix my new Ubuntu laptop that I bought because it has the username defualt (spelled wrong) and I didn't like the terminal showing defualt@defualtHP. I think I was able to change it to rootMLR@MLR. I did this from pressing Ctrl+Alt+F1 and using commands I looked up. Then I stupidly entered "startx". Now I can't log in as rootMLR.
So far I have tried:
chown rootMLR:defualt .Xauthority
The outputfor ls -lah
is now:
-rw------- 1 rootMLR defualt 0 Nov 00:46 .Xauthority
If i try
chown rootMLR:rootMLR .Xauthority
it says invalid group.
How can I tell what I should put in the chown command?
But when I reboot, I still am stuck in a log in loop.
After the reboot when I try
chown rootMLR:defualt .Xauthority
it sayscannot access '.Xauthority' No such file or directory
.
I tried deleting it with
rm /home/rootMLR/.Xauthority
and then rebooting but it doesn't work.
This is all because I stupidly did startx
from the Ctrl+Alt+F1
windows.
I'm not attached to this at all yet; is there a way to restore factory defaults or even delete a user all together or something? Or restore the entire operating system to default? I don't have a boot disk or anything for this unfortunately. I can't believe it was working fine and I messed it up; this is very frustrating.
Any help would be immensely appreciated. I need this PC for a project for work and I spent a lot of money on it. I am a super-noob, I need command-by-command instructions if possible. I use Red Hat at work and I really want to start using Linux at home but now I'm very worried that I will not be able to fix this.
command-line login chown
I made a really big mistake and no other articles seem to be fixing this. I was trying to fix my new Ubuntu laptop that I bought because it has the username defualt (spelled wrong) and I didn't like the terminal showing defualt@defualtHP. I think I was able to change it to rootMLR@MLR. I did this from pressing Ctrl+Alt+F1 and using commands I looked up. Then I stupidly entered "startx". Now I can't log in as rootMLR.
So far I have tried:
chown rootMLR:defualt .Xauthority
The outputfor ls -lah
is now:
-rw------- 1 rootMLR defualt 0 Nov 00:46 .Xauthority
If i try
chown rootMLR:rootMLR .Xauthority
it says invalid group.
How can I tell what I should put in the chown command?
But when I reboot, I still am stuck in a log in loop.
After the reboot when I try
chown rootMLR:defualt .Xauthority
it sayscannot access '.Xauthority' No such file or directory
.
I tried deleting it with
rm /home/rootMLR/.Xauthority
and then rebooting but it doesn't work.
This is all because I stupidly did startx
from the Ctrl+Alt+F1
windows.
I'm not attached to this at all yet; is there a way to restore factory defaults or even delete a user all together or something? Or restore the entire operating system to default? I don't have a boot disk or anything for this unfortunately. I can't believe it was working fine and I messed it up; this is very frustrating.
Any help would be immensely appreciated. I need this PC for a project for work and I spent a lot of money on it. I am a super-noob, I need command-by-command instructions if possible. I use Red Hat at work and I really want to start using Linux at home but now I'm very worried that I will not be able to fix this.
command-line login chown
command-line login chown
edited Nov 18 '14 at 8:50
Rmano
25.1k876144
25.1k876144
asked Nov 18 '14 at 6:00
Mike_lr
1613
1613
It's 14.04 version 32 bit. If there's any other information that can help me get an answer, I'll provide it. I've been up for hours trying to fix this.
– Mike_lr
Nov 18 '14 at 6:16
It is very difficult to help without knowing what you did to "fix the name" exactly (and BTW that was not quite right because you have not changed the group. What about creating another administrative user from command line, see askubuntu.com/questions/70236/… and then deleting the users with the mess and then starting anew? See also askubuntu.com/questions/7477/…
– Rmano
Nov 18 '14 at 8:53
What group do you see when you login asrootMLR
in Ctrl+Alt+F1 and typeid
?
– Abey
Nov 18 '14 at 10:48
add a comment |
It's 14.04 version 32 bit. If there's any other information that can help me get an answer, I'll provide it. I've been up for hours trying to fix this.
– Mike_lr
Nov 18 '14 at 6:16
It is very difficult to help without knowing what you did to "fix the name" exactly (and BTW that was not quite right because you have not changed the group. What about creating another administrative user from command line, see askubuntu.com/questions/70236/… and then deleting the users with the mess and then starting anew? See also askubuntu.com/questions/7477/…
– Rmano
Nov 18 '14 at 8:53
What group do you see when you login asrootMLR
in Ctrl+Alt+F1 and typeid
?
– Abey
Nov 18 '14 at 10:48
It's 14.04 version 32 bit. If there's any other information that can help me get an answer, I'll provide it. I've been up for hours trying to fix this.
– Mike_lr
Nov 18 '14 at 6:16
It's 14.04 version 32 bit. If there's any other information that can help me get an answer, I'll provide it. I've been up for hours trying to fix this.
– Mike_lr
Nov 18 '14 at 6:16
It is very difficult to help without knowing what you did to "fix the name" exactly (and BTW that was not quite right because you have not changed the group. What about creating another administrative user from command line, see askubuntu.com/questions/70236/… and then deleting the users with the mess and then starting anew? See also askubuntu.com/questions/7477/…
– Rmano
Nov 18 '14 at 8:53
It is very difficult to help without knowing what you did to "fix the name" exactly (and BTW that was not quite right because you have not changed the group. What about creating another administrative user from command line, see askubuntu.com/questions/70236/… and then deleting the users with the mess and then starting anew? See also askubuntu.com/questions/7477/…
– Rmano
Nov 18 '14 at 8:53
What group do you see when you login as
rootMLR
in Ctrl+Alt+F1 and type id
?– Abey
Nov 18 '14 at 10:48
What group do you see when you login as
rootMLR
in Ctrl+Alt+F1 and type id
?– Abey
Nov 18 '14 at 10:48
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
You could maybe enter this from dropshell:
linux64
grub-install
update-grub
update-grub2
efibootmgr
and then from tty enter this:
sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
and then enter in tty:
sudo apt-get upgrade
reboot
and it might work fine this way.
add a comment |
up vote
0
down vote
Just been though all this after splitting my system between an SSD and HDD for my user data and couldn't get back in from the desktop.
The problem occurs because when you copy, generally you use root and thus it becomes the owner, which results in your login not being accepted in silence (rather than it beeping which is the case if the login name is wrong).All your settings are no longer available to the desktop through ownership conflicts
I fixed it as follows : Check with ls -l /home/username
sudo su to drop to root
cd /home
chown -R username:username username
chmod -R 755
mount -a or reboot
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f550896%2fubuntu-14-04-login-loop-from-running-startx-in-root%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
You could maybe enter this from dropshell:
linux64
grub-install
update-grub
update-grub2
efibootmgr
and then from tty enter this:
sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
and then enter in tty:
sudo apt-get upgrade
reboot
and it might work fine this way.
add a comment |
up vote
0
down vote
You could maybe enter this from dropshell:
linux64
grub-install
update-grub
update-grub2
efibootmgr
and then from tty enter this:
sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
and then enter in tty:
sudo apt-get upgrade
reboot
and it might work fine this way.
add a comment |
up vote
0
down vote
up vote
0
down vote
You could maybe enter this from dropshell:
linux64
grub-install
update-grub
update-grub2
efibootmgr
and then from tty enter this:
sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
and then enter in tty:
sudo apt-get upgrade
reboot
and it might work fine this way.
You could maybe enter this from dropshell:
linux64
grub-install
update-grub
update-grub2
efibootmgr
and then from tty enter this:
sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
and then enter in tty:
sudo apt-get upgrade
reboot
and it might work fine this way.
answered Nov 18 '14 at 17:45
Michael
98831222
98831222
add a comment |
add a comment |
up vote
0
down vote
Just been though all this after splitting my system between an SSD and HDD for my user data and couldn't get back in from the desktop.
The problem occurs because when you copy, generally you use root and thus it becomes the owner, which results in your login not being accepted in silence (rather than it beeping which is the case if the login name is wrong).All your settings are no longer available to the desktop through ownership conflicts
I fixed it as follows : Check with ls -l /home/username
sudo su to drop to root
cd /home
chown -R username:username username
chmod -R 755
mount -a or reboot
add a comment |
up vote
0
down vote
Just been though all this after splitting my system between an SSD and HDD for my user data and couldn't get back in from the desktop.
The problem occurs because when you copy, generally you use root and thus it becomes the owner, which results in your login not being accepted in silence (rather than it beeping which is the case if the login name is wrong).All your settings are no longer available to the desktop through ownership conflicts
I fixed it as follows : Check with ls -l /home/username
sudo su to drop to root
cd /home
chown -R username:username username
chmod -R 755
mount -a or reboot
add a comment |
up vote
0
down vote
up vote
0
down vote
Just been though all this after splitting my system between an SSD and HDD for my user data and couldn't get back in from the desktop.
The problem occurs because when you copy, generally you use root and thus it becomes the owner, which results in your login not being accepted in silence (rather than it beeping which is the case if the login name is wrong).All your settings are no longer available to the desktop through ownership conflicts
I fixed it as follows : Check with ls -l /home/username
sudo su to drop to root
cd /home
chown -R username:username username
chmod -R 755
mount -a or reboot
Just been though all this after splitting my system between an SSD and HDD for my user data and couldn't get back in from the desktop.
The problem occurs because when you copy, generally you use root and thus it becomes the owner, which results in your login not being accepted in silence (rather than it beeping which is the case if the login name is wrong).All your settings are no longer available to the desktop through ownership conflicts
I fixed it as follows : Check with ls -l /home/username
sudo su to drop to root
cd /home
chown -R username:username username
chmod -R 755
mount -a or reboot
answered Nov 19 '14 at 16:38
David Walker
120111
120111
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f550896%2fubuntu-14-04-login-loop-from-running-startx-in-root%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
It's 14.04 version 32 bit. If there's any other information that can help me get an answer, I'll provide it. I've been up for hours trying to fix this.
– Mike_lr
Nov 18 '14 at 6:16
It is very difficult to help without knowing what you did to "fix the name" exactly (and BTW that was not quite right because you have not changed the group. What about creating another administrative user from command line, see askubuntu.com/questions/70236/… and then deleting the users with the mess and then starting anew? See also askubuntu.com/questions/7477/…
– Rmano
Nov 18 '14 at 8:53
What group do you see when you login as
rootMLR
in Ctrl+Alt+F1 and typeid
?– Abey
Nov 18 '14 at 10:48