Skip to content

Instantly share code, notes, and snippets.

@fawkesley
Last active October 30, 2017 22:34
Show Gist options
  • Save fawkesley/961e1730e031303e1bbf0b4cfda650af to your computer and use it in GitHub Desktop.
Save fawkesley/961e1730e031303e1bbf0b4cfda650af to your computer and use it in GitHub Desktop.
Samba shares for CCTV server

Add this to the end of /etc/samba/smb.conf:

[camera-front]
   comment= Camera: Front
   path=/media/seagate_250gb/cameras/front
   browseable = yes
   writeable = yes
   write list = camera-front
   guest ok = yes
   create mask = 0755
   directory mask = 0700
   public = no

[camera-front-readonly]
   comment= Camera: Front readonly
   path=/media/seagate_250gb/cameras/front
   browseable = yes
   writeable = no
   guest ok = yes
   public = yes

Ensure you're using user-level security:

security = user

Create the user camera-front:

useradd camera-front

and in samba's user database:

smbpasswd -a camera-front
... [enter password]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment