Setting up a Share Without Authentication: Difference between revisions

From SambaWiki
(Refreshed page content. Made it more general.)
m (/* typo)
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
For details about setting up a share that users can access without authenticating, see [[Setting up Samba as a Standalone Server]].
In some scenarios, expecially on standalone servers, it might be a requirement, to provide a share, that is accessable without authentication (anonymous access).


Two smb.conf directives are required in the [global] section, to allow anonymous access on shares in the later step:


[global]
workgroup = MYWORKGROUP ## Keep this two lines on their current
security = user ## value, if you're doing this on an
map to guest = Bad user
guest account = nobody




For the share, that should be accessable without login, use the following configuration:


----
[MyShare]
[[Category:Active Directory]]
comment = Anonymous Samba Share
[[Category:Domain Members]]
path = /srv/samba/anonymous_share/
[[Category:File Serving]]
guest ok = yes
[[Category:NT4 Domains]]
read only = yes|no
# Optionally you can map the anonymous user to a local user/group, if necessary.
force user = myuser
force group = mygroup

Latest revision as of 14:31, 24 March 2017

For details about setting up a share that users can access without authenticating, see Setting up Samba as a Standalone Server.