Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to print to a samba printer via CUPS. I have configured the printer allright, but there seems to be a problem with authentication. The error message I get is

Session setup failed: NT_STATUS_LOGON_FAILURE

The GUI also tells me: Idle - Tree connect failed (NT_STATUS_ACCESS_DENIED)

It used to work with previous versions of CUPS (1.4.3 and 1.4.6) under Ubuntu 11.04

I am doing this on a clean install of Ubuntu 12.04, CUPS version 1.5.3. I have tried changing some rights relating to apparmor, with no success as described here:

I have been working with Ubuntu for years - but this is the kind of problem I need help with.

share|improve this question
I also tried downgrading to CUPS 4.1.8, that did not help, I could not connect to localhost:631 any more. I am now back at the issue described above, any help will be greatly appreciated. – Julius Aug 29 '12 at 20:22

Hurrah, its working. The problem is related to a really strange authentication issue that 12.04 has with samba. As I also had problems connecting to the samba drives, I read that server and domain names need to be in uppercase (I have no clue why) to make them work.

For the samba printer, it was enough to just have the domain name uppercase, such as this:


take care to unlock caps lock before entering the password :-)

I hope this saves someone time.

share|improve this answer
Could you elaborate more on the "really strange authentication issue"? – Aaron Aug 30 '12 at 15:34
In my case the domain name points to a netbios print server and as: 1) netbios names are (almost) always uppercase and 2) we (in UNIX/Linux) assume case sensitively then it should be in UPPERCASE. – user242817 Feb 2 '14 at 15:38
This worked for me, thanks – T.W.R. Cole Oct 1 '14 at 18:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.