Страница 1 из 1

Принтер в состоянии (нет доступа, подключение невозможно)

Добавлено: 2007-12-06 16:48:38
densan
Ставлю по ставтье http://www.lissyara.su/?id=1514 FreeBSD 6.2, samba-3.0.26a_2,1, cups-base-1.3.3_2., cups-samba не ставил.
Подключаюсь с виндовс машины к принтеру драйвера беру с диска, все проходит хорошо, в принтер с состоянии "нет доступа, подключение невозможно", печать идет :), но надпись состояния нервирует.

Код: Выделить всё

[global]
	dos charset = cp866
	unix charset = koi8-r
	display charset = cp866
	workgroup = PNZ
	realm = PNZ.LOCAL
	server string = Samba Server
	security = ADS
	auth methods = winbind
	map to guest = Bad User
	password server = 172.17.5.20
	client lanman auth = No
	client plaintext auth = No
	log file = /var/log/samba/log.%m
	max log size = 50
	client signing = Yes
	printcap name = cups
	preferred master = No
	local master = No
	domain master = No
	dns proxy = No
	ldap ssl = no
	usershare allow guests = Yes
	idmap uid = 10000-20000
	idmap gid = 10000-20000
	winbind enum users = Yes
	winbind enum groups = Yes
	winbind use default domain = Yes
	winbind refresh tickets = Yes
	acl group control = Yes
	hosts allow = 172.17.5., 127.
	map acl inherit = Yes
	printing = cups
	print command = 
	lpq command = %p
	lprm command = 
	case sensitive = No

[printers]
	comment = All Printers
	path = /var/spool/samba
	printer admin = root, @da, @support
	guest ok = Yes
	printable = Yes
	browseable = No

[vol0]
	comment = vol0
	path = /usr/vol0
	valid users = @PNZ\volodar_user
	admin users = @PNZ\support
	read only = No
	inherit permissions = Yes
	inherit acls = Yes
	inherit owner = Yes

[HP3052]
	path = /var/spool/samba
	printer admin = root, @da, @support
	read only = No
	guest ok = Yes
	printable = Yes
	printer name = HP3052
	oplocks = No
	share modes = No

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

# Administrator user group...
SystemGroup wheel


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

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all

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

# Restrict access to the server...
<Location />
  Order allow,deny
  Allow localhost
  Allow 172.17.5.*
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Encryption Required
  Order allow,deny
  Allow localhost
  Allow 172.17.5.*
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
  Allow localhost
  Allow 172.17.5.*
</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>

Re: Принтер в состоянии (нет доступа, подключение невозмож

Добавлено: 2009-03-08 23:03:22
Alex Keda
забить? =)