Simple Samba Setup: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
Configure Samba with a local user to authenticate | Configure Samba with a local user to authenticate and set enforce www-data to the share | ||
[global] | [global] | ||
Line 26: | Line 26: | ||
comment = www | comment = www | ||
path = /var/www | path = /var/www | ||
valid users = @sambagrp | |||
browsable = yes | browsable = yes | ||
writable = yes | writable = yes | ||
read only = no | read only = no | ||
force user = www-data | |||
Revision as of 19:00, 16 March 2021
Simple Samba (SMB) Setup with the focus of having a file share method for www developers on windos machines.
Install Samba on Debian or Ubuntu
apt-get install samba samba-common system-config-samba
Configure Samba with a local user to authenticate and set enforce www-data to the share
[global] workgroup = WORKGROUP server string = %h server (Linux) interfaces = eth0 bind interfaces only = yes log file = /var/log/samba/log.%m panic action = /usr/share/samba/panic-action %d server role = standalone server obey pam restrictions = 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 log level = 4 [www] comment = www path = /var/www valid users = @sambagrp browsable = yes writable = yes read only = no force user = www-data