I am trying to change the root password and it runs successfully but the password doesn’t work. Here is the code that I am using. I have tried with the gid, uid, and without but still doesn’t work. I am using kitchen with virtualbox.
user 'Setting root password' do username 'root' password "test123" uid '0' gid 'root' action :modify end