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

add smb capability to linux hosts #9948

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

add smb capability to linux hosts #9948

wants to merge 1 commit into from

Conversation

rgl
Copy link
Contributor

@rgl rgl commented Jun 24, 2018

This uses samba net usershare command to share the current directory as an SMB share which can be used by Windows guests.

On a Ubuntu host (tried with 18.04), you need to install samba and configure your user password, e.g.:

sudo apt-get install -y samba smbclient
sudo systemctl status smbd
sudo smbpasswd -a $USER # use your current password.
samba --version
smbclient --version

And, as an example, share a directory (these commands are roughly what the plugin is using when you do a vagrant up, but are placed here as an example on how to test the setup manually):

mkdir $PWD/$USER-smb-share
echo hello world >$PWD/$USER-smb-share/hello-world.txt
net usershare add $USER-smb-share $PWD/$USER-smb-share 'Example Share' Everyone:R,$USER:F
net usershare info $USER-smb-share
net usershare list
#net usershare delete $USER-smb-share
sudo net status shares
sudo smbstatus --shares
sudo smbclient --list localhost --no-pass

Fixes #11016

@MaxPeal
Copy link

MaxPeal commented Mar 10, 2022

@chrisroberts @briancain is anything missing or can we merge this PR?

@salderma
Copy link

What is the hold up with this PR? It's been hanging around for nearly 4 years, all checks pass, it closes an Open Issue that's been hanging around for nearly 3 years!?!? It also fixes a feature gap between Windows, Mac OSX, and Linux hosts!

@vercel
Copy link

vercel bot commented Oct 23, 2022

@rgl is attempting to deploy a commit to the HashiCorp Team on Vercel.

A member of the Team first needs to authorize it.

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

Successfully merging this pull request may close these issues.

Enhancement: SMB synced folder support for GNU/Linux hosts
5 participants