Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spaces in the vm_password will cause root to have no password #23

Open
calvinhp opened this issue Jan 27, 2015 · 3 comments
Open

spaces in the vm_password will cause root to have no password #23

calvinhp opened this issue Jan 27, 2015 · 3 comments

Comments

@calvinhp
Copy link

Setting the vm_password to a value like "change me" will result in root having no password on boot of the VM.

@michaeldexter
Copy link
Owner

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!

@michaeldexter
Copy link
Owner

Did you have a chance to try this?

@calvinhp
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants