[Gloucs] RPi and samba

Andrew Oakley Andrew.Oakley at hesa.ac.uk
Mon Oct 1 16:02:07 UTC 2012


Glyn Davies wrote:
> Anyone have a basic, working smb.conf with a non-passworded share?

Yes, but this came from my modified Netgear Stora NAS box, not from my
RPi. My RPi does successfully connect to this share, though, and plays
media files from Samba using Raspbmc. The share is *deliberately*
writable (but a cron job loops through once a week and marks any files
over 60 days old as read-only; I then have a script to touch & chmod
anything old that I want the family to be able to modify/delete).

smbstatus says "Samba version 3.0.28-0.el5.8.oe5.2" which I've no doubt
is old and insecure, but it holds no valuable nor confidential
information (unless you're my three-year-old son, in which case the
archive of 1960s Batman episodes are undoubtedly priceless).

--
Andrew Oakley

# /etc/samba/smb.conf
# taken from a Netgear Stora NAS using Axentra HipServ Linux
# Samba version 3.0.28-0.el5.8.oe5.2
# This file has been modified from the stock firmware to provide
# a public read-writable fileshare called FamilyLibrary
[global]
netbios name = BIGPENGUIN
workgroup = WORKGROUP
server string = Bigpenguin
security = share
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
use sendfile = yes
guest account = apache
printcap name = cups
load printers = yes
printing = cups
socket options = TCP_NODELAY SO_RCVBUF=65536 SO_SNDBUF=65536
dns proxy = no
browseable = yes
map to guest = never
domain master = no
local master = yes
preferred master = yes
os level = 2
unix charset = UTF8
mangled names = no

# We need this here to prevent errors from appearing in WinXP
#
https://listman.redhat.com/archives/redhat-list/2003-January/msg00939.ht
ml
use client driver = yes
log level = 0

[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
guest ok = yes
guest only = no
writable = yes
printable = yes
public = yes

[FamilyLibrary]
comment = Stora (FamilyLibrary)
#path=/home/%U/FamilyLibrary
path=/home/bigpenguin/FamilyLibrary
browseable = yes
writeable = yes
guest ok = yes
#guest only = no
#public = yes
create mode = 0664
directory mode = 0775
force create mode = 0664
force directory mode = 0775
force security mode = 0775
force directory security mode = 0775
force group = users
force user = bigpenguin
#valid users = %U


_____________________________________________________________________

Try our free UK HE Stats iPhone app - http://www.hesa.ac.uk/iapp1
No iPhone? Use our mobile website - http://m.hesa.ac.uk/
_____________________________________________________________________

Higher Education Statistics Agency Ltd (HESA) is a company limited by
guarantee, registered in England at 95 Promenade Cheltenham GL50 1HZ.
Registered No. 2766993. The members are Universities UK and GuildHE.
Registered Charity No. 1039709. Certified to ISO 9001 and ISO 27001.

HESA Services Ltd (HSL) is a wholly owned subsidiary of HESA,
registered in England at the same address. Registered No. 3109219.

This email is private and confidential. If you have reason to believe
that you have received this message in error, please contact the
sender immediately and remove it from your system.

No employee or agent is authorised to conclude any agreement binding
on HESA/HSL without express written confirmation by the Chief
Executive or an employee of HESA/HSL with director in their title.
_____________________________________________________________________

This outgoing email was virus scanned for HESA by MessageLabs.
_____________________________________________________________________



More information about the gloucs mailing list