Default username and password for SMB firewall?

Before reinstalling Windows 10, I had a firewall (ubuntu / xenial64) that used the SMB sync type. Now I do the same thing (install Virtual Box + Vagrant, both latest versions), I changed the config to use SMB and set mount_options. Here config . I run from cmd as administrator (Powershell and simple cmd, tried both) vagrant up

, but vagrant still asked me for a username and password . So how can I set the default username and password? Before it works for me. The username and password are correct because when I enter it into the console its accepted successfully and the folder is good.

Windows 10 Pro x64 1703
Wagrant 1.9.5
VirtualBox 5.1.22
Box: ubuntu / xenial64

thank

+3


source to share


1 answer


You can specify smb_username

and smb_password

(see https://www.vagrantup.com/docs/synced-folders/smb.html#smb_username )



config.vm.synced_folder "./www", "/var/www", type: "smb",
    smb_password: "mypass", smb_username: "mymail@live.ru",
    mount_options: ["username=mymail@live.ru","password=mypass"]

      

+4


source







All Articles