'Access denied' when trying to connect to shared printer on Ubuntu server

Johan Cockx johan at sikanda.be
Wed Dec 2 10:07:46 UTC 2009


This printing problem looks like a bug to me,   but I am not an expert;  any
opinions or suggestions?

I have a small home network with an Ubuntu 9.10 server and several Windows
clients.  My printer is connected to the server and should be usable from
all clients.

After a fresh install of Ubuntu 9.10 (Karmic Koala) on the server,  I used
the GUI (System>Administration>Printing) to install the printer locally (it
works fine) and then share it (in the printer configuration menu:
Server>Settings>Publish shared printers connected to this system).

On the first client (running XP),  I could install and use the printer
without problems.

On the second client (running XP) , installation worked but it refuses to
print. In the "Printers and Faxes" window,  the printer status reads "Access
denied,  unable to connect".

I checked the settings on the server again;  they were unchanged.  However,
when I try to turn off printer sharing (using Server>Settings>Publish shared
printers connected to this system),  I get a pop-up reading "CUPS server
error: there was an error during the CUPS operation: 'Failed to set
settings".

Since the problem only occurs when trying to access the printer from a
client,  I suspect it is related to Samba,  so I had a look at the Samba log
files.  The only recent log entries I could find were in
/var/log/samba/log.winbindd-idmap and they are copied below.  I have no clue
what these are about.

All suggestions for further action to resolve this problem are very welcome.

[2009/12/02 10:44:47,  0] winbindd/idmap.c:201(smb_register_idmap_alloc)
  idmap_alloc module tdb already registered!
[2009/12/02 10:44:47,  0] winbindd/idmap.c:149(smb_register_idmap)
  Idmap module passdb already registered!
[2009/12/02 10:44:47,  0] winbindd/idmap.c:149(smb_register_idmap)
  Idmap module nss already registered!
[2009/12/02 10:44:47,  1] winbindd/idmap_tdb.c:214(idmap_tdb_load_ranges)
  idmap uid missing
[2009/12/02 10:44:47,  0] winbindd/idmap_tdb.c:341(idmap_tdb_alloc_init)
  idmap will be unable to map foreign SIDs: NT_STATUS_UNSUCCESSFUL
[2009/12/02 10:44:47,  0] winbindd/idmap.c:589(idmap_alloc_init)
  ERROR: Initialization failed for alloc backend, deferred!
[2009/12/02 10:44:47,  0] winbindd/idmap.c:201(smb_register_idmap_alloc)
  idmap_alloc module tdb already registered!
[2009/12/02 10:44:47,  0] winbindd/idmap.c:149(smb_register_idmap)
  Idmap module passdb already registered!
[2009/12/02 10:44:47,  0] winbindd/idmap.c:149(smb_register_idmap)
  Idmap module nss already registered!
[2009/12/02 10:44:47,  1] winbindd/idmap_tdb.c:214(idmap_tdb_load_ranges)
  idmap uid missing
[2009/12/02 10:44:47,  0] winbindd/idmap_tdb.c:341(idmap_tdb_alloc_init)
  idmap will be unable to map foreign SIDs: NT_STATUS_UNSUCCESSFUL
[2009/12/02 10:44:47,  0] winbindd/idmap.c:589(idmap_alloc_init)
  ERROR: Initialization failed for alloc backend, deferred!
[2009/12/02 10:44:47,  0] winbindd/idmap.c:201(smb_register_idmap_alloc)
  idmap_alloc module tdb already registered!
[2009/12/02 10:44:47,  0] winbindd/idmap.c:149(smb_register_idmap)
  Idmap module passdb already registered!
[2009/12/02 10:44:47,  0] winbindd/idmap.c:149(smb_register_idmap)
  Idmap module nss already registered!
[2009/12/02 10:44:47,  1] winbindd/idmap_tdb.c:214(idmap_tdb_load_ranges)
  idmap uid missing
[2009/12/02 10:44:47,  0] winbindd/idmap_tdb.c:341(idmap_tdb_alloc_init)
  idmap will be unable to map foreign SIDs: NT_STATUS_UNSUCCESSFUL
[2009/12/02 10:44:47,  0] winbindd/idmap.c:589(idmap_alloc_init)
  ERROR: Initialization failed for alloc backend, deferred!
[2009/12/02 10:44:47,  0] winbindd/idmap.c:201(smb_register_idmap_alloc)
  idmap_alloc module tdb already registered!
[2009/12/02 10:44:47,  0] winbindd/idmap.c:149(smb_register_idmap)
  Idmap module passdb already registered!
[2009/12/02 10:44:47,  0] winbindd/idmap.c:149(smb_register_idmap)
  Idmap module nss already registered!
[2009/12/02 10:44:47,  1] winbindd/idmap_tdb.c:214(idmap_tdb_load_ranges)
  idmap uid missing
[2009/12/02 10:44:47,  0] winbindd/idmap_tdb.c:341(idmap_tdb_alloc_init)
  idmap will be unable to map foreign SIDs: NT_STATUS_UNSUCCESSFUL
[2009/12/02 10:44:47,  0] winbindd/idmap.c:589(idmap_alloc_init)
  ERROR: Initialization failed for alloc backend, deferred!
[2009/12/02 10:44:47,  0] winbindd/idmap.c:201(smb_register_idmap_alloc)
  idmap_alloc module tdb already registered!
[2009/12/02 10:44:47,  0] winbindd/idmap.c:149(smb_register_idmap)
  Idmap module passdb already registered!
[2009/12/02 10:44:47,  0] winbindd/idmap.c:149(smb_register_idmap)
  Idmap module nss already registered!
[2009/12/02 10:44:47,  1] winbindd/idmap_tdb.c:214(idmap_tdb_load_ranges)
  idmap uid missing
[2009/12/02 10:44:47,  0] winbindd/idmap_tdb.c:341(idmap_tdb_alloc_init)
  idmap will be unable to map foreign SIDs: NT_STATUS_UNSUCCESSFUL
[2009/12/02 10:44:47,  0] winbindd/idmap.c:589(idmap_alloc_init)
  ERROR: Initialization failed for alloc backend, deferred!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20091202/83c26394/attachment.html>


More information about the ubuntu-users mailing list