Advertisement
sergio_educacionit

smb.conf

Dec 15th, 2023
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. [global]
  2. workgroup = WORKGROUP
  3. log file = /var/log/samba/log.%m
  4. max log size = 1000
  5. logging = file
  6. panic action = /usr/share/samba/panic-action %d
  7. server role = standalone server
  8. obey pam restrictions = yes
  9. unix password sync = yes
  10. passwd program = /usr/bin/passwd %u
  11. passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
  12. pam password change = yes
  13. map to guest = bad user
  14. usershare allow guests = yes
  15. [homes]
  16. comment = Home Directories
  17. browseable = no
  18. read only = yes
  19. create mask = 0700
  20. directory mask = 0700
  21. valid users = %S
  22.  
  23. [sambashare]
  24. comment = Directorio compartido
  25. browseable = yes
  26. writable = yes
  27. path = /var/samba
  28. # create mask = 0700
  29. # directory mask = 0700
  30. valid users = sergio
  31.  
  32.  
  33. [printers]
  34. comment = All Printers
  35. browseable = no
  36. path = /var/tmp
  37. printable = yes
  38. guest ok = no
  39. read only = yes
  40. create mask = 0700
  41. [print$]
  42. comment = Printer Drivers
  43. path = /var/lib/samba/printers
  44. browseable = yes
  45. read only = yes
  46. guest ok = no
  47.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement