Last active
July 16, 2016 03:13
-
-
Save mike0/2665649 to your computer and use it in GitHub Desktop.
smb.conf patch
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
For Ubuntu 14.04.4 | |
--- smb.conf.orig 2016-07-16 11:07:04.778336770 +0800 | |
+++ smb.conf 2016-07-16 11:11:15.886335314 +0800 | |
@@ -190,28 +190,28 @@ | |
# Un-comment the following (and tweak the other settings below to suit) | |
# to enable the default home directory shares. This will share each | |
# user's home directory as \\server\username | |
-;[homes] | |
-; comment = Home Directories | |
-; browseable = no | |
+[homes] | |
+ comment = Home Directories | |
+ browseable = yes | |
# By default, the home directories are exported read-only. Change the | |
# next parameter to 'no' if you want to be able to write to them. | |
-; read only = yes | |
+ read only = no | |
# File creation mask is set to 0700 for security reasons. If you want to | |
# create files with group=rw permissions, set next parameter to 0775. | |
-; create mask = 0700 | |
+ create mask = 0700 | |
# Directory creation mask is set to 0700 for security reasons. If you want to | |
# create dirs. with group=rw permissions, set next parameter to 0775. | |
-; directory mask = 0700 | |
+ directory mask = 0600 | |
# By default, \\server\username shares can be connected to by anyone | |
# with access to the samba server. | |
# Un-comment the following parameter to make sure that only "username" | |
# can connect to \\server\username | |
# This might need tweaking when using external authentication schemes | |
-; valid users = %S | |
+ valid users = %S | |
# Un-comment the following and create the netlogon directory for Domain Logons | |
# (you need to configure Samba to act as a domain controller too.) | |
@@ -234,23 +234,23 @@ | |
; create mask = 0600 | |
; directory mask = 0700 | |
-[printers] | |
- comment = All Printers | |
- browseable = no | |
- path = /var/spool/samba | |
- printable = yes | |
- guest ok = no | |
- read only = yes | |
- create mask = 0700 | |
+;[printers] | |
+; comment = All Printers | |
+; browseable = no | |
+; path = /var/spool/samba | |
+; printable = yes | |
+; guest ok = no | |
+; read only = yes | |
+; create mask = 0700 | |
# Windows clients look for this share name as a source of downloadable | |
# printer drivers | |
-[print$] | |
- comment = Printer Drivers | |
- path = /var/lib/samba/printers | |
- browseable = yes | |
- read only = yes | |
- guest ok = no | |
+;[print$] | |
+; comment = Printer Drivers | |
+; path = /var/lib/samba/printers | |
+; browseable = yes | |
+; read only = yes | |
+; guest ok = no | |
# Uncomment to allow remote administration of Windows print drivers. | |
# You may need to replace 'lpadmin' with the name of the group your | |
# admin users are members of. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment