what is the password to use for"net share" command(SMB sync problem)

114 views
Skip to first unread message

lawrence...@yahoo.com.hk

unread,
May 1, 2016, 12:29:59 PM5/1/16
to Vagrant
Hi there, 

I have recently started using vagrant (with CentOS 7 base). I set up SMB sync for a folder but I have not been able to get it to work. I tried putting a simple text file into the host (windows 10) folder, but it did not appear in the guest's equivalent folder.

Moreover, when I ssh'ed into the guest using the username 'vagrant' and tried using the command "net share" to look for shared folders, it prompted me to enter a password. I do not know what the password is. Could anyone tell how to solve this problem?


Terminal output:

[vagrant@localhost ~]$ net share
Enter vagrant's password:
Could not connect to server 127.0.0.1
Connection failed: NT_STATUS_CONNECTION_REFUSED



Thanks.

Alvaro Miranda Aguilera

unread,
May 1, 2016, 3:32:22 PM5/1/16
to vagra...@googlegroups.com
hello,

if you don't know the password for vagrant user in the box you are using, try vagrant

if doesn't work, you can just change it with passwd in a linux guest,

if the guest is windows, I think must be ways to update the password over the command line.

Alvaro.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/6109894c-ffb9-425b-a088-3d1e45864431%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

lawrence...@yahoo.com.hk

unread,
May 1, 2016, 10:04:37 PM5/1/16
to Vagrant
I have tried typing 'vagrant' as password already. It doesn't work. I also tried changing the password for the user(successfully), but the same message came up. (Could not connect to server 127.0.0.1 Connection failed: NT_STATUS_CONNECTION_REFUSED). Usining 'sudo net share' doesn't work either.

 

Alvaro Miranda Aguilera

unread,
May 1, 2016, 10:26:40 PM5/1/16
to vagra...@googlegroups.com
Hello,

could you share the vagrant you are using, tell us whats the host os, and host of the vm?


describe a bit more what you want to do, what you are expecting to happen and whats missed?

Alvaro

On Mon, May 2, 2016 at 2:04 PM, lawrence_doublel via Vagrant <vagra...@googlegroups.com> wrote:
I have tried typing 'vagrant' as password already. It doesn't work. I also tried changing the password for the user(successfully), but the same message came up. (Could not connect to server 127.0.0.1 Connection failed: NT_STATUS_CONNECTION_REFUSED). Usining 'sudo net share' doesn't work either.

 

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.

lawrence...@yahoo.com.hk

unread,
May 5, 2016, 9:46:11 AM5/5/16
to Vagrant
The host OS is windows 10. I want to have a folder in the guest OS (CentOS) synced with a folder in host, using SMB.

I put a text file in the host's folder, but the file fails to show up in the guest's one. I also tried to use the command "net share" on the guest OS, but the following error is received:
[vagrant@localhost ~]$ net share
Enter vagrant's password:
Could not connect to server 127.0.0.1
Connection failed: NT_STATUS_CONNECTION_REFUSED

What do you mean by the host of the vm? I'm running virtualbox in windows 10. 
And how do I share the vagrant I am using?

Thank you.

lawrence...@yahoo.com.hk

unread,
May 5, 2016, 10:00:06 AM5/5/16
to Vagrant
Oh, when I tried to add a text file today, it works! But I still can't use the "net share" command.
Reply all
Reply to author
Forward
0 new messages