Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. cat /etc/samba/smb.conf | awk '/^[[:blank:]]*\[/{p=0} /^[[:blank:]]*\[print\$\]/{p=1} p'
  2. [print$]
  3. comment = Printer Drivers
  4. path = /var/lib/samba/printers
  5. browseable = yes
  6. read only = yes
  7. guest ok = no
  8. # Uncomment to allow remote administration of Windows print drivers.
  9. # You may need to replace 'lpadmin' with the name of the group your
  10. # admin users are members of.
  11. # Please note that you also need to set appropriate Unix permissions
  12. # to the drivers directory for these users to have write rights in it
  13. write list = root, @lpadmin, "@Domain Admins"
  14.  
  15. # A sample share for sharing your CD-ROM with others.
  16. ;[cdrom]
  17. ; comment = Samba server's CD-ROM
  18. ; read only = yes
  19. ; locking = no
  20. ; path = /cdrom
  21. ; guest ok = yes
  22.  
  23. # The next two parameters show how to auto-mount a CD-ROM when the
  24. # cdrom share is accesed. For this to work /etc/fstab must contain
  25. # an entry like this:
  26. #
  27. # /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0
  28. #
  29. # The CD-ROM gets unmounted automatically after the connection to the
  30. #
  31. # If you don't want to use auto-mounting/unmounting make sure the CD
  32. # is mounted on /cdrom
  33. #
  34. ; preexec = /bin/mount /cdrom
  35. ; postexec = /bin/umount /cdrom
  36.  
  37.  
  38. ############################################################################
  39. # Non-system shares
  40. ############################################################################
  41.  
  42. [print$]
  43. comment = Printer Driver Download Area
  44. ;path = /etc/samba/drivers
  45. path = /home/system/samba/drivers/printer
  46. browseable = yes
  47. guest ok = yes
  48. read only = yes
  49. ; write list = @admin
  50. ; force user = admin
  51. ; force group = admin
  52. force create mode = 0770
  53. force directory mode = 0770
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement