Setting up a Share Without Authentication: Difference between revisions
From SambaWiki
m (/* typo) |
|||
(9 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]]. |
|||
= Anonymous Read-Only Share = |
|||
The following /etc/samba/smb.conf file shows an example how to configure a read-only file share with guest access. Two directives are used to configure guest access – <map to guest = Bad user> and <guest account = nobody>. |
|||
/etc/samba/smb.conf: |
|||
<pre> |
|||
[global] |
|||
workgroup = SAMBA |
|||
security = user |
|||
map to guest = Bad user |
|||
[data] |
|||
comment = Anonymous Samba Share |
|||
path = /samba/anon_share |
|||
read only = yes |
|||
guest ok = yes |
|||
</pre> |
|||
= Anonymous Read-Write Share = |
|||
---- |
|||
/etc/samba/smb.conf: |
|||
[[Category:Active Directory]] |
|||
<pre> |
|||
[[Category:Domain Members]] |
|||
[global] |
|||
[[Category:File Serving]] |
|||
workgroup = SAMBA |
|||
[[Category:NT4 Domains]] |
|||
security = user |
|||
map to guest = Bad user |
|||
[data] |
|||
comment = Anonymous Samba Share |
|||
path = /samba/anon_share |
|||
guest ok = yes |
|||
writeable = yes |
|||
force user = myuser |
|||
force group = mygroup |
|||
</pre> |
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.