Logon failure trying to print using Samba












0















I'm trying to set up a CUPS print server on a Knoppix system for use by Windows clients in an Active Directory domain. So far, I've had success with printing over IPP. Now I want to explore the possibility of using Samba to access the printers. I've undertaken the following steps to set up the printer:




  • Added the printer to CUPS using the Windows Printer via Samba (Windows) option, giving the URL smb://<user name>@<IP address>/<printer share name>.

  • Set the Samba workgroup to the Windows domain name

  • Added a user of the same name to the system using sudo useradd <user name> --shell /bin/false

  • Set the corresponding windows domain user's password using sudo smbpasswd -a <user name>.

  • Finally, I set the workgroup name in the Samba configuration file to the windows domain name.


Trying to print the test page on the newly set up printer gives me the following error:



Session setup failed:
NT_STATUS_LOGON_FAILURE


These are the relevant settings in my smb.conf:



[global]
workgroup = MY-DOMAIN-NAME
security = share
printcap name = cups
use client driver = yes
[printers]
path = /var/spool/samba
printable = yes
create mask = 0700
use client driver = yes
[print$]
path = /var/lib/samba/printers
guest ok = yes
write list = root some.domainuser
force group = @ntadmin
directory mask = 0775
create mask = 0664


Have I overlooked something or made a mistake with this setup?










share|improve this question















migrated from serverfault.com Jan 24 '13 at 13:02


This question came from our site for system and network administrators.























    0















    I'm trying to set up a CUPS print server on a Knoppix system for use by Windows clients in an Active Directory domain. So far, I've had success with printing over IPP. Now I want to explore the possibility of using Samba to access the printers. I've undertaken the following steps to set up the printer:




    • Added the printer to CUPS using the Windows Printer via Samba (Windows) option, giving the URL smb://<user name>@<IP address>/<printer share name>.

    • Set the Samba workgroup to the Windows domain name

    • Added a user of the same name to the system using sudo useradd <user name> --shell /bin/false

    • Set the corresponding windows domain user's password using sudo smbpasswd -a <user name>.

    • Finally, I set the workgroup name in the Samba configuration file to the windows domain name.


    Trying to print the test page on the newly set up printer gives me the following error:



    Session setup failed:
    NT_STATUS_LOGON_FAILURE


    These are the relevant settings in my smb.conf:



    [global]
    workgroup = MY-DOMAIN-NAME
    security = share
    printcap name = cups
    use client driver = yes
    [printers]
    path = /var/spool/samba
    printable = yes
    create mask = 0700
    use client driver = yes
    [print$]
    path = /var/lib/samba/printers
    guest ok = yes
    write list = root some.domainuser
    force group = @ntadmin
    directory mask = 0775
    create mask = 0664


    Have I overlooked something or made a mistake with this setup?










    share|improve this question















    migrated from serverfault.com Jan 24 '13 at 13:02


    This question came from our site for system and network administrators.





















      0












      0








      0








      I'm trying to set up a CUPS print server on a Knoppix system for use by Windows clients in an Active Directory domain. So far, I've had success with printing over IPP. Now I want to explore the possibility of using Samba to access the printers. I've undertaken the following steps to set up the printer:




      • Added the printer to CUPS using the Windows Printer via Samba (Windows) option, giving the URL smb://<user name>@<IP address>/<printer share name>.

      • Set the Samba workgroup to the Windows domain name

      • Added a user of the same name to the system using sudo useradd <user name> --shell /bin/false

      • Set the corresponding windows domain user's password using sudo smbpasswd -a <user name>.

      • Finally, I set the workgroup name in the Samba configuration file to the windows domain name.


      Trying to print the test page on the newly set up printer gives me the following error:



      Session setup failed:
      NT_STATUS_LOGON_FAILURE


      These are the relevant settings in my smb.conf:



      [global]
      workgroup = MY-DOMAIN-NAME
      security = share
      printcap name = cups
      use client driver = yes
      [printers]
      path = /var/spool/samba
      printable = yes
      create mask = 0700
      use client driver = yes
      [print$]
      path = /var/lib/samba/printers
      guest ok = yes
      write list = root some.domainuser
      force group = @ntadmin
      directory mask = 0775
      create mask = 0664


      Have I overlooked something or made a mistake with this setup?










      share|improve this question
















      I'm trying to set up a CUPS print server on a Knoppix system for use by Windows clients in an Active Directory domain. So far, I've had success with printing over IPP. Now I want to explore the possibility of using Samba to access the printers. I've undertaken the following steps to set up the printer:




      • Added the printer to CUPS using the Windows Printer via Samba (Windows) option, giving the URL smb://<user name>@<IP address>/<printer share name>.

      • Set the Samba workgroup to the Windows domain name

      • Added a user of the same name to the system using sudo useradd <user name> --shell /bin/false

      • Set the corresponding windows domain user's password using sudo smbpasswd -a <user name>.

      • Finally, I set the workgroup name in the Samba configuration file to the windows domain name.


      Trying to print the test page on the newly set up printer gives me the following error:



      Session setup failed:
      NT_STATUS_LOGON_FAILURE


      These are the relevant settings in my smb.conf:



      [global]
      workgroup = MY-DOMAIN-NAME
      security = share
      printcap name = cups
      use client driver = yes
      [printers]
      path = /var/spool/samba
      printable = yes
      create mask = 0700
      use client driver = yes
      [print$]
      path = /var/lib/samba/printers
      guest ok = yes
      write list = root some.domainuser
      force group = @ntadmin
      directory mask = 0775
      create mask = 0664


      Have I overlooked something or made a mistake with this setup?







      linux samba active-directory network-printer cups






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 22 '13 at 11:56







      waldrumpus

















      asked Jan 23 '13 at 15:14









      waldrumpuswaldrumpus

      2571418




      2571418




      migrated from serverfault.com Jan 24 '13 at 13:02


      This question came from our site for system and network administrators.









      migrated from serverfault.com Jan 24 '13 at 13:02


      This question came from our site for system and network administrators.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          What version of Windows are you using? On Windows 7 you should be able to right click the printer and go to Printer Properties from there go to ports. Select the port you use and configure it. Under Security Options select the appropriate button. More than likely you'll want to use "Automatically use the Windows logon name and password"






          share|improve this answer
























          • I've just had a look: There are some ports listed, but none is checked and all are grayed out, meaning I probably can't change their settings. I'm an administrator on my Windows 7 machine. Do I have to have elevated rights for this?

            – waldrumpus
            Mar 14 '13 at 13:31











          • Update: I've just had a look at the printer settings of a printer shared from a Windows machine. In there, I can readily change the port settings, and one of them is checked.

            – waldrumpus
            Mar 14 '13 at 13:33











          • The smb://<user name>@<IP address>/<printer share name> that you are using is for when you're trying to connect CUPS to use a printer that is located on a Windows machine rather than using a Windows client to connect to a printer located on a Samba machine.

            – davelupt
            Mar 16 '13 at 18:20











          • What happens when you go into Windows cmd and type net use * \ipaddressprinters /u:username ? Given that you've set up a Unix user account of the same name as the Samba user and given the Samba user a password, it should ask you for a password.

            – davelupt
            Mar 16 '13 at 18:22











          • One last thing. What does your smb.conf look like?

            – davelupt
            Mar 16 '13 at 18:25











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f541074%2flogon-failure-trying-to-print-using-samba%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          What version of Windows are you using? On Windows 7 you should be able to right click the printer and go to Printer Properties from there go to ports. Select the port you use and configure it. Under Security Options select the appropriate button. More than likely you'll want to use "Automatically use the Windows logon name and password"






          share|improve this answer
























          • I've just had a look: There are some ports listed, but none is checked and all are grayed out, meaning I probably can't change their settings. I'm an administrator on my Windows 7 machine. Do I have to have elevated rights for this?

            – waldrumpus
            Mar 14 '13 at 13:31











          • Update: I've just had a look at the printer settings of a printer shared from a Windows machine. In there, I can readily change the port settings, and one of them is checked.

            – waldrumpus
            Mar 14 '13 at 13:33











          • The smb://<user name>@<IP address>/<printer share name> that you are using is for when you're trying to connect CUPS to use a printer that is located on a Windows machine rather than using a Windows client to connect to a printer located on a Samba machine.

            – davelupt
            Mar 16 '13 at 18:20











          • What happens when you go into Windows cmd and type net use * \ipaddressprinters /u:username ? Given that you've set up a Unix user account of the same name as the Samba user and given the Samba user a password, it should ask you for a password.

            – davelupt
            Mar 16 '13 at 18:22











          • One last thing. What does your smb.conf look like?

            – davelupt
            Mar 16 '13 at 18:25
















          0














          What version of Windows are you using? On Windows 7 you should be able to right click the printer and go to Printer Properties from there go to ports. Select the port you use and configure it. Under Security Options select the appropriate button. More than likely you'll want to use "Automatically use the Windows logon name and password"






          share|improve this answer
























          • I've just had a look: There are some ports listed, but none is checked and all are grayed out, meaning I probably can't change their settings. I'm an administrator on my Windows 7 machine. Do I have to have elevated rights for this?

            – waldrumpus
            Mar 14 '13 at 13:31











          • Update: I've just had a look at the printer settings of a printer shared from a Windows machine. In there, I can readily change the port settings, and one of them is checked.

            – waldrumpus
            Mar 14 '13 at 13:33











          • The smb://<user name>@<IP address>/<printer share name> that you are using is for when you're trying to connect CUPS to use a printer that is located on a Windows machine rather than using a Windows client to connect to a printer located on a Samba machine.

            – davelupt
            Mar 16 '13 at 18:20











          • What happens when you go into Windows cmd and type net use * \ipaddressprinters /u:username ? Given that you've set up a Unix user account of the same name as the Samba user and given the Samba user a password, it should ask you for a password.

            – davelupt
            Mar 16 '13 at 18:22











          • One last thing. What does your smb.conf look like?

            – davelupt
            Mar 16 '13 at 18:25














          0












          0








          0







          What version of Windows are you using? On Windows 7 you should be able to right click the printer and go to Printer Properties from there go to ports. Select the port you use and configure it. Under Security Options select the appropriate button. More than likely you'll want to use "Automatically use the Windows logon name and password"






          share|improve this answer













          What version of Windows are you using? On Windows 7 you should be able to right click the printer and go to Printer Properties from there go to ports. Select the port you use and configure it. Under Security Options select the appropriate button. More than likely you'll want to use "Automatically use the Windows logon name and password"







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 13 '13 at 13:21









          daveluptdavelupt

          179110




          179110













          • I've just had a look: There are some ports listed, but none is checked and all are grayed out, meaning I probably can't change their settings. I'm an administrator on my Windows 7 machine. Do I have to have elevated rights for this?

            – waldrumpus
            Mar 14 '13 at 13:31











          • Update: I've just had a look at the printer settings of a printer shared from a Windows machine. In there, I can readily change the port settings, and one of them is checked.

            – waldrumpus
            Mar 14 '13 at 13:33











          • The smb://<user name>@<IP address>/<printer share name> that you are using is for when you're trying to connect CUPS to use a printer that is located on a Windows machine rather than using a Windows client to connect to a printer located on a Samba machine.

            – davelupt
            Mar 16 '13 at 18:20











          • What happens when you go into Windows cmd and type net use * \ipaddressprinters /u:username ? Given that you've set up a Unix user account of the same name as the Samba user and given the Samba user a password, it should ask you for a password.

            – davelupt
            Mar 16 '13 at 18:22











          • One last thing. What does your smb.conf look like?

            – davelupt
            Mar 16 '13 at 18:25



















          • I've just had a look: There are some ports listed, but none is checked and all are grayed out, meaning I probably can't change their settings. I'm an administrator on my Windows 7 machine. Do I have to have elevated rights for this?

            – waldrumpus
            Mar 14 '13 at 13:31











          • Update: I've just had a look at the printer settings of a printer shared from a Windows machine. In there, I can readily change the port settings, and one of them is checked.

            – waldrumpus
            Mar 14 '13 at 13:33











          • The smb://<user name>@<IP address>/<printer share name> that you are using is for when you're trying to connect CUPS to use a printer that is located on a Windows machine rather than using a Windows client to connect to a printer located on a Samba machine.

            – davelupt
            Mar 16 '13 at 18:20











          • What happens when you go into Windows cmd and type net use * \ipaddressprinters /u:username ? Given that you've set up a Unix user account of the same name as the Samba user and given the Samba user a password, it should ask you for a password.

            – davelupt
            Mar 16 '13 at 18:22











          • One last thing. What does your smb.conf look like?

            – davelupt
            Mar 16 '13 at 18:25

















          I've just had a look: There are some ports listed, but none is checked and all are grayed out, meaning I probably can't change their settings. I'm an administrator on my Windows 7 machine. Do I have to have elevated rights for this?

          – waldrumpus
          Mar 14 '13 at 13:31





          I've just had a look: There are some ports listed, but none is checked and all are grayed out, meaning I probably can't change their settings. I'm an administrator on my Windows 7 machine. Do I have to have elevated rights for this?

          – waldrumpus
          Mar 14 '13 at 13:31













          Update: I've just had a look at the printer settings of a printer shared from a Windows machine. In there, I can readily change the port settings, and one of them is checked.

          – waldrumpus
          Mar 14 '13 at 13:33





          Update: I've just had a look at the printer settings of a printer shared from a Windows machine. In there, I can readily change the port settings, and one of them is checked.

          – waldrumpus
          Mar 14 '13 at 13:33













          The smb://<user name>@<IP address>/<printer share name> that you are using is for when you're trying to connect CUPS to use a printer that is located on a Windows machine rather than using a Windows client to connect to a printer located on a Samba machine.

          – davelupt
          Mar 16 '13 at 18:20





          The smb://<user name>@<IP address>/<printer share name> that you are using is for when you're trying to connect CUPS to use a printer that is located on a Windows machine rather than using a Windows client to connect to a printer located on a Samba machine.

          – davelupt
          Mar 16 '13 at 18:20













          What happens when you go into Windows cmd and type net use * \ipaddressprinters /u:username ? Given that you've set up a Unix user account of the same name as the Samba user and given the Samba user a password, it should ask you for a password.

          – davelupt
          Mar 16 '13 at 18:22





          What happens when you go into Windows cmd and type net use * \ipaddressprinters /u:username ? Given that you've set up a Unix user account of the same name as the Samba user and given the Samba user a password, it should ask you for a password.

          – davelupt
          Mar 16 '13 at 18:22













          One last thing. What does your smb.conf look like?

          – davelupt
          Mar 16 '13 at 18:25





          One last thing. What does your smb.conf look like?

          – davelupt
          Mar 16 '13 at 18:25


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f541074%2flogon-failure-trying-to-print-using-samba%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

          is 'sed' thread safe

          How to make a Squid Proxy server?