Skip to content

Instantly share code, notes, and snippets.

@remisarrailh
Created March 27, 2013 03:28
Show Gist options
  • Save remisarrailh/5251364 to your computer and use it in GitHub Desktop.
Save remisarrailh/5251364 to your computer and use it in GitHub Desktop.
smb.conf pour le Raspberry PI
[global]
log file = /var/log/samba/log.%m
read raw = no
write raw = no
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
obey pam restrictions = yes
socket options = SO_KEEPALIVE TCP_NODELAY
map to guest = bad user
winbind trusted domains only = yes
encrypt passwords = yes
winbind use default domain = yes
passdb backend = tdbsam
passwd program = /usr/bin/passwd %u
dns proxy = no
netbios name = pi
server string = pi
unix password sync = yes
workgroup = WORKGROUP
os level = 20
syslog = 0
usershare allow guests = yes
panic action = /usr/share/samba/panic-action %d
max log size = 1000
pam password change = yes
guest only = yes
#Partage
[web]
guest account = www-data
writeable = yes
path = /var/www
force directory mode = 755
force group = www-data
force create mode = 755
force user = www-data
guest only = yes
public = yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment