Guest User

smb.conf Example

a guest
May 11th, 2013
6,339
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #
  2. # This is the main Samba configuration file. You should read the
  3. # smb.conf(5) manual page in order to understand the options listed
  4. # here. Samba has a huge number of configurable options most of which
  5. # are not shown in this example
  6. #
  7. #======================= Global Settings =======================
  8.  
  9. [global]
  10.  
  11. ## Browsing/Identification ###
  12.  
  13. # Change this to the workgroup/NT-domain name your Samba server will part of
  14. workgroup = WORKGROUP
  15.  
  16. # server string is the equivalent of the NT Description field
  17. server string = Samba Server
  18.  
  19. # This will prevent nmbd to search for NetBIOS names through DNS.
  20. dns proxy = no
  21.  
  22. #### Debugging/Accounting ####
  23.  
  24. # This tells Samba to use a separate log file for each machine
  25. # that connects
  26. log file = /var/log/samba/log.%m
  27.  
  28. # We want Samba to log a minimum amount of information to syslog. Everything
  29. # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
  30. # through syslog you should set the following parameter to something higher.
  31. syslog = 0
  32.  
  33. ####### Authentication #######
  34.  
  35. # "security = user" is always a good idea. This will require a Unix account
  36. # in this server for every user accessing the server.
  37. security = user
  38.  
  39. # This option controls how unsuccessful authentication attempts are mapped
  40. # to anonymous connections
  41. map to guest = bad user
  42.  
  43. #======================= Share Definitions =======================
  44.  
  45. [test]
  46. # Freizugebender Ordner
  47. path = /home/pi
  48. # Kein User+Passwort erforderlich
  49. guest ok = yes
  50. # Benutzerkreis einschränken
  51. ; valid users = jan
  52. # Schreibzugriff erlauben
  53. ; writeable = yes
  54. # Share nicht im Netzwerk zeigen
  55. ; browseable = no
  56. # wird zusätzlich zur Freigabe angezeig
  57. ; comment = Freigabe
RAW Paste Data