Bug 252893 - handbook: reference to outdated samba "security = shared" setting
Summary: handbook: reference to outdated samba "security = shared" setting
Status: New
Alias: None
Product: Documentation
Classification: Unclassified
Component: Books & Articles (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-doc (Nobody)
URL: https://docs.freebsd.org/en/books/han...
Keywords:
Depends on:
Blocks: handbook-2022
  Show dependency treegraph
 
Reported: 2021-01-21 17:29 UTC by cm
Modified: 2022-06-05 23:50 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cm 2021-01-21 17:29:01 UTC
Samba no longer has a "security = shared" setting, including on the version used by FreeBSD 11.

From https://www.freebsd.org/doc/handbook/network-samba.html:

"The most common settings are security = share and security = user... In share level security, clients do not need to log onto the server with a valid username and password before attempting to connect to a shared resource. This was the default security model for older versions of Samba."

Ideally this would be replaced by some instructions for creating a public share without "security = share", maybe with "map to guest = Bad User" (I'm not clear on the details so did not attempt a patch myself).
Comment 1 Pau Amma 2022-04-11 03:58:22 UTC
Is this still applicable? Current User Handbook language leads me to think it was fixed (but the "map to guest" one may still need to be added):

30.10.1.2. Security Settings
The most important settings in /usr/local/etc/smb4.conf are the security model and the backend password format. These directives control the options:

security
The most common settings are security = share and security = user. If the clients use usernames that are the same as their usernames on the FreeBSD machine, user level security should be used. This is the default security policy and it requires clients to first log on before they can access shared resources.

In share level security, clients do not need to log onto the server with a valid username and password before attempting to connect to a shared resource. This was the default security model for older versions of Samba.