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;








1















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










share|improve this question







New contributor



mzlle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • 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


















1















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










share|improve this question







New contributor



mzlle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • 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














1












1








1








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










share|improve this question







New contributor



mzlle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











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






share|improve this question







New contributor



mzlle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question







New contributor



mzlle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question






New contributor



mzlle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 8 hours ago









mzllemzlle

82




82




New contributor



mzlle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




mzlle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.














  • 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











  • 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











1 Answer
1






active

oldest

votes


















2















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.






share|improve this answer

























  • 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











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.









draft saved

draft discarded


















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









2















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.






share|improve this answer

























  • 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















2















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.






share|improve this answer

























  • 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













2












2








2








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.






share|improve this answer
















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.







share|improve this answer














share|improve this answer



share|improve this answer








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

















  • 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










mzlle is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

Ласкавець круглолистий Зміст Опис | Поширення | Галерея | Примітки | Посилання | Навігаційне меню58171138361-22960890446Bupleurum rotundifoliumEuro+Med PlantbasePlants of the World Online — Kew ScienceGermplasm Resources Information Network (GRIN)Ласкавецькн. VI : Літери Ком — Левиправивши або дописавши її