You probably encountered this error while trying to reset the password on a Ubuntu system.
1 | passwd nyuser |
This is the result of trying to work on a file system while mounted as read-only. The solution is a simple one. Before making changes to the users password mount the filesystem as read-write which allows for the necessary changes to be made.
1 | mount -o rw,remount / |
Now try to change the users passwords again.
1 | passwd nyuser |