-
-
Notifications
You must be signed in to change notification settings - Fork 606
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
Remove default Vagrant SMB credentials #1215
Conversation
Can you explain a bit more about the use case and problem this is solving? You can specify those config values in https://github.com/roots/trellis/blob/master/vagrant.default.yml (or a local version of it) if you want to override them. |
The default experience after setting the synced folder mode to SMB is poor: Vagrant doesn't ask for credentials (because the username and password have already been set to the fallback value Log
It's true that the SMB username and password can be set in https://github.com/roots/trellis/search?q=vagrant_smb_password&unscoped_q=vagrant_smb_password I don't see a good reason for having fallback values for the credentials, as they will always be incorrect and their existence prevents Vagrant from asking the user to provide them. |
I might be missing something here... but what should the credentials be? How do you know what they are? I guess on Windows its just your user name + password? 🤔 maybe these default values are more useful on macOS. Though I'm assuming most smb users are on Windows anyway... it might make sense to optimize for that. So we could merge this PR, and then document setting the credentials in the git ignored |
You are correct, the credentials are the username and password of the host machine. They are required for the guest to authenticate to the host. I don't use macOS, so I'm not sure if credentials are required (or prompted for) to connect to a share on a macOS host. I'll test it out on one of the macs at work tomorrow. |
I tried changing the mount type to
So... I'll go ahead and merge this. We can make tweaks after if someone is using smb on Mac and has issues. |
This PR removes the fallback values for the SMB username and password, allowing Vagrant to prompt for the credentials during
vagrant up
.