From 0a354ad0b2c9eaaa204c31db478da109dc6d2a8b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 19:20:02 +0200 Subject: Adding debian version 2:4.20.0+dfsg-1~exp1. Signed-off-by: Daniel Baumann --- debian/smb.conf.ubuntu.diff | 55 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 debian/smb.conf.ubuntu.diff (limited to 'debian/smb.conf.ubuntu.diff') diff --git a/debian/smb.conf.ubuntu.diff b/debian/smb.conf.ubuntu.diff new file mode 100644 index 0000000..c66aded --- /dev/null +++ b/debian/smb.conf.ubuntu.diff @@ -0,0 +1,55 @@ +Subject: ubuntu changes for smb.conf + ++ Add "(Samba, Ubuntu)" to server string. ++ Comment out the default [homes] share, and add a comment about + "valid users = %s" to show users how to restrict access to + \\server\username to only username. +* Comment out "read only = yes" for a few standard shares. + +diff --git a/debian/smb.conf b/debian/smb.conf +index 37fafb27398..385197abee9 100644 +--- a/debian/smb.conf ++++ b/debian/smb.conf +@@ -30,2 +30,5 @@ + ++# server string is the equivalent of the NT Description field ++ server string = %h server (Samba, Ubuntu) ++ + #### Networking #### +@@ -168,5 +171,8 @@ + +-[homes] +- comment = Home Directories +- browseable = no ++# 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 + +@@ -174,3 +180,3 @@ + # next parameter to 'no' if you want to be able to write to them. +- read only = yes ++; read only = yes + +@@ -178,3 +184,3 @@ + # create files with group=rw permissions, set next parameter to 0775. +- create mask = 0700 ++; create mask = 0700 + +@@ -182,3 +188,3 @@ + # create dirs. with group=rw permissions, set next parameter to 0775. +- directory mask = 0700 ++; directory mask = 0700 + +@@ -186,6 +192,6 @@ + # with access to the samba server. +-# The following parameter makes sure that only "username" can connect +-# to \\server\username ++# 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 + -- cgit v1.2.3