diff options
Diffstat (limited to 'meta-oe/recipes-connectivity/samba/samba-3.6.24/usershare.patch')
-rw-r--r-- | meta-oe/recipes-connectivity/samba/samba-3.6.24/usershare.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/samba/samba-3.6.24/usershare.patch b/meta-oe/recipes-connectivity/samba/samba-3.6.24/usershare.patch new file mode 100644 index 000000000..3673db751 --- /dev/null +++ b/meta-oe/recipes-connectivity/samba/samba-3.6.24/usershare.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | Description: Enable net usershares by default at build time | ||
2 | Enable net usershares by default at build time, with a limit of | ||
3 | 100, and update the corresponding documentation. | ||
4 | Author: Mathias Gug <mathiaz@ubuntu.com>, | ||
5 | Author: Steve Langasek <vorlon@debian.org> | ||
6 | Bug-Debian: http://bugs.debian.org/443230 | ||
7 | Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/128548 | ||
8 | Forwarded: not-needed | ||
9 | |||
10 | Index: experimental/docs/manpages/net.8 | ||
11 | =================================================================== | ||
12 | --- experimental.orig/docs/manpages/net.8 | ||
13 | +++ experimental/docs/manpages/net.8 | ||
14 | @@ -800,9 +800,9 @@ | ||
15 | .RE | ||
16 | .SS "USERSHARE" | ||
17 | .PP | ||
18 | -Starting with version 3\&.0\&.23, a Samba server now supports the ability for non\-root users to add user defined shares to be exported using the "net usershare" commands\&. | ||
19 | +Starting with version 3\&.0\&.23, a Samba server now supports the ability for non\-root users to add user-defined shares to be exported using the "net usershare" commands\&. | ||
20 | .PP | ||
21 | -To set this up, first set up your smb\&.conf by adding to the [global] section: usershare path = /usr/local/samba/lib/usershares Next create the directory /usr/local/samba/lib/usershares, change the owner to root and set the group owner to the UNIX group who should have the ability to create usershares, for example a group called "serverops"\&. Set the permissions on /usr/local/samba/lib/usershares to 01770\&. (Owner and group all access, no access for others, plus the sticky bit, which means that a file in that directory can be renamed or deleted only by the owner of the file)\&. Finally, tell smbd how many usershares you will allow by adding to the [global] section of smb\&.conf a line such as : usershare max shares = 100\&. To allow 100 usershare definitions\&. Now, members of the UNIX group "serverops" can create user defined shares on demand using the commands below\&. | ||
22 | +Members of the UNIX group "sambashare" can create user-defined shares on demand using the commands below\&. | ||
23 | .PP | ||
24 | The usershare commands are: | ||
25 | .RS 4 | ||
26 | Index: experimental/source3/param/loadparm.c | ||
27 | =================================================================== | ||
28 | --- experimental.orig/source3/param/loadparm.c | ||
29 | +++ experimental/source3/param/loadparm.c | ||
30 | @@ -5461,7 +5461,7 @@ | ||
31 | string_set(&Globals.szUsersharePath, s); | ||
32 | SAFE_FREE(s); | ||
33 | string_set(&Globals.szUsershareTemplateShare, ""); | ||
34 | - Globals.iUsershareMaxShares = 0; | ||
35 | + Globals.iUsershareMaxShares = 100; | ||
36 | /* By default disallow sharing of directories not owned by the sharer. */ | ||
37 | Globals.bUsershareOwnerOnly = True; | ||
38 | /* By default disallow guest access to usershares. */ | ||