Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cat /etc/samba/smb.conf | awk '/^[[:blank:]]*\[/{p=0} /^[[:blank:]]*\[print\$\]/{p=1} p'
- [print$]
- comment = Printer Drivers
- path = /var/lib/samba/printers
- browseable = yes
- read only = yes
- guest ok = no
- # Uncomment to allow remote administration of Windows print drivers.
- # You may need to replace 'lpadmin' with the name of the group your
- # admin users are members of.
- # Please note that you also need to set appropriate Unix permissions
- # to the drivers directory for these users to have write rights in it
- write list = root, @lpadmin, "@Domain Admins"
- # A sample share for sharing your CD-ROM with others.
- ;[cdrom]
- ; comment = Samba server's CD-ROM
- ; read only = yes
- ; locking = no
- ; path = /cdrom
- ; guest ok = yes
- # The next two parameters show how to auto-mount a CD-ROM when the
- # cdrom share is accesed. For this to work /etc/fstab must contain
- # an entry like this:
- #
- # /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0
- #
- # The CD-ROM gets unmounted automatically after the connection to the
- #
- # If you don't want to use auto-mounting/unmounting make sure the CD
- # is mounted on /cdrom
- #
- ; preexec = /bin/mount /cdrom
- ; postexec = /bin/umount /cdrom
- ############################################################################
- # Non-system shares
- ############################################################################
- [print$]
- comment = Printer Driver Download Area
- ;path = /etc/samba/drivers
- path = /home/system/samba/drivers/printer
- browseable = yes
- guest ok = yes
- read only = yes
- ; write list = @admin
- ; force user = admin
- ; force group = admin
- force create mode = 0770
- force directory mode = 0770
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement