Hello Admins,
We serve printing to XP clients with Samba 3.0.4 and CUPS 1.1.20
I get the following error when trying to issue this command:
xprint-admin:/home/suarezry# rpcclient localhost -N 
-U'username%password' -c 'setdriver oa-e108-e2 oa-e108-e2'
result was WERR_ACCESS_DENIED
<snip>
000018 spoolss_io_r_open_printer_ex
    000018 smb_io_pol_hnd printer handle
        0018 data1: 00000000
        001c data2: 00000002
        0020 data3: 0000
        0022 data4: 0000
        0024 data5: 55 df d6 40 fa 01 00 00
    002c status code: WERR_ACCESS_DENIED
</snip>
Does anyone have any idea on what the problem is?
regards,
Ryan
Who do you have as your printer admin in your smb.conf? Should be something like printer admin = root, then when you issue the command use root%password. Are you trying to setup point and print? If so its much easier to do this from a windows machine. If you need help let me know. Jason Ryan Suarez wrote:> Hello Admins, > > We serve printing to XP clients with Samba 3.0.4 and CUPS 1.1.20 > > I get the following error when trying to issue this command: > > xprint-admin:/home/suarezry# rpcclient localhost -N > -U'username%password' -c 'setdriver oa-e108-e2 oa-e108-e2' > result was WERR_ACCESS_DENIED > > <snip> > 000018 spoolss_io_r_open_printer_ex > 000018 smb_io_pol_hnd printer handle > 0018 data1: 00000000 > 001c data2: 00000002 > 0020 data3: 0000 > 0022 data4: 0000 > 0024 data5: 55 df d6 40 fa 01 00 00 > 002c status code: WERR_ACCESS_DENIED > </snip> > > Does anyone have any idea on what the problem is? > > regards, > Ryan
Ryan Suarez
2004-Jun-21  13:30 UTC
[Samba] Re: rpcclient setdriver WERR_ACCESS_DENIED (SOLVED)
Ok, I found what the problem was:
I had the following line in the [printers] share in smb.conf:
    valid users = +staff
I just had to add the username that I was running cupsaddsmb with and 
that worked fine.
thanks,
Ryan
>
> We serve printing to XP clients with Samba 3.0.4 and CUPS 1.1.20
>
> I get the following error when trying to issue this command:
>
> xprint-admin:/home/suarezry# rpcclient localhost -N 
> -U'username%password' -c 'setdriver oa-e108-e2 oa-e108-e2'
> result was WERR_ACCESS_DENIED
>
> <snip>
> 000018 spoolss_io_r_open_printer_ex
>    000018 smb_io_pol_hnd printer handle
>        0018 data1: 00000000
>        001c data2: 00000002
>        0020 data3: 0000
>        0022 data4: 0000
>        0024 data5: 55 df d6 40 fa 01 00 00
>    002c status code: WERR_ACCESS_DENIED
> </snip>
>
> Does anyone have any idea on what the problem is?
>