Antecedents
I am working with both Ubuntu 14.04 and 16.04 in separate desktops. All disks are encrypted. I have changed the root and user passwords in several computers with sudo passwd
and sudo passwd <username>
.
Issues
When I log in, the new password is accepted by the greeter but the systems loops and I get the greeter again and again.
This has occurred to me
- in one of two desktops running on Ubuntu 14.04
- in one of two desktops running on Ubuntu 16.04
where I changed the password in the same way. No clue of what causes this difference between either computer that runs with the same version.
As I go into the console (CTRL+ALT+F1), I successfully log in as well. The console prompts into the appropriate /home/user
.
However, in 14.04, the home directory contains only two files: Access-Your-Private-Data.desktop and README.txt instead of the full directory tree. On suggestion of the latter I do the following
- run
ecrypts-mount-private
, - input my old password
- launch
cd
again,
and the whole directory content show up.
Since in 16.04 the booter explicitly asks for the ecryptfs password prior to moving on to the greeter, the user can actually type in the old password in due course and avoid falling in the loop. This is less inconvenient than in 14.04 but still an undesired behaviour.
Therefore, the encryption password is lagging behind the root and user passwords when these are updated.
This topic is similar to the questions
- Ubuntu 14.10 does not log in despite correct password
- https://askubuntu.com/questions/683677/
- https://askubuntu.com/questions/733086/
The answers given there, if any at all, are inconclusive for me. I have gathered the following information
- x-session error
tail -50 /var/log/Xorg.0.log
ls -l ~/.Xauthority
gives-rw------- 1 user user 227 Sep 2 16:04 .Xauthority
hence no permission issue, I believels -l / | grep tmp
givesdrwxrwxrwt 4 root root 28672 Sep 2 19:13 tmp
hence no sticky bit issue, I believe
Question
- How do I align the ecryptfs password with the user password, so that they are the same at all times?