To set password to given value securely using hashed-password to the filesystem

This example demonstrates how to:

  1. We assume the filesystem has a user and group from above example:
    1. A user with username "nvidia2", user-id "1001".
  2. Set password "nvidia2" for the username "nvidia2".
  3. When string "nvidia2" is hashed using crypt with salt "4bhqDdYb" it produces password in the entry below. Tool mkpasswd can be used to get hashed-password.
{
    "Users": {
        "one": {
            "UID": "1001",
            "Username" : "nvidia2",
            "Password": {
                "HashedPassword": "$6$4bhqDdYb$kxJApfqarvpuMhLweydYp7.
NqSFXWxML8N3JywqadmlEp9GF89553PNBAYBTdGmfBaUe7/7LxpP8PBBQlCJT70"
            },
        }
    }
}