Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Deutsches Forum (German)
  • Search

[S]Windows-> Cups Zugriff verweigert; keine Verbindung mögli

Support-Forum
Diskussionen rund um Installation, Betrieb und Anpassungen von Gentoo und dessen Paketen sowie dabei auftretenden (technischen) Problemen.
Deutsches Portal: www.gentoo.de
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
Author
Message
Tinitus
Veteran
Veteran
Posts: 1754
Joined: Mon Sep 20, 2004 6:00 pm

[S]Windows-> Cups Zugriff verweigert; keine Verbindung mö

  • Quote

Post by Tinitus » Sun May 17, 2009 2:38 pm

Hallo,

wollte gerne von einer Windowsmaschine auf einen schon lokal funktionierenden Drucker unter cups via samba Zugreifen.

Leider bekomme ich nach dem Einrichten des Druckers unter Windows XP die Fehlermeldung "mein_Druckername" Zugriff verweigert; keine Verbindung möglich
meine cupsd.conf

Code: Select all

cat /etc/cups/cupsd.conf
# Show troubleshooting information in error_log.
LogLevel debug
SystemGroup lpadmin
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
DefaultAuthType Basic
<Location />
  # Allow remote administration...
  Order allow,deny
  Allow @LOCAL
</Location>
<Location /admin>
  Encryption Required
  # Allow remote administration...
  Order allow,deny
  Allow @LOCAL
</Location>
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  # Allow remote access to the configuration files...
  Order allow,deny
  Allow @LOCAL
</Location>
<Policy default>
  <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
Allow From 192.168.3.*
    Order deny,allow
  </Limit>
  <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>
  <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
Allow From 192.168.3.*
    Order deny,allow
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
Linuxserver
Ich denke es liegt daran?!
Was habe ich nur falsch gemacht?

G. R.

Edit: meine smb.conf nach Hilfe von Sebastian ohne Kommentare:

Code: Select all

grep -v "#" /etc/samba/smb.conf | grep -v ";" 
[global]

   workgroup = Arbeitsgruppe
   netbios name = Arbeitsgruppe
   server string = Samba_Server %v
   printcap name = cups
   load printers = yes
   printing = cups
   log file = /var/log/samba/log.%m
   max log size = 50
  log level = 3
   hosts allow = 192.168.3. 192.168.2. 127.
  map to guest = bad user
   security = user
  encrypt passwords = yes
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384
  dns proxy = no 

[homes]
   comment = Home Directories
   browseable = no
   writable = yes

[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
   guest ok = yes
   writable = yes
   printable = yes

[print$]
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   write list = @adm root 
   guest ok = yes

Last edited by Tinitus on Sun May 17, 2009 6:52 pm, edited 1 time in total.
Top
ChrisJumper
Advocate
Advocate
Posts: 2419
Joined: Sat Mar 12, 2005 1:42 pm
Location: Germany

  • Quote

Post by ChrisJumper » Sun May 17, 2009 4:09 pm

Hmm, schau mal in die Logs vom Cups-Server. Vielleicht ist das wirklich nur so ein Problem mit den Rechten, und die Meldungen auf dem Server aufschlussreicher.

Ich hab in meiner /etc/cups/cupsd.conf noch eine solche Zeile:

Code: Select all

Listen localhost:631
Listen [::1]:631
Listen /var/run/cups/cups.sock

# http://forums.gentoo.org/viewtopic-t-759884-highlight-gnome+cups.html
HostNameLookups Double
Und ohne diesen Host-Double-Eintrag konnte ich nach einem Update auch unter Gnome nicht mehr drucken.

Wenn du nur (mal eben) von einer Windows aus drucken willst, brauchst du nicht unbedingt Samba, du könntest den Drucker via IPP verwenden.

Grüße
Top
Tinitus
Veteran
Veteran
Posts: 1754
Joined: Mon Sep 20, 2004 6:00 pm

  • Quote

Post by Tinitus » Sun May 17, 2009 6:51 pm

ChrisJumper wrote:Hmm, schau mal in die Logs vom Cups-Server. Vielleicht ist das wirklich nur so ein Problem mit den Rechten, und die Meldungen auf dem Server aufschlussreicher.

Ich hab in meiner /etc/cups/cupsd.conf noch eine solche Zeile:

Code: Select all

Listen localhost:631
Listen [::1]:631
Listen /var/run/cups/cups.sock

# http://forums.gentoo.org/viewtopic-t-759884-highlight-gnome+cups.html
HostNameLookups Double
Und ohne diesen Host-Double-Eintrag konnte ich nach einem Update auch unter Gnome nicht mehr drucken.

Wenn du nur (mal eben) von einer Windows aus drucken willst, brauchst du nicht unbedingt Samba, du könntest den Drucker via IPP verwenden.

Grüße
Hallo,

konnte mein Problem lösen. Es lag an dem Windows Druckertreiber. Dieser ist wohl nicht so richtig Netzwerkfähig(Es handelt sich um einen Brother QL550). Nachdem ich noch einen RAW Cups Drucker eingerichtet hatte funktionierte auch der Druck im Netz.
D.h. meine Cups und Samba Config ist wohl OK.

Danke Euch.

G. R.
Top
Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Deutsches Forum (German)”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy