[Pkg-samba-maint] sambashare group and enabling usershares by default

Andreas Hasenack andreas at canonical.com
Tue May 3 17:56:43 BST 2022


Hi,

On Tue, May 3, 2022 at 12:17 PM Mathieu Parent <math.parent at gmail.com> wrote:
>
> hello,
>
> On Tue, May 3, 2022 at 4:46 PM Michael Tokarev <mjt at tls.msk.ru> wrote:
> >
> > In debian, samba package carries a patch which enables user shares
> > by default. I don't know why this was made this way, - usershares
> > are an additional potential for security issues, and they're not
> > actually as widely used.  We have to explicitly disable then
> > (usershare max shares = 0) on every samba install.
>
> This changes comes from Ubuntu initially. CCing some of the latest uploaders.
>
> If I recall correctly this option is needed for proper integration of
> Samba share in Gnome.

nautilus-share uses it. If you right click on a folder, you can share
that folder via samba. Nautilus will call the net command like this if
you decide to share ~/Public, for example (guest is a checkbox in the
GUI):

net usershare add --long Public /home/myuser/Public somecomment
Everyone:R,myuser:F guest_ok=y

Without the patch, desktop users have to go through extra steps to get
this working. That being said, the patch is just changing defaults,
and since I don't work in Desktop ;), I'm not sure if I would have
applied something like this nowadays.



More information about the Pkg-samba-maint mailing list