Don't know what happend really. I changed the root password to a long password containing weird characters, and triple checked that I could log in with it, and has been ever since. Until now.
I think the bad character is a ’. How do I enter that in Putty? When I paste the password in Putty, that character and some other are removed/moved. I've set UTF-8 under Window>Translation.
locale returns the following.
LANG= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL=
I've (falsely) assumed it was using UTF-8.
Is there a way to make su read the password from a file?
Update 2: I created two files using Notepad++;
utf8.txt. Both containing the string
cat ansi.txt prints
cat utf8.txt prints