Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

As part of the installation step of some software on a Ubuntu VM I'd like to create a samba share. How would I go about doing that from the command line?

share|improve this question

1 Answer 1

You can edit /etc/samba/smb.conf and enter the share name, location, and who should access it. There are several examples in the file itself.

Here's online guide for entering new shares in the smb.conf file:


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.