I have a linux system and I create 20 users, after that I made a hash and import that into the shadow file instead of one of them(manually). I do that because of some educational things :)
user12:.rAuPMqtz7dZzHdfQMLJzum6vPYKJynmE29reN27MG/AsAHHt6a.1ZeyEkoo6xEJIzepKMyLai/:16607:0:99999:7:::
Then I saved the shadow and tested the user. It doesn't work. Why?
But it works when I used passwd user12.
Another problem is when I change the shadow manually (even one space or enter key) all of the users that I had can't connect via ssh. They see permission denied. Why?
I copy-pasted the content of shadow and it doesn't work again. Why? Before I copied, it works. Just opening and saving it causes it to not work?