Re: setdriver failes
Thank you for you answer... But I have checked what it say's in the faq. And I am an printer admin, I'm the owner of the print$ directory. The printer exists in Samba.. Here's the log from samba [2003/03/19 13:01:54, 3] smbd/ipc.c:api_fd_reply(296) Got API command 0x26 on pipe spoolss (pnum 7489)free_pipe_context: destroyin g talloc pool of size 0 [2003/03/19 13:01:54, 3] rpc_server/srv_pipe.c:api_pipe_request(1165) Doing \PIPE\spoolss [2003/03/19 13:01:54, 3] rpc_server/srv_pipe.c:api_rpcTNP(1197) api_rpcTNP: pipe 29833 rpc command: SPOOLSS_SETPRINTER [2003/03/19 13:01:54, 3] rpc_server/srv_spoolss_nt.c:update_printer(5291) update_printer: printer property change denied by handle [2003/03/19 13:01:54, 3] rpc_server/srv_pipe_hnd.c:free_pipe_context(444) free_pipe_context: destroying talloc pool of size 1914 [2003/03/19 13:01:54, 3] smbd/process.c:process_smb(846) Transaction 18 of length 122 And the log from rpcclient rpc_check_hdr: rdata-data_size = 28 00 smb_io_rpc_hdr rpc_hdr major : 05 0001 minor : 00 0002 pkt_type : 02 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 001c 000a auth_len : 000c call_id : 0009 10 smb_io_rpc_hdr_resp rpc_hdr_resp 0010 alloc_hint: 0004 0014 context_id: 0016 cancel_ct : 00 0017 reserved : 00 rpc_api_pipe: len left: 0 smbtrans read: 28 rpc_api_pipe: fragment first and last both set 18 spoolss_io_r_setprinter 0018 status: WERR_ACCESS_DENIED make_spoolss_q_closeprinter 00 spoolss_io_q_closeprinter 00 smb_io_pol_hnd printer handle data1: 0004 data2: 0002 0008 data3: 000a data4: 000c data5: 42 ec 76 3e b4 58 00 00 and som stuff from the smb.conf [global] # workgroup = NT-Domain-Name or Workgroup-Name workgroup = HIG netbios name = PRINTSERVER netbios aliases = PR-SERV hosts allow = 127.0.0.1 130.243.0.0/255.255.240.0 193.11.48.0/255.255.240.0 192.168.13.0/255.255.255.0 load printers = yes printing = cups printcap name = cups use client driver = yes printer admin = pc, @wheel, root security = domain password server = mentos encrypt passwords = yes # Share Definitions == [printers] comment = All Printers path = /var/spool/samba browseable = no public = yes # Set public = yes to allow user 'guest account' to print guest ok = no writable = no printable = yes # printer admin = pc root pradm [print$] comment = Printer Drivers path = /opt/samba/drivers browseable = yes guest ok = no read only = yes write list = pc, @wheel, root If you need more information I will send you the complete logs... Tia Patrik -- Patrik Carlsson Högskolan i Gävle Driftsansvarig, IT-enheten Kungsbäcksvägen 47 026-64 85 00, 070-329 88 25 801 76 Gävle [EMAIL PROTECTED] -- On Wed, 19 Mar 2003, Jelmer Vernooij wrote: On Wed, Mar 19, 2003 at 10:23:21AM +0100, Patrik Carlsson wrote about 'setdriver failes': Hi List.. I have earlier posted my problem to the [EMAIL PROTECTED], but got no answer... So I try this list now... Please forgive me if I'm on the wrong list, but I really need this to work.. So, my problem. I have set up an CUPS-server to handle our printing, on this machine I also set up Samba. The samba (2.2.8) is in a domain witch an samba-pdc (2.2.5) The server is RedHat 8.0 Our users are in NIS+ (YP-compatible) and in an local smbpasswd on the PDC. I managed to install about 50 printers and have the Microsoft clients to download the drivers for the printers. But now I'm not able to set the driver. I can install more printers, and mount them on the clients, but the clients can't download the drivers for the new printers. When I run cupsaddsmb I get the NT_STATUS_UNSUCCESSFUL error-message. It is the rpcclient -U 'user%secret'-c 'setdriver printer printer' who fails. When i debug the rpcclient I get WERR_ACCESS_DENIED. I am printer admin and I'm the owner of the directory of print$. And the files are being copied to the right place, but I can't get the clients to download the files. The client say that there is no driver on the server. So now my question's so I can solve this problem... Where do rpccclient check the printer admin user? On the local machine? or the PDC? In some specific file? Check the documentation(FAQ) in HEAD CVS. Jelmer -- Jelmer Vernooij [EMAIL PROTECTED] Pending (unfinished) patches http://samba.org/~jelmer/diffs.php
setdriver failes
Hi List.. I have earlier posted my problem to the [EMAIL PROTECTED], but got no answer... So I try this list now... Please forgive me if I'm on the wrong list, but I really need this to work.. So, my problem. I have set up an CUPS-server to handle our printing, on this machine I also set up Samba. The samba (2.2.8) is in a domain witch an samba-pdc (2.2.5) The server is RedHat 8.0 Our users are in NIS+ (YP-compatible) and in an local smbpasswd on the PDC. I managed to install about 50 printers and have the Microsoft clients to download the drivers for the printers. But now I'm not able to set the driver. I can install more printers, and mount them on the clients, but the clients can't download the drivers for the new printers. When I run cupsaddsmb I get the NT_STATUS_UNSUCCESSFUL error-message. It is the rpcclient -U 'user%secret'-c 'setdriver printer printer' who fails. When i debug the rpcclient I get WERR_ACCESS_DENIED. I am printer admin and I'm the owner of the directory of print$. And the files are being copied to the right place, but I can't get the clients to download the files. The client say that there is no driver on the server. So now my question's so I can solve this problem... Where do rpccclient check the printer admin user? On the local machine? or the PDC? In some specific file? And where do the clients find the right driver? I can send smb.conf, log-files and the debug-output if requested... Thanks in advance Patrik Carlsson -- Patrik Carlsson Högskolan i Gävle Driftsansvarig, IT-enheten Kungsbäcksvägen 47 026-64 85 00, 070-329 88 25 801 76 Gävle [EMAIL PROTECTED] --
[Samba] rpcclient setprinter failes
Since I haven't got any answers on this I try again... We have an Redhat 8.0 machine who acts as an printserver. I'm sharing printers via Samba and using CUPS. Samba is 2.2.7a and CUPS 1.1.8. The Microsoft clients (Win9x, Win NT, Win 2k) is downloading the driver from the server. I had no problem to install and upload up to 55 printers but now I am not able to set the driver. I can install more printers, but when cupsaddsmb is running rpcclient -N -U 'user%secret' -c 'setdriver pr51433 pr51433' I get the result was NT_STATUS_UNSUCCESSFUL messages. This is cut out of the debug-log of rcpclient. 10 smb_io_rpc_hdr_resp rpc_hdr_resp 0010 alloc_hint: 0004 0014 context_id: 0016 cancel_ct : 00 0017 reserved : 00 rpc_api_pipe: len left: 0 smbtrans read: 28 18 spoolss_io_r_setprinter 0018 status: WERR_ACCESS_DENIED SetPrinter call failed! Before this I get a message about rpc_api_pipe: len left: 0 smbtrans read: 36 rpc_api_pipe: fragment first and last both set 18 spoolss_io_r_getprinter 18 spoolss_io_buffer 0018 ptr: 001c needed: 0198 0020 status: WERR_INSUFFICIENT_BUFFER 00 spoolss_io_q_getprinter Could there be a problem that this machine is not an PDC? And what is the difference between the following command? rpcclient -U pc%secret localhost -c enumdrivers rpcclient -U pc%secret localhost -c enumprinters Where getting the enumdrivers work, but not the enumprinters... I would really appreciate some help with this.. /Tia Patrik -- Patrik Carlsson Högskolan i Gävle Driftsansvarig, IT-enheten Kungsbäcksvägen 47 026-64 85 00, 070-329 88 25 801 76 Gävle [EMAIL PROTECTED] -- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] rpcclient setprinter failes
Hi List. We have an Redhat 8.0 machine who acts as an printserver. I'm sharing printers via Samba and using CUPS. Samba is 2.2.7a and CUPS 1.1.8. The Microsoft clients (Win9x, Win NT, Win 2k) is downloading the driver from the server. I had no problem to install and upload up to 55 printers but now I am not able to set the driver. I can install more printers, but when cupsaddsmb is running rpcclient -N -U 'user%secret' -c 'setdriver pr51433 pr51433' I get the result was NT_STATUS_UNSUCCESSFUL messages. This is cut out of the debug-log of rcpclient. 10 smb_io_rpc_hdr_resp rpc_hdr_resp 0010 alloc_hint: 0004 0014 context_id: 0016 cancel_ct : 00 0017 reserved : 00 rpc_api_pipe: len left: 0 smbtrans read: 28 18 spoolss_io_r_setprinter 0018 status: WERR_ACCESS_DENIED SetPrinter call failed! Before this I get a message about rpc_api_pipe: len left: 0 smbtrans read: 36 rpc_api_pipe: fragment first and last both set 18 spoolss_io_r_getprinter 18 spoolss_io_buffer 0018 ptr: 001c needed: 0198 0020 status: WERR_INSUFFICIENT_BUFFER 00 spoolss_io_q_getprinter I am an printer admin This is my share definitions. The server is only sharing printers... [printers] comment = All Printers path = /var/spool/samba browseable = no public = yes # Set public = yes to allow user 'guest account' to print guest ok = no writable = no printable = yes printer admin = pc root [print$] comment = Printer Drivers path = /opt/samba/drivers browseable = yes guest ok = no read only = yes write list = root pc I am not on this list, so please reply to my adress, [EMAIL PROTECTED] -- Patrik Carlsson Högskolan i Gävle Driftsansvarig, IT-enheten Kungsbäcksvägen 47 026-64 85 00, 070-329 88 25 801 76 Gävle [EMAIL PROTECTED] -- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] rpcclient
Hi there! My name is Patrik Carlsson and I'm trying to set up a linux-box to be a printserver. We are using Redhat 8.0 and Samba 2.2.7a. For printing we are using LPRng. I wan't to upload drivers so that the users doesn't have to bother. I have read the Samba-HOWTO to set up Samba. Since we have some printers (around 100) who should be served by the server it would be nice to use rpcclient to set the driver. And now to my 2 problems. 1: I was able to upload the driver for Win2k/NT via the NT APW, but when I try load the Win9x-drivers from my Win2k-client I'm getting the following message: Unable to install the Intel Windows 95 or 98 driver. Operation could not be completed. 2: When I try to use rpcclient I get the following messages: # rpcclient -U root -c enumdrivers localhost Password: failed session setup Cannot connect to server. Error was NT_STATUS_LOGON_FAILURE I get the same message if I try to use smbclient. This is my smb.conf [global] workgroup = DDD server string = Samba Server netbios name = printcap name = /etc/printcap load printers = yes print command = /usr/bin/lpr -P%p -r %s ; rm %s printing = lprng printer admin = pc log file = /var/log/samba/%m.log max log size = 50 security = user encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd unix password sync = Yes passwd program = /usr/bin/passwd %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* pam password change = yes include = /etc/samba/conf.%a obey pam restrictions = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 [printers] comment = All Printers path = /var/spool/samba browseable = yes print ok = yes public = yes # Set public = yes to allow user 'guest account' to print guest ok = no writable = no printable = yes # use client driver = yes [print$] path = /opt/samba/printers guest ok = no browseable = yes read only = yes write list = pc,root Thanks In Advance Patrik Carlsson [EMAIL PROTECTED] System Manager University of Gävle Sweden -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba