TringaliLuca

Share CUPS printers /etc/samba/smb.conf

Feb 15th, 2017
530
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #======================= Global Settings =======================
  2. [global]
  3. workgroup = WORKGROUP
  4. server string = %h server
  5. dns proxy = no
  6. log level = 0
  7. syslog = 0
  8. log file = /var/log/samba/log.%m
  9. max log size = 1000
  10. syslog only = yes
  11. panic action = /usr/share/samba/panic-action %d
  12. encrypt passwords = true
  13. passdb backend = tdbsam
  14. obey pam restrictions = no
  15. security = user
  16. unix password sync = yes
  17. passwd program = /usr/bin/passwd %u
  18. passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
  19. pam password change = yes
  20. socket options = TCP_NODELAY IPTOS_LOWDELAY
  21. guest account = nobody
  22. load printers = no
  23. disable spoolss = yes
  24. printing = bsd
  25. printcap name = /dev/null
  26. unix extensions = yes
  27. wide links = no
  28. create mask = 0777
  29. directory mask = 0777
  30. use sendfile = yes
  31. aio read size = 16384
  32. aio write size = 16384
  33. null passwords = no
  34. local master = yes
  35. time server = no
  36. wins support = no
  37. # This configuration file is auto-generated.
  38. # WARNING: Do not edit this file, your changes will be lost.
  39. #======================= Printer Settings =======================
  40. [global]
  41. load printers = yes
  42. printing = cups
  43. printcap name = cups
  44. disable spoolss = no
  45. printcap cache time = 60
  46. printer admin = @lpadmin
  47.  
  48. [printers]
  49. comment = All Printers
  50. path = /var/spool/samba
  51. browseable = yes
  52. guest ok = yes
  53. writable = no
  54. printable = yes
  55. create mask = 0700
  56.  
  57. [print$]
  58. comment = Printer Drivers
  59. path = /var/lib/samba/printers
  60. browseable = yes
  61. guest ok = yes
  62. read only = yes
  63. write list = @lpadmin
  64. oplocks = no
  65. force create mode = 0664
  66. force directory mode = 775
RAW Paste Data