cannot access to my sessionlubuntu - mariadb ignores correct passwordMissing Access Rights for OpenOffice ApplicationsMount disk C automatically when I load UbuntuCannot Boot Ubuntu - TTY1 login loopHow to get snap installed SimpleScreenRecorder to save output file to removable media?Cannot Connect to Internet after first DisconnectUbuntu standard folders changed name (name1, name10, name4 etc)How to Mount and Unmount encrypted folder in Ubuntu 18.04?resetting my passwordDesktop Icons disappeared on Ubuntu 18.04
Counterfeit check
How to recover a single blank shot from a film camera
My student in one course asks for paid tutoring in another course. Appropriate?
How useful is the GRE Exam?
What is "dot" sign in •NO?
Digital signature that is only verifiable by one specific person
Is there any possible way to get these hearts as Adult Link?
First occurrence in the Sixers sequence
How did the European Union reach the figure of 3% as a maximum allowed deficit?
Are there any individual aliens that have gained superpowers in the Marvel universe?
Is it a bad idea to have a pen name with only an initial for a surname?
I just entered the USA without passport control at Atlanta airport
How can caller ID be faked?
Simplify, equivalent for (p ∨ ¬q) ∧ (¬p ∨ ¬q)
writing a function between sets vertically
Do details of my undergraduate title matter?
Print the new site header
A medieval book with a redhead girl as a main character who allies with vampires and werewolves against scientific opposition
I'm yearning in grey
King or Queen-Which piece is which?
How to ask if I can mow my neighbor's lawn
How could I create a situation in which a PC has to make a saving throw or be forced to pet a dog?
Query nodes and attributes of parent ways
Fibonacci sequence and other metallic sequences emerged in the form of fractions
cannot access to my session
lubuntu - mariadb ignores correct passwordMissing Access Rights for OpenOffice ApplicationsMount disk C automatically when I load UbuntuCannot Boot Ubuntu - TTY1 login loopHow to get snap installed SimpleScreenRecorder to save output file to removable media?Cannot Connect to Internet after first DisconnectUbuntu standard folders changed name (name1, name10, name4 etc)How to Mount and Unmount encrypted folder in Ubuntu 18.04?resetting my passwordDesktop Icons disappeared on Ubuntu 18.04
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I changed the name of the /home/mary folder to /home/alex using the following command:
mv /home/mary /home/alex
I restart my pc, I enter my password it loads and redisplays the same page (enter the password) I can not access my session, I think I made a serious mistake when I changed the name of the folder, is there a way to solve this problem I have very important data on my pc
18.04
New contributor
add a comment |
I changed the name of the /home/mary folder to /home/alex using the following command:
mv /home/mary /home/alex
I restart my pc, I enter my password it loads and redisplays the same page (enter the password) I can not access my session, I think I made a serious mistake when I changed the name of the folder, is there a way to solve this problem I have very important data on my pc
18.04
New contributor
Can you log in to a CLI virtual terminal (Ctrl-Alt-F3 etc.)?
– steeldriver
8 hours ago
I click on ctrl + alt + F3 when I am on the login page and it blocks I can not move the cursor or anything. nothing is displayed I will wait even more time
– mzlle
7 hours ago
If login on tty does not work you need to use a live session. Or grub rescue to fix this.
– Rinzwind
7 hours ago
add a comment |
I changed the name of the /home/mary folder to /home/alex using the following command:
mv /home/mary /home/alex
I restart my pc, I enter my password it loads and redisplays the same page (enter the password) I can not access my session, I think I made a serious mistake when I changed the name of the folder, is there a way to solve this problem I have very important data on my pc
18.04
New contributor
I changed the name of the /home/mary folder to /home/alex using the following command:
mv /home/mary /home/alex
I restart my pc, I enter my password it loads and redisplays the same page (enter the password) I can not access my session, I think I made a serious mistake when I changed the name of the folder, is there a way to solve this problem I have very important data on my pc
18.04
18.04
New contributor
New contributor
New contributor
asked 8 hours ago
mzllemzlle
82
82
New contributor
New contributor
Can you log in to a CLI virtual terminal (Ctrl-Alt-F3 etc.)?
– steeldriver
8 hours ago
I click on ctrl + alt + F3 when I am on the login page and it blocks I can not move the cursor or anything. nothing is displayed I will wait even more time
– mzlle
7 hours ago
If login on tty does not work you need to use a live session. Or grub rescue to fix this.
– Rinzwind
7 hours ago
add a comment |
Can you log in to a CLI virtual terminal (Ctrl-Alt-F3 etc.)?
– steeldriver
8 hours ago
I click on ctrl + alt + F3 when I am on the login page and it blocks I can not move the cursor or anything. nothing is displayed I will wait even more time
– mzlle
7 hours ago
If login on tty does not work you need to use a live session. Or grub rescue to fix this.
– Rinzwind
7 hours ago
Can you log in to a CLI virtual terminal (Ctrl-Alt-F3 etc.)?
– steeldriver
8 hours ago
Can you log in to a CLI virtual terminal (Ctrl-Alt-F3 etc.)?
– steeldriver
8 hours ago
I click on ctrl + alt + F3 when I am on the login page and it blocks I can not move the cursor or anything. nothing is displayed I will wait even more time
– mzlle
7 hours ago
I click on ctrl + alt + F3 when I am on the login page and it blocks I can not move the cursor or anything. nothing is displayed I will wait even more time
– mzlle
7 hours ago
If login on tty does not work you need to use a live session. Or grub rescue to fix this.
– Rinzwind
7 hours ago
If login on tty does not work you need to use a live session. Or grub rescue to fix this.
– Rinzwind
7 hours ago
add a comment |
1 Answer
1
active
oldest
votes
I have very important data on my pc
Important data means you have a backup. So you could restore that. That way all you need to worry about is getting a user you can log into. See below.
mv /home/mary /home/alex
Why did you think that was a good idea?
Files like /etc/passwd
and /etc/shadow
as an example do not get updated when you move a user.
The way to do this: create a 2nd user called alex from the "users" option in settings, make it an admin. Then log into alex, confirm it works. Then copy all personal files over to /home/alex
and do a chown -R $USER:$USER /home/alex
while logged in as alex. Do not copy over hidden files. Confirm it works and only then you remove user mary using the deluser
command. Not by removing /home/mary
To fix the current problem:
- Use a live session or grub rescue to get to a command line.
It MIGHT work to just do chown -R alex:alex /home/alex
but if it does not you pile another problem onto this problem.
So the procedure would be ...
From command line:
Start by copying (not moving) everything back to /home/mary
.
Confirm if logging into mary works. If not do a chown -R mary:mary /home/mary
and try again.
If it does work remove /home/alex
(so actual rm
and not deluser
since there is no user alex, only a directory) and proceed with the method listed above.
Also have a look at .xsession-errors
. That is where errors are logged.
I'll follow your step and I'll sign if it's ok or not. thank you so much
– mzlle
7 hours ago
nope. You mount your partition. It will be in /media/disk name/home/ @mzlle add any questions or problems you have into the question. I'll get a notification when you do and will add to my answer if I can :) Another thing: you can mount the disk and then copy files to a 2nd usb disk if need be. Then you have those files saved.
– Rinzwind
7 hours ago
I chose to use the live session method, while waiting for the iso image of ubuntu to download (slow connection from another windows laptop ), I found that the command ctrl alt F3 on which I clicked for a long time was able to open the virtual terminal, in which I renamed my folder from alex to mary again : mv /home/alex /home/mary , the problem is solved ,now i can access to my session thank you very much Rinzwind & steeldriver & user68186
– mzlle
5 hours ago
cool! well done @mzlle If my answer is good enough do accept it (that will remove it from then open answers queue)
– Rinzwind
5 hours ago
yes it's very good, Done ;)
– mzlle
5 hours ago
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',
autoActivateHeartbeat: false,
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
);
);
mzlle is a new contributor. Be nice, and check out our Code of Conduct.
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%2f1151357%2fcannot-access-to-my-session%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I have very important data on my pc
Important data means you have a backup. So you could restore that. That way all you need to worry about is getting a user you can log into. See below.
mv /home/mary /home/alex
Why did you think that was a good idea?
Files like /etc/passwd
and /etc/shadow
as an example do not get updated when you move a user.
The way to do this: create a 2nd user called alex from the "users" option in settings, make it an admin. Then log into alex, confirm it works. Then copy all personal files over to /home/alex
and do a chown -R $USER:$USER /home/alex
while logged in as alex. Do not copy over hidden files. Confirm it works and only then you remove user mary using the deluser
command. Not by removing /home/mary
To fix the current problem:
- Use a live session or grub rescue to get to a command line.
It MIGHT work to just do chown -R alex:alex /home/alex
but if it does not you pile another problem onto this problem.
So the procedure would be ...
From command line:
Start by copying (not moving) everything back to /home/mary
.
Confirm if logging into mary works. If not do a chown -R mary:mary /home/mary
and try again.
If it does work remove /home/alex
(so actual rm
and not deluser
since there is no user alex, only a directory) and proceed with the method listed above.
Also have a look at .xsession-errors
. That is where errors are logged.
I'll follow your step and I'll sign if it's ok or not. thank you so much
– mzlle
7 hours ago
nope. You mount your partition. It will be in /media/disk name/home/ @mzlle add any questions or problems you have into the question. I'll get a notification when you do and will add to my answer if I can :) Another thing: you can mount the disk and then copy files to a 2nd usb disk if need be. Then you have those files saved.
– Rinzwind
7 hours ago
I chose to use the live session method, while waiting for the iso image of ubuntu to download (slow connection from another windows laptop ), I found that the command ctrl alt F3 on which I clicked for a long time was able to open the virtual terminal, in which I renamed my folder from alex to mary again : mv /home/alex /home/mary , the problem is solved ,now i can access to my session thank you very much Rinzwind & steeldriver & user68186
– mzlle
5 hours ago
cool! well done @mzlle If my answer is good enough do accept it (that will remove it from then open answers queue)
– Rinzwind
5 hours ago
yes it's very good, Done ;)
– mzlle
5 hours ago
add a comment |
I have very important data on my pc
Important data means you have a backup. So you could restore that. That way all you need to worry about is getting a user you can log into. See below.
mv /home/mary /home/alex
Why did you think that was a good idea?
Files like /etc/passwd
and /etc/shadow
as an example do not get updated when you move a user.
The way to do this: create a 2nd user called alex from the "users" option in settings, make it an admin. Then log into alex, confirm it works. Then copy all personal files over to /home/alex
and do a chown -R $USER:$USER /home/alex
while logged in as alex. Do not copy over hidden files. Confirm it works and only then you remove user mary using the deluser
command. Not by removing /home/mary
To fix the current problem:
- Use a live session or grub rescue to get to a command line.
It MIGHT work to just do chown -R alex:alex /home/alex
but if it does not you pile another problem onto this problem.
So the procedure would be ...
From command line:
Start by copying (not moving) everything back to /home/mary
.
Confirm if logging into mary works. If not do a chown -R mary:mary /home/mary
and try again.
If it does work remove /home/alex
(so actual rm
and not deluser
since there is no user alex, only a directory) and proceed with the method listed above.
Also have a look at .xsession-errors
. That is where errors are logged.
I'll follow your step and I'll sign if it's ok or not. thank you so much
– mzlle
7 hours ago
nope. You mount your partition. It will be in /media/disk name/home/ @mzlle add any questions or problems you have into the question. I'll get a notification when you do and will add to my answer if I can :) Another thing: you can mount the disk and then copy files to a 2nd usb disk if need be. Then you have those files saved.
– Rinzwind
7 hours ago
I chose to use the live session method, while waiting for the iso image of ubuntu to download (slow connection from another windows laptop ), I found that the command ctrl alt F3 on which I clicked for a long time was able to open the virtual terminal, in which I renamed my folder from alex to mary again : mv /home/alex /home/mary , the problem is solved ,now i can access to my session thank you very much Rinzwind & steeldriver & user68186
– mzlle
5 hours ago
cool! well done @mzlle If my answer is good enough do accept it (that will remove it from then open answers queue)
– Rinzwind
5 hours ago
yes it's very good, Done ;)
– mzlle
5 hours ago
add a comment |
I have very important data on my pc
Important data means you have a backup. So you could restore that. That way all you need to worry about is getting a user you can log into. See below.
mv /home/mary /home/alex
Why did you think that was a good idea?
Files like /etc/passwd
and /etc/shadow
as an example do not get updated when you move a user.
The way to do this: create a 2nd user called alex from the "users" option in settings, make it an admin. Then log into alex, confirm it works. Then copy all personal files over to /home/alex
and do a chown -R $USER:$USER /home/alex
while logged in as alex. Do not copy over hidden files. Confirm it works and only then you remove user mary using the deluser
command. Not by removing /home/mary
To fix the current problem:
- Use a live session or grub rescue to get to a command line.
It MIGHT work to just do chown -R alex:alex /home/alex
but if it does not you pile another problem onto this problem.
So the procedure would be ...
From command line:
Start by copying (not moving) everything back to /home/mary
.
Confirm if logging into mary works. If not do a chown -R mary:mary /home/mary
and try again.
If it does work remove /home/alex
(so actual rm
and not deluser
since there is no user alex, only a directory) and proceed with the method listed above.
Also have a look at .xsession-errors
. That is where errors are logged.
I have very important data on my pc
Important data means you have a backup. So you could restore that. That way all you need to worry about is getting a user you can log into. See below.
mv /home/mary /home/alex
Why did you think that was a good idea?
Files like /etc/passwd
and /etc/shadow
as an example do not get updated when you move a user.
The way to do this: create a 2nd user called alex from the "users" option in settings, make it an admin. Then log into alex, confirm it works. Then copy all personal files over to /home/alex
and do a chown -R $USER:$USER /home/alex
while logged in as alex. Do not copy over hidden files. Confirm it works and only then you remove user mary using the deluser
command. Not by removing /home/mary
To fix the current problem:
- Use a live session or grub rescue to get to a command line.
It MIGHT work to just do chown -R alex:alex /home/alex
but if it does not you pile another problem onto this problem.
So the procedure would be ...
From command line:
Start by copying (not moving) everything back to /home/mary
.
Confirm if logging into mary works. If not do a chown -R mary:mary /home/mary
and try again.
If it does work remove /home/alex
(so actual rm
and not deluser
since there is no user alex, only a directory) and proceed with the method listed above.
Also have a look at .xsession-errors
. That is where errors are logged.
edited 4 hours ago
guntbert
9,717133273
9,717133273
answered 7 hours ago
RinzwindRinzwind
215k28415554
215k28415554
I'll follow your step and I'll sign if it's ok or not. thank you so much
– mzlle
7 hours ago
nope. You mount your partition. It will be in /media/disk name/home/ @mzlle add any questions or problems you have into the question. I'll get a notification when you do and will add to my answer if I can :) Another thing: you can mount the disk and then copy files to a 2nd usb disk if need be. Then you have those files saved.
– Rinzwind
7 hours ago
I chose to use the live session method, while waiting for the iso image of ubuntu to download (slow connection from another windows laptop ), I found that the command ctrl alt F3 on which I clicked for a long time was able to open the virtual terminal, in which I renamed my folder from alex to mary again : mv /home/alex /home/mary , the problem is solved ,now i can access to my session thank you very much Rinzwind & steeldriver & user68186
– mzlle
5 hours ago
cool! well done @mzlle If my answer is good enough do accept it (that will remove it from then open answers queue)
– Rinzwind
5 hours ago
yes it's very good, Done ;)
– mzlle
5 hours ago
add a comment |
I'll follow your step and I'll sign if it's ok or not. thank you so much
– mzlle
7 hours ago
nope. You mount your partition. It will be in /media/disk name/home/ @mzlle add any questions or problems you have into the question. I'll get a notification when you do and will add to my answer if I can :) Another thing: you can mount the disk and then copy files to a 2nd usb disk if need be. Then you have those files saved.
– Rinzwind
7 hours ago
I chose to use the live session method, while waiting for the iso image of ubuntu to download (slow connection from another windows laptop ), I found that the command ctrl alt F3 on which I clicked for a long time was able to open the virtual terminal, in which I renamed my folder from alex to mary again : mv /home/alex /home/mary , the problem is solved ,now i can access to my session thank you very much Rinzwind & steeldriver & user68186
– mzlle
5 hours ago
cool! well done @mzlle If my answer is good enough do accept it (that will remove it from then open answers queue)
– Rinzwind
5 hours ago
yes it's very good, Done ;)
– mzlle
5 hours ago
I'll follow your step and I'll sign if it's ok or not. thank you so much
– mzlle
7 hours ago
I'll follow your step and I'll sign if it's ok or not. thank you so much
– mzlle
7 hours ago
nope. You mount your partition. It will be in /media/disk name/home/ @mzlle add any questions or problems you have into the question. I'll get a notification when you do and will add to my answer if I can :) Another thing: you can mount the disk and then copy files to a 2nd usb disk if need be. Then you have those files saved.
– Rinzwind
7 hours ago
nope. You mount your partition. It will be in /media/disk name/home/ @mzlle add any questions or problems you have into the question. I'll get a notification when you do and will add to my answer if I can :) Another thing: you can mount the disk and then copy files to a 2nd usb disk if need be. Then you have those files saved.
– Rinzwind
7 hours ago
I chose to use the live session method, while waiting for the iso image of ubuntu to download (slow connection from another windows laptop ), I found that the command ctrl alt F3 on which I clicked for a long time was able to open the virtual terminal, in which I renamed my folder from alex to mary again : mv /home/alex /home/mary , the problem is solved ,now i can access to my session thank you very much Rinzwind & steeldriver & user68186
– mzlle
5 hours ago
I chose to use the live session method, while waiting for the iso image of ubuntu to download (slow connection from another windows laptop ), I found that the command ctrl alt F3 on which I clicked for a long time was able to open the virtual terminal, in which I renamed my folder from alex to mary again : mv /home/alex /home/mary , the problem is solved ,now i can access to my session thank you very much Rinzwind & steeldriver & user68186
– mzlle
5 hours ago
cool! well done @mzlle If my answer is good enough do accept it (that will remove it from then open answers queue)
– Rinzwind
5 hours ago
cool! well done @mzlle If my answer is good enough do accept it (that will remove it from then open answers queue)
– Rinzwind
5 hours ago
yes it's very good, Done ;)
– mzlle
5 hours ago
yes it's very good, Done ;)
– mzlle
5 hours ago
add a comment |
mzlle is a new contributor. Be nice, and check out our Code of Conduct.
mzlle is a new contributor. Be nice, and check out our Code of Conduct.
mzlle is a new contributor. Be nice, and check out our Code of Conduct.
mzlle is a new contributor. Be nice, and check out our Code of Conduct.
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.
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%2f1151357%2fcannot-access-to-my-session%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
Can you log in to a CLI virtual terminal (Ctrl-Alt-F3 etc.)?
– steeldriver
8 hours ago
I click on ctrl + alt + F3 when I am on the login page and it blocks I can not move the cursor or anything. nothing is displayed I will wait even more time
– mzlle
7 hours ago
If login on tty does not work you need to use a live session. Or grub rescue to fix this.
– Rinzwind
7 hours ago