Last active
February 16, 2019 00:53
-
-
Save titovanton/2da745c557c77083e150bdb668d46639 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[global] | |
netbios name = Apps | |
security = USER | |
#======================= Networking ======================= | |
socket options = TCP_NODELAY IPTOS_LOWDELAY | |
local master = yes | |
time server = yes | |
read size - 4096 | |
os level = 65 | |
DNS proxy = no | |
workgroup = WORKGROUP | |
server string = %h Ubuntu-Server | |
interfaces = eth0 | |
#======================= Logging ======================= | |
log file = /var/log/samba/log.%m | |
max log size = 500 | |
panic action = /usr/share/samba/panic-action %d | |
#======================= Authentication ======================= | |
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 | |
follow symlinks = no | |
#======================= Other ======================= | |
# Windows | |
dos charset = CP866 | |
unix charset = UTF8 | |
store dos attributes = yes | |
usershare allow guests = yes | |
username map = /etc/samba/smbusers | |
guest account = nobody | |
invalid users = root administrator admin | |
usershare max shares = 20 | |
#======================= Shares ======================= | |
[apps] | |
comment = Apps directories | |
path = /apps | |
browseable = yes | |
writeable = yes | |
# files owner and group | |
force user = titovanton | |
force group = www-data | |
create mask = 0750 | |
directory mask = 0750 | |
# Recycle | |
vfs objects = recycle | |
recycle:versions = Yes | |
recycle:touch = Yes | |
recycle:keeptree = Yes | |
valid users = titovanton | |
[shared] | |
comment = Public access | |
path = /home/titovanton/shared | |
browseable = yes | |
writeable = yes | |
# files owner and group | |
force user = titovanton | |
force group = titovanton | |
create mask = 0777 | |
directory mask = 0777 | |
guest ok = yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment