[Samba] werr_access_denied when running setdriver for a printer
Alex Korobkin
korobkin+smb at gmail.com
Fri Jan 11 09:52:25 MST 2013
Hi all,
I'm getting WERR_ACCESS_DENIED error for some of the printers when running
setdriver printer_name printer_driver as part of the cupsaddsmb step.
Weirdly, it works for some printers, and never works for others, while all
the printers have the same settings. Samba 3.5.20 with CUPS 1.5.4.
Does this part of log give any clue of why could this happen?
function print_access_check() -- where does it take its data to check for
printer access?
[2013/01/11 15:57:10.794623, 10] smbd/share_access.c:238(user_ok_token)
user_ok_token: share myprinter1 is ok for unix user korobkin
[2013/01/11 15:57:10.794666, 10] lib/util_seaccess.c:58(se_map_generic)
se_map_generic(): mapped mask 0x20020008 to 0x00020008
[2013/01/11 15:57:10.794701, 10] lib/util_seaccess.c:58(se_map_generic)
se_map_generic(): mapped mask 0x100f000c to 0x000f000c
[2013/01/11 15:57:10.794722, 10] lib/util_seaccess.c:58(se_map_generic)
se_map_generic(): mapped mask 0x100f000c to 0x000f000c
[2013/01/11 15:57:10.794743, 10] lib/util_seaccess.c:58(se_map_generic)
se_map_generic(): mapped mask 0x100f000c to 0x000f000c
[2013/01/11 15:57:10.794763, 10] lib/util_seaccess.c:58(se_map_generic)
se_map_generic(): mapped mask 0x100f000c to 0x000f000c
[2013/01/11 15:57:10.794785, 4]
printing/nt_printing.c:5722(print_access_check)
access check was FAILURE
[2013/01/11 15:57:10.794937, 3]
rpc_server/srv_spoolss_nt.c:1772(_spoolss_OpenPrinterEx)
access DENIED for printer open
[2013/01/11 15:57:10.794965, 4]
rpc_server/srv_lsa_hnd.c:219(find_policy_by_hnd_internal)
Found policy hnd[0] [0000] 00 00 00 00 02 00 00 00 00 00 00 00 F0 50 56
36 ........ .....PV6
[0010] 55 7F 00 00 U...
[2013/01/11 15:57:10.795008, 4]
rpc_server/srv_lsa_hnd.c:219(find_policy_by_hnd_internal)
Found policy hnd[0] [0000] 00 00 00 00 02 00 00 00 00 00 00 00 F0 50 56
36 ........ .....PV6
[0010] 55 7F 00 00 U...
[2013/01/11 15:57:10.795049, 3]
rpc_server/srv_lsa_hnd.c:258(close_policy_hnd)
Closed policy
[2013/01/11 15:57:10.795070, 1]
../librpc/ndr/ndr.c:251(ndr_print_function_debug)
spoolss_OpenPrinterEx: struct spoolss_OpenPrinterEx
out: struct spoolss_OpenPrinterEx
handle : *
handle: struct policy_handle
handle_type : 0x00000000 (0)
uuid :
00000000-0000-0000-0000-000000000000
result : WERR_ACCESS_DENIED
Thanks in advance.
-Alex
More information about the samba
mailing list