I have this situation: I have read-only file system based linux. I have a problem that i want to change users passwords. I have moved shadow and passwd files to other partition so I thought i would do the trick. Yes now I can edit shadow file by hands. But passwd command isnt working "passwd: An error occurred updating the password file.". What i need to move to other partition that command would start working?
Also Im thinking about generating password by my self and appending shadow file. BUT how can I generate MD5+salt? I dont have openssl or mkpasswd I just have md5sum.
Any ideas how to fix passwd command or how to generate password?