• Skip to main content
  • Skip to primary sidebar

Founder at work

Master the skills to create and launch your next SaaS company

  • About Me
  • Reviews
  • Resources
  • Community
  • Contact
  • Lessons
  • Series
  • Search
  • Login

How to configure Samba Shares with Ubuntu

January 24, 2016 by Rick Hernandez Leave a Comment

sudo vim /etc/network/interfaces

Setup Linux Ubuntu

auto eth1
iface eth1 inet static
address 192.168.56.101
netmask 255.255.255.0

Setup Linux Ubuntu

sudo reboot

At this point you should have access to the machine via the terminal.

ssh [email protected]

Setup Linux Ubuntu

The next part is to configure samba to be able to share the www root folder in order to use it for development.

sudo vim /etc/samba/smb.conf
[www]
path = /var/www
public = yes
writable = yes
available = yes
valid users = <USERNAME>
create mask = 0775
directory mask = 0775
force user = <USERNAME>
force directory = www-data
follow symlinks = yes
wide-links = yes
sudo mkdir /var/www
sudo chown <USERNAME>:<USERGROUP> /var/www
sudo service smbd restart

hello

Rick Hernandez

I always had a passion for the field of STEM (Science, Technology, Engineering, and Math) and I knew I wanted to do something to make a difference in the world. I just didn’t know where to start. I was an immigrant in a new country, grew up in a tough environment, and wasn’t sure how… Read More

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)

Related

Filed Under: JSecademy

Primary Sidebar

Learn How To Take Your Idea And Convert It Into An App From Scratch Even If You Have Never Written A Single Line Of Code.

  • How to Find Your Next Great App Idea
  • The Secret To Getting PAID To Build Your Own App
  • How To Create Your App (SaaS, Mobile, VR, AR, Game)
  • How To Monetize Your Apps
Learn More
4.82 Ratings

Copyright © 2025 · JSecademy Blog Theme on Genesis Framework · WordPress · Log in