The officially official Devuan Forum!

You are not logged in.

#1 Other Issues » 2 problems,revert system change and change password for user » 2018-05-29 08:44:31

gnufan
Replies: 2

Hi, I have a quick 2 problem that i cannot seem to solve. I am a bit of a noob so sorry in advance if questions are  a bit easy.
I am running Devuan Jessie. I try to change the password for the user using the following command: sudo passwd USER , but was unable to change the password, i got an error, "authentication-token-manipulation-error".  so I did some research and found that it may have something to do with the fact that certain file permissions were not allowing me write. I then ran the following commands, "mount -o remount,rw /" and then "chmod 640 /etc/shadow" but still got the same error.

So I have two questions, firstly how do I reset my user password ?
Secondly, how do I revert the following commands "mount -o remount,rw /" and then "chmod 640 /etc/shadow" so my system can return back to its original state ? which commands should I run

I know that the command "mount -o remount,rw /"  dismounts the root partition and then mounts it again as read/write. Is this a safe state ? I am assuming not, so I would like to return to the original permissions for the root partition.

It has done this, with multiple USB sticks, but yesterday this unmount function was working fine.

Thanks for working on this great distro, I have just changed from Ubuntu and I think it is great. :-)

"

Board footer

Forum Software