Created
May 9, 2012 08:56
-
-
Save finger-berlin/2643139 to your computer and use it in GitHub Desktop.
working smb.conf where some shares can be accessed by guest users and some share can only accessed by authenticated users
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] | |
unix charset = UTF8 | |
workgroup = XXX | |
netbios name = XXX | |
server string = %h server (Samba, Ubuntu) | |
interfaces = lo, eth2, 192.168.42.17/24 | |
bind interfaces only = Yes | |
security = USER | |
Map to guest = Bad User | |
obey pam restrictions = Yes | |
guest account = guest-user | |
syslog = 0 | |
log file = /var/log/samba/log.%m | |
max log size = 1000 | |
unix extensions = Yes | |
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072 | |
load printers = No | |
domain master = No | |
dns proxy = No | |
wins support = Yes | |
panic action = /usr/share/samba/panic-action %d | |
invalid users = root ubuntu | |
create mask = 0664 | |
force create mode = 0664 | |
security mask = 0664 | |
force security mode = 0664 | |
directory mask = 0775 | |
force directory mode = 0775 | |
directory security mask = 0775 | |
force directory security mode = 0775 | |
delete veto files = Yes | |
veto files = /.DS_Store/._*/.TemporaryItems/.AppleDouble/.bin/.AppleDesktop/Network Trash Folder/ | |
strict locking = No | |
follow symlinks = No | |
usershare allow guests = No | |
usershare max shares = 0 | |
hide unreadable = Yes | |
hide dot files = No | |
[share] | |
comment = Share | |
path = /srv/samba/share | |
force user = guest-user | |
force group = guest-user | |
read only = No | |
guest ok = Yes | |
[restricted] | |
comment = auth. user only | |
path = /srv/samba/restricted | |
valid users = auth-user | |
force user = auth-user | |
force group = auth-user | |
read only = No | |
guest ok = No |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment