Login gives error - Can't create /home/username/* on Linux Mint 17.2
The issue:
I changed my password earlier today, but I must've made a typo, because I couldn't log in afterwards. I booted into the Grub menu and started a passwordless root shell to reset my password. This was succesful, as I could now enter the new new password and get past the login screen. However, as soon as I do that, I get an error that says: Code:
Your session only lasted less than 10 seconds. If you have not logged out yourself, this could mean there is some installation problem, or that you may be out of diskspace. Try logging in with one of the failsafe sessions to see if you can fix this problem. Note: where it says [username] in the above text, the actual error displayed my actual username. I am, however, paranoid when it comes to my online identity, hence I censored it in the error printed above. I have tried:
Other relevant info I have linux mint 17.2 running on a 1TB external HDD, as my internal HD died months ago. So far, this worked like a charm. I am now using a live usb drive, as I hoped to be able to retrieve some essential files (such as my KeePass database file), but the install on the external HDD is encrypted through the use of the 'encrypt partition' option during install. I have been using Linux Mint for about 6-8 months now, so I am somewhat proficient in the use of the terminal for day-to-day use, but I am fully ignorant on the underlying workings of Linux and the root command options at my disposal. ---Edit--- This is the Linux distro I'm using on the live USB, which is the same one as I've installed on the external HDD Code:
mint@mint ~ $ cat /etc/*-release Code:
Linux 3.16.0-38-generic x86_64 I've just tried to use the command line to access my encrypted files, but failed miserably Code:
mint@mint ~ $ ecryptfs-mount-private |
my first self help try if this was to happen to me. I'd go into root account, if you do not have one then you'd have to use sudo to create another user. Log out of your user account- login to the other account. if no issues arise from this, it is a good sign.
then now that you have no root account in your new (other) account using sudo Code:
userdel yourUserName Code:
useradd yourExactOldUserName you should get a message home directory already there ..... this should make your system give everything the proper links to your user home that would count as a dirty fix in my book if it works, work around. keep your new user omove all of your files into that one then Code:
userdel -r userName -- that's what I'd try But this says Quote:
Code:
cat /etc/passwd |
Thanks BW-userx, I'm going to try that. I'll report back :)
I am definitely not out of diskspace. I've used less than 10% of my HDD, which is also what I can see from the Live USB drive. |
|
Does the encrypted home option use your login password as your encryption password too? If so it sounds like your encrypted home is using your typoed password but your account is using the new password you set from the root shell, so they are out of sync.
You might have to boot back to the root shell, and reset your user account password to whatever it was before so that you can get your encrypted home mounted again. I know that will be a bit of a problem since you don't know what the password was changed to :) edit: The Linux Mint forums are down at the moment, but this post from the google cache suggests that changing your users password from a root shell is going to cause problems: http://webcache.googleusercontent.co...trip=1&vwsrc=0 |
Quote:
These two threads I had found as well, but these didn't really help me out. Firstly, they seem to deal with a different issue than mine, and also these threads are quite old, so any bugs present back then would likely have been resolved by now. |
Quote:
you can get into your hdd on your computer and visually verfiy your actual home / user is there? according to this on access control list Quote:
you might want to take a look at this arch wiki so you can investagate your ACL. see if you find something a mist. oh yes At your login screen can you switch tty's using Alt+Ctrl+F1 - F7? if yes try loggin user name do an update && upgrade Just knocking out options |
Quote:
I did find this threat http://ubuntuforums.org/archive/inde...t-1597246.html outlining how to recover a passphrase, but this brought me no joy Code:
mint@mint ~ $ ecryptfs-unwrap-passphrase /media/34e5c4fa-0621-46cb-83b0-763c2a0dc49c/home/.private/Tijmen/.ecryptfs/wrapped-passphrase |
Quote:
I wouldn't know about the ACL, I'll google it and see what I can find out. |
Quote:
creating a new user if you can log in then your in your home directory just may be no other directories have been created. it happens, but you are in the users home directory. that link shows how to configure your ACL you're encripted??? :doh: what are you running again? I've never had such a problem as this before in everything I've used before. from what @af7567 said, and if you're encripted you just may have screwed yourself. you need an LQ ecription expert |
Quote:
I ran the code to check for permissions, but the result was rather underwhelming Code:
mint@mint ~ $ # getfacl /media/34e5c4fa-0621-46cb-83b0-763c2a0dc49c/home |
I found this
---MODDED Quote:
Quote:
Code:
Best Answer: Log in as root. Clean off space in the / and |
Quote:
Code:
mint@mint ~ $ cat /etc/*-release |
Quote:
but yeah... and did you really have a need for it? |
Quote:
df shows Code:
mint@mint ~ $ df |
All times are GMT -5. The time now is 12:07 PM. |