View Single Post
Old 09-04-2016, 01:41 PM   #1334
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 726
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
@dscottf - Something short about Samba (for on your Pi)

1 - install Samba (it is probably already installed)
apt-get install samba

2 - edit smb.conf file
cd /etc/samba
cp smb.conf smb.conf.original
nano smb.conf >> change contents to (works for me)
Code:
#======================= Global Settings =============

[global]

   workgroup = WORKGROUP
   dns proxy = no
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   panic action = /usr/share/samba/panic-action %d

   security = user
   encrypt passwords = true

   server role = standalone server
  
   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes

   map to guest = bad user

[Home]
comment = Home Directory
valid users = pi 
path=/home/pi
create mask = 777
directory mask = 777
browseable = yes
writable = yes
read only = no

[cops]
comment = cops ebooks
valid users = pi
path=/media/pi/MEDIA/calibre_ebooks
create mask = 777
directory mask = 777
browseable = yes
writable = yes
read only = no
3 - add a password to samba user (pi)
smbpasswd -a pi

4 - restart samba
service samba restart

5 - login to samba share from OSX
(top Menu) Go >> Connect to server >>
smb://<IP_of_your_pi>
Connect

6 - fill in credentials = pi and password you just added

7 - success?

I do not say it's the best config file, but it works for me!
mariosipad is offline   Reply With Quote