vmrc
vmrc copied to clipboard
spaces in the `vm_password` will cause root to have no password
Setting the vm_password
to a value like "change me" will result in root having no password on boot of the VM.
This could probably be fixed by adding quotation marks around "$1" in mkvm.sh.functions: f_set_password() ## $1 password $2 mount point ## { echo "$1" | pw -V ${2}/etc/ usermod root -h 0 }
Could you try this and let me know if it resolves it?
Thanks!
Did you have a chance to try this?
I just tested and if I put a space in the password, the resulting password for root is empty, but if I take the space out it is set correctly with that change to the code.