root@serverlks11:~# apt-get install samba cups root@serverlks11:~# vim /etc/cups/cupsd.conf
#... # Only listen for connections from the local machine. Listen localhost:631 Listen 200.100.0.65:631 Port 631 Listen /var/run/cups/cups.sock
# ...
# Restrict access to the server... <Location /> Order allow,deny Allow 200.100.*.* Allow 10.10.*.* </Location>
# Restrict access to the admin pages... <Location /admin> Order allow,deny Allow 200.100.*.* Allow 10.10.*.* </Location>
# Restrict access to configuration files... <Location /admin/conf> AuthType Default Require user @SYSTEM Order allow,deny Allow 200.100.*.* Allow 10.10.*.* </Location>
# ...
root@serverlks11:~# serice cups restart
LKS IT Networking Support (Desianto)
24 LKS XXII : IT/Network Support – Jawa Tengah 2013
root@serverlks11:~# vim /etc/samba/smb.conf
#======================= Global Settings ======================= [global] ## Browsing/Identification ### # Change this to the workgroup/NT-domain name your Samba server will part of workgroup = smkn1cilacap.sch.id
####### Authentication #######
# "security = user" is always a good idea. This will require a Unix account # in this server for every user accessing the server. See # /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html # in the samba-doc package for details. security = share
########## Printing ##########
# If you want to automatically load your printer list rather # than setting them up individually then you'll need this # load printers = yes
# lpr(ng) printing. You may wish to override the location of the # printcap file ; printing = bsd ; printcap name = /etc/printcap
# CUPS printing. See also the cupsaddsmb(8) manpage in the # cupsys-client package. printing = cups printcap name = cups
#======================= Share Definitions =======================
[printers] comment = All Printers browseable = no path = /var/spool/samba printable = yes guest ok = no read only = yes create mask = 0700
# Windows clients look for this share name as a source of downloadable # printer drivers [print$] comment = Printer Drivers path = /var/lib/samba/printers browseable = yes read only = yes guest ok = no # ... root@serverlks11:~# service samba restart