Difference between revisions of "Setting up a Share Without Authentication"
From SambaWiki
(Created page with "= Anonymous Read-Only = 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 configur...") |
|||
Line 1: | Line 1: | ||
− | = Anonymous Read-Only = |
+ | = 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>. |
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> |
||
⚫ | |||
workgroup = SAMBA |
workgroup = SAMBA |
||
security = user |
security = user |
||
map to guest = Bad 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: |
||
+ | <pre> |
||
+ | [global] |
||
+ | workgroup = SAMBA |
||
+ | 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> |
Revision as of 14:36, 30 June 2015
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:
[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
/etc/samba/smb.conf:
[global] workgroup = SAMBA 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