Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Setting up Print drivers in Samba

  1. #1

    Default Setting up Print drivers in Samba

    Hello,

    So i'm trying to add windows print drivers to smb for them to be automatically downloaded to the client upon printer installation. I've followed the samba.org Printing documents which have been helpful to some degree. I have an HP printer and i'd like to just upload and register the .inf,.dll.cab files that the manufacture cd comes with for the client to use the .inf file to install the drivers from that location but i keep getting Werr_invalid_PARAM

    here is the syntax of what i'm trying to do, can anyone help?



    rpcclient -d 4 -U 'username%password' -c 'adddriver "Windows NT x86" \
    "HP_Color_LaserJet_3800:hpbicoin.dll:hpc3800c.inf:hpc3800c.cat:hpc3800c.cab:hpcp3800.cf_6i2arww.cab6i2caww.cab6i2csww.cab' Server

  2. #2
    Join Date
    Nov 2009
    Location
    ND, USA
    Posts
    1,131

    Default Re: Setting up Print drivers in Samba

    On Tue April 26 2011 12:06 pm, timothysomalley wrote:

    >
    > Hello,
    >
    > So i'm trying to add windows print drivers to smb for them to be
    > automatically downloaded to the client upon printer installation. I've
    > followed the samba.org Printing documents which have been helpful to
    > some degree. I have an HP printer and i'd like to just upload and
    > register the .inf,.dll.cab files that the manufacture cd comes with for
    > the client to use the .inf file to install the drivers from that
    > location but i keep getting Werr_invalid_PARAM
    >
    > here is the syntax of what i'm trying to do, can anyone help?
    >
    >
    >
    > rpcclient -d 4 -U 'username%password' -c 'adddriver "Windows NT x86" \
    >
    > "HP_Color_LaserJet_3800:hpbicoin.dll:hpc3800c.inf:hpc3800c.cat:hpc3800c.cab:hpcp3800.cf_6i2arww.cab6i2caww.cab6i2csww.cab'
    > Server
    >

    timothysomalley;

    Did you run rpcclient a second time with "setdriver" subcommand?

    See the section "Installing Drivers into [Print$]:
    http://www.samba.org/samba/docs/man/...html#id2627627

    If the printer is first installed on a windows machine, there is an easy way
    using the "Add Printer Wizard", to download to your [PRINT$] share. This is
    given in the first section of the above HOWTO. Here is another written for
    SLES but it also works on any NIX system. See the section:
    "Adding Windows Printer Drivers to the server" of
    http://www.pcc-services.com/sles/samba5.html

    I've found the "Add Printer Wizard" is the easiest way to get the Drivers into
    [Print$]

    --
    P. V.
    "We're all in this together, I'm pulling for you." Red Green

  3. #3

    Default Re: Setting up Print drivers in Samba

    I too am having this issue. I believe my issue is permission related. On the windows machine at the run command I put \\printserver1 and pull up the SUSE 11.4 machine. Browse to the printers and faxes folder. In that folder I have my two printers listed. As per the instructions I right click the printer and left click on properties, answer no to the prompt, go the the advanced tab. Here the "New Driver" button as well as all other options on the tab are grey'd out.

    I can connect to the hidden print$ share and create folders/documents so I have permission to that folder. I'm just not seeing what permissions need to be changed on the SUSE box so that I can add the printer.

    Any insight would be greatly appreciated.

    Thanks
    Joe
    PS...I'm pretty new to Linux so please be explicit in your suggestion.

  4. #4
    Join Date
    Nov 2009
    Location
    ND, USA
    Posts
    1,131

    Default Re: Setting up Print drivers in Samba

    On Fri April 29 2011 01:06 pm, jcavallaro wrote:

    >
    > I too am having this issue. I believe my issue is permission related.
    > On the windows machine at the run command I put \\printserver1 and pull
    > up the SUSE 11.4 machine. Browse to the printers and faxes folder. In
    > that folder I have my two printers listed. As per the instructions I
    > right click the printer and left click on properties, answer no to the
    > prompt, go the the advanced tab. Here the "New Driver" button as well
    > as all other options on the tab are grey'd out.
    >
    > I can connect to the hidden print$ share and create folders/documents
    > so I have permission to that folder. I'm just not seeing what
    > permissions need to be changed on the SUSE box so that I can add the
    > printer.
    >
    > Any insight would be greatly appreciated.
    >
    > Thanks
    > Joe
    > PS...I'm pretty new to Linux so please be explicit in your suggestion.
    >
    >

    Joe;

    Do you have the SePrintOperatorPrivilege set for your user? See:

    http://samba.org/samba/docs/man/Samb...on/rights.html
    --
    P. V.
    "We're all in this together, I'm pulling for you." Red Green

  5. #5

    Default Re: Setting up Print drivers in Samba

    Thank for the quick reply...

    I've tried but unsuccessfully.

    net -S server -U domadmin rpc rights grant \ 'ARC\Domain Admins' SeMachineAccountPrivilege

    It tells me Invalid command: net rpc rights

    I must have something wrong in the syntax...

    Joe

  6. #6

    Default Re: Setting up Print drivers in Samba

    oh...I've also tried

    net rpc rights grant 'ARC\Domain Admins' \ SeMachineAccountPrivilege -S server -U domadmin

    Result: Unable to find a suitable server for domain ARC

    Joe

  7. #7

    Default Re: Setting up Print drivers in Samba

    Got another step further...now I get a different error

    Failed to grant privileges for ARC\Domain admins (NT_STATUS_NO_SUCH_PRIVILEGE)

  8. #8
    Join Date
    Nov 2009
    Location
    ND, USA
    Posts
    1,131

    Default Re: Setting up Print drivers in Samba

    On Fri April 29 2011 02:36 pm, jcavallaro wrote:

    >
    > Got another step further...now I get a different error
    >
    > Failed to grant privileges for ARC\Domain admins
    > (NT_STATUS_NO_SUCH_PRIVILEGE)
    >

    jcavallaro;

    Look here: http://www.pcc-services.com/sles/samba3.html

    Example:
    Code:
    venxxx@ABC:~> net rpc rights grant 'mydomain\Domain Admins'
    SeMachineAccountPrivilege -S ABC -U root
    Enter root's password:
    Successfully granted rights.
    Note: The net command is on one line, it is only wrapped for posting
    --
    P. V.
    "We're all in this together, I'm pulling for you." Red Green

  9. #9

    Default Re: Setting up Print drivers in Samba

    Thanks again for the info. I was able to run the net rpc command substituting root for a domain admin and get a successful...not sure if I was supposed to use a domain admin or not. If not then I would have to create a user root on the domain.

    I have read through the information on the link you provided. From what I'm understanding from it, the instructions are for Samba to act as the PDC. That is not the case for use. We're using AD and SUSE needs to integrate with AD and authenticate against AD. I believe I have that piece working correctly as I can log onto the SUSE box using a user/password from AD.

    Screen Shot
    http://screencast.com/t/RfoKtSpUiv

  10. #10
    Join Date
    Nov 2009
    Location
    ND, USA
    Posts
    1,131

    Default Re: Setting up Print drivers in Samba

    On Mon May 2 2011 01:06 pm, jcavallaro wrote:

    >
    > Thanks again for the info. I was able to run the net rpc command
    > substituting root for a domain admin and get a successful...not sure if
    > I was supposed to use a domain admin or not. If not then I would have to
    > create a user root on the domain.
    >
    > I have read through the information on the link you provided. From what
    > I'm understanding from it, the instructions are for Samba to act as the
    > PDC. That is not the case for use. We're using AD and SUSE needs to
    > integrate with AD and authenticate against AD. I believe I have that
    > piece working correctly as I can log onto the SUSE box using a
    > user/password from AD.
    >
    > Screen Shot
    > http://screencast.com/t/RfoKtSpUiv
    >
    >

    jcavallaro;

    I'm afraid I'm not familiar with the AD environment and so this is a bit
    theoretical. The example you posted and my reply involved the
    right "SeMachineAccountPrivilege". But I thought you wanted to add
    printers, and so you need "SePrintOperatorPrivilige". You only needed root
    to run the "net rpc rights" command. The user you grant that right to should
    now be able to add printer drivers to the Linux server.
    --
    P. V.
    "We're all in this together, I'm pulling for you." Red Green

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •