Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Ubuntu – Create Samba Share

Posted on January 10, 2020 By David Kittell
sudo apt install samba
cd /etc/samba
sudo cp smb.conf smb.conf.bak
sudo mkdir -p /var/shares/public
sudo chmod 755 -R /var/shares/

echo "[Share]" | sudo tee -a smb.conf
echo "comment = Samba file share." | sudo tee -a smb.conf
echo "path = /var/shares/public/" | sudo tee -a smb.conf
echo "browseable = yes" | sudo tee -a smb.conf
echo "read only = no" | sudo tee -a smb.conf
echo "guest ok = yes" | sudo tee -a smb.conf

All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code Debian Raspberry Pi Raspbian (Raspberry Pi OS) Ubuntu UNIX UNIX Shell Scripts Zorin OS

Post navigation

Previous post
Next post

Related Posts

UNIX – Create New User & Add To Group

Posted on August 5, 2016

username="dkittell" usergroup="developers" useradd $username && passwd $username # Set initial password # Force user to change password once logged in chage -d 0 $username groupadd $usergroup usermod -aG $usergroup $username All information on this site is shared with the intention to help. Before any source code or program is ran…

Read More

Mac OSX Terminal – Get Active Interface

Posted on June 23, 2016March 6, 2017

This will let you know which network interface you are actively using should you have Wi-Fi and Ethernet connected. route get default | grep interface | awk ‘{print $2}’ Get name of network interface ActiveNetwork=$(route get default | grep interface | awk ‘{print $2}’) ActiveNetworkName=$(networksetup -listallhardwareports | grep -B 1…

Read More

Ektron Upload File Into Library

Posted on February 18, 2015October 26, 2015

I found and modified code to create an Ektron Library File Upload function. This function allows some customization: Defined Folder ID In this code I manually set the folder ID but effectively you could have a drop down list of folders to select the folder (see DMS Widget) Content Title…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes