Autor Tópico: Samba e Cups  (Lida 1622 vezes)

Offline rodfall

  • Usuário Ubuntu
  • *
  • Mensagens: 32
    • Ver perfil
Samba e Cups
« Online: 16 de Julho de 2009, 16:17 »
Galera...
estou tendo dificuldades de fazer a vinculação do SMBA co o CUPS...

seguinte...

eu tenho o samba com PDC funcionando....
e o CUPS está rodando.. ele acha as impressoras na máquina con windows...
mas quando mando ele imprimir ele me diz que teve conexão perdida... breve posto aqui meu smb.conf
e o CUPS

SAMBA
Código: [Selecionar]
[global]
workgroup = VATICANO
netbios name = SERVLINUX
server string = Pequena Casa da Crianca
interfaces = lo, eth0
bind interfaces only = Yes
obey pam restrictions = Yes
passdb backend = tdbsam
pam password change = Yes
passwd program = /usr/bin/paswd %u
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
time server = Yes
socket options =
printcap name = cups
add machine script = /usr/bin/adduser -n -r -g machines  -d /dev/null -s /bin/false %U
logon script = %U.bat
logon path = X:
logon home = \\10.1.1.21\%U
domain logons = Yes
os level = 100
preferred master = Yes
domain master = Yes
wins support = Yes
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
admin users = +informatica, +estoque, +financeiro, +administrativo, +dp, +recepcao

####CUPS

winbind separator = +
idmap uid = 30000-40000
idmap gid = 30000-40000
winbind enum users =  Yes
winbind enum groups = yes
template homedir =/home/winnt%D/%U
template shell = /bin/bash
winbind use default domain = yes
printcap name = /etc/printcap.cups
load printers = yes
printing = cups

[VIRTUAL]
comment = Terreo
read only = No
create mask = 0700
guest ok = Yes
printable = yes
guest only = yes
use client driver = yes
public = yes
path = var/spool/virtual/
postscript = Yes
print command = lpr -P %p -o raw %s -r
lpq command = lpstat -o %p
lprm command = cancel %p-%j
printing = cups


[printers]
comment = Todas Impressoras
path = /var/spool/samba
guest ok = Yes
printable = Yes
browseable = No

[netlogon]
comment = ServicoLogon
path = /var/samba/netlogon
guest ok = Yes
browseable = No

[profiles]
path = /var/profiles
read only = No
create mask = 0600
directory mask = 0700
browseable = No

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0700
directory mask = 0700
browseable = No

CUPSD.CONF
Código: [Selecionar]
#
#
#   Sample configuration file for the Common UNIX Printing System (CUPS)
#   scheduler.  See "man cupsd.conf" for a complete description of this
#   file.
#

# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel warning

# Administrator user group...
SystemGroup lpadmin


# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing Off
BrowseOrder allow,deny
BrowseAllow all
BrowseAddress @LOCAL

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
  Order Deny,Allow
 Deny All
 Allow From 10.1.1.*
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Encryption Required
  Order deny, allow
  Deny All
  Allow From 10.1.1.*
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order deny,allow
  Deny All
  Allow From 10.1.1.*
</Location>

# Set the default printer/job policies...
<Policy default>
  # Job-related operations must be done by the owner or an administrator...
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

#
#
« Última modificação: 16 de Julho de 2009, 17:11 por rodfall »