Guest User

Untitled

a guest
May 1st, 2018
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. [global]
  2. ; wins server = w.x.y.z
  3. ; interfaces = 127.0.0.0/8 eth0
  4. ; bind interfaces only = yes
  5. log file = /var/log/samba/log.%m
  6. max log size = 1000
  7. syslog = 0
  8. panic action = /usr/share/samba/panic-action %d
  9. server role = standalone server
  10. passdb backend = tdbsam
  11. obey pam restrictions = yes
  12. unix password sync = yes
  13. passwd program = /usr/bin/passwd %u
  14. passwd chat = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
  15. pam password change = yes
  16. map to guest = bad user
  17.  
  18. ########## Domains ###########
  19. ; logon path = \%Nprofiles%U
  20. ; logon drive = H:
  21. ; logon script = logon.cmd
  22. ; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
  23. ; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
  24. ; add group script = /usr/sbin/addgroup --force-badname %g
  25.  
  26. ############ Misc ############
  27. ; include = /home/samba/etc/smb.conf.%m
  28. ; idmap uid = 10000-20000
  29. ; idmap gid = 10000-20000
  30. ; template shell = /bin/bash
  31. ; usershare max shares = 100
  32. usershare allow guests = yes
  33.  
  34. #======================= Share Definitions =======================
  35.  
  36. [homes]
  37. comment = Home Directories
  38. browseable = no
  39. read only = yes
  40. create mask = 0700
  41. directory mask = 0700
  42. valid users = %S
  43.  
  44. [Share]
  45. comment = Full Access Share
  46. path = /home/expert/Projects/expert
  47. browseable = yes
  48. writable = yes
  49. public = yes
  50. guest ok = yes
  51. read only = no
  52. create mask = 0777
  53. directory mask = 0777
  54. write list = 0777
  55. valid users = nobody, admin, expert, anonymous, my_email@gmail.com
  56.  
  57. [global]
  58. server string = This is: %h. Welcome.
  59. workgroup = workgroup
  60. netbios name = hostname
  61. encrypt passwords = yes
  62.  
  63. ## permissions
  64. server role = standalone
  65. security = user
  66. null passwords = yes
  67. map to guest = Bad Password
  68. guest ok = yes
  69. guest account = nobody
  70.  
  71. # debug Adjust for trouble shooting
  72. log level = 2
  73.  
  74. # the IPC$ connection that lists the shares is done as guest and so you must have a valid guest account.
  75. [IPC$]
  76. path = /tmp
  77.  
  78. [lookie]
  79. comment = open share on %h
  80. path = /samba/share/lookie
  81. # all files copied to this share have full r/w to all
  82. create mask = 0777
  83. delete readonly = yes
  84. ## This user must have read/write to the share directory
  85. ## May require R/W for the full path up to the share. Check.
  86. force user = expert
  87. read only = No
  88. browseable = yes
Add Comment
Please, Sign In to add comment