[Samba] get quota command bugs?
First of all: Thanks Samba-Team for a job well-done on Samba-3.0.0 (nice new features) Now some problems: 1. We're use Veritas filesystem on our RedHat AS 2.1 server and quota don't seem to work at this moment (/usr/include/sys/fs/vx_quota.h is missing). So I thought that using get quota command would do the trick (just call vxquota and parse output). But nothing happend!!! Script was OK. After poking around in lib/sysquotas.c I found that get quota command was only called if HAVE_SYS_QUOTA is defined. I thought that get quota commandshould always be called upon when it is defined in smb.conf. 2. The man page of smb.conf seems to imply that the output of the get quota command should be returned as one result per line. This is wrongf: all results must be returned on one line comma seperated. Also the set quota command has some docu bug (some nroff tags are shown). 3. In the Samba-HOWTO-Docu... it says on page 141 that mapping domadm group to the Domain Admins group is done with a net groupmap add command. I think this should be net groupmap modify command. I ended up with a new Domain Admins-group having another RID which lead to some confusion (I am a domain admin but not). Keep up the good work, René Nieuwenhuizen Afdeling Informatietechnologie Centraal Planbureau Bezoekadres: Van Stolkweg 14, 2585 JR Den Haag Postadres: Postbus 80510, 2508 GM Den Haag T (070) 3383 342 F (070) 3383 350 I http://www.cpb.nl/nl/general/org/afdelingen/it/ -- Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van het bericht te vernietigen. This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us immediately and delete its contents. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba-2.2.7a on HPUX 11.00 trying to compile LDAP support
Damian Hickey wrote: Dear all, I am trying to use Samba with LDAP support so I can't use the CIFS binaries. I are having an issue with compiling samba-2.27.a (patched) on our HPUX server. I am configuring it with these Samba option flags: --prefix=/opt/samba --libdir=/etc/opt/samba --localstatedir=/var/opt/samba --with-privatedir=/var/opt/samba/private --with-lockdir=/var/opt/samba/locks --with-swatdir=/opt/samba/swat --with-acl-support --with-msdfs --with-ldapsam --with-profile -disable-static I have gcc-3.2 installed. I run configure OK, but get an error when running gmake: Compiling lib/snprintf.c lib/snprintf.c790: conflicting types for `snprintf' /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:493:previous declaration of `snprintf' ***Error exit code 1 Just comment line 493 from the above file using /* */ will do the trick I think the lines in conflict are: gcc-3.2 stdio.h extern int snprintf(char *, _hpux_size_t, char *,...); samba-2.2.7a/source/lib/snprintf.c int snprintf(char *str,size_t count,const char *fmt,...) but I do not know how to resolve the issue. I'd love to know if you have had any success with this or have any ideas. With thanks, Damian Hickey Unix Administrator Workcover Queensland 15th Floor, 280 Adelaide St. Brisbane ph 07 30066422 fax 07 30066424 mob 0421 093582 *** Messages included in this e-mail and any of its attachments are those of the author unless specifically stated to represent WorkCover Queensland. The contents of this message are to be used for the intended purpose only and are to be kept confidential at all times. This message may contain privileged information directed only to the intended addressee/s. Accidental receipt of this information should be deleted promptly and the sender notified. This e-mail has been scanned by Sophos for known viruses. However, no warranty nor liability is implied in this respect. ** -- René Nieuwenhuizen Afdeling Informatietechnologie Centraal Planbureau Bezoekadres: Van Stolkweg 14, 2585 JR Den Haag Postadres: Postbus 80510, 2508 GM Den Haag T (070) 3383 342 F (070) 3383 350 I http://www.cpb.nl/nl/general/org/afdelingen/it/ -- Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van het bericht te vernietigen. This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us immediately and delete its contents. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] OT? PDF printer driver for automatic deployment
We use QMS Colorscript 1000 level 2 which result in perfect prepress (CYMK) ready pdf's. Henning Holtschneider wrote: Hi, I've got a printing server running Samba 3.0alpha21 (on Linux). The client machines running Windows 2000 are producing PDF files by printing to a virtual printer on the Samba machine. The printer driver shall be installed from the Samba server on demand. I need color output, b/w is not sufficient. Everything works fine, i.e. the PDF conversion process and the automatic driver installation on the client machine, BUT: Which Windows 2000 printer driver should I use? I've tried several HP models which let me control all sorts of printer (hardware) parameters but very little Postscript parameters. I've tried an Apple Color Laserwriter driver but the output doesn't look as good as it should. I tried a Minolta driver but it fails to install on the server. Then, I came across Adobe's Universal Postscript driver but it lacks an .inf file I could use to upload the driver to the server. Apart from that, the Adobe Universal driver will always result in b/w output. Thanks for your help, -gninneH- -- __ _ ____ Henning Holtschneider / / ___ ___ _/ |/ /__ / /_ [EMAIL PROTECTED] / /__/ _ \/ __/ _ `// -_) __/ //\___/\__/\_,_/_/|_/\__/\__/ ...net happens! -- René Nieuwenhuizen Afdeling Informatietechnologie Centraal Planbureau Bezoekadres: Van Stolkweg 14, 2585 JR Den Haag Postadres: Postbus 80510, 2508 GM Den Haag T (070) 3383 342 F (070) 3383 350 I http://www.cpb.nl/nl/general/org/afdelingen/it/ -- Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van het bericht te vernietigen. This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us immediately and delete its contents. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[SAMBA] how to define share for sharing lmhosts?
Hi All, Probably simple question: I want to make a share for sharing an lmhosts file which gets included by the clients. This share has to be very public and accept nullsessions (whatever that me be (no username and password?)). I want this because I need to generate aliases on the fly for for our fileserver for some clients (terminalservers specifically). So I thought that having an server side maintained lmhosts file that is included by the terminalserver clients would do the trick. The lmhosts file on the clients contains: === 172.16.16.9fileserver#PRE #DOM:network #BEGIN_INCLUDE #INCLUDE \\fileserver\public\lmhosts #END_INCLUDE === The share on the fileserver (which is running in userlevel security) has been defined as: === [public] path = /usr/local/samba/public guest ok = yes guest only = yes map to guest = Bad Password read only = yes === Although I suspected this would do the trick the logfile shows the following messages: === asisis (172.16.64.3) connect to service public as user smbguest (uid=97, gid=9 7) (pid 14578) [2003/02/16 20:11:21, 1] smbd/reply.c:reply_sesssetup_and_X(1001) Rejecting user 'root': authentication failed [2003/02/16 20:12:04, 1] smbd/reply.c:reply_sesssetup_and_X(1001) Rejecting user 'root': authentication failed [2003/02/16 20:12:42, 1] smbd/service.c:close_cnum(677) asisis (172.16.64.3) closed connection to service public === Why is user root rejected? This share is totally public isn't it? TIA -- René Nieuwenhuizen Afdeling Informatietechnologie Centraal Planbureau Bezoekadres: Van Stolkweg 14, 2585 JR Den Haag Postadres: Postbus 80510, 2508 GM Den Haag T (070) 3383 342 F (070) 3383 350 I http://www.cpb.nl/nl/general/org/afdelingen/it/ -- Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van het bericht te vernietigen. This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us immediately and delete its contents. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] How to define share for sharing lmhosts?
Hi All, Probably simple question: I want to make a share for sharing an lmhosts file which gets included by the clients. This share has to be very public and accept nullsessions (whatever that me be (no username and password?)). I want this because I need to generate aliases on the fly for for our fileserver for some clients (terminalservers specifically). So I thought that having an server side maintained lmhosts file that is included by the terminalserver clients would do the trick. The lmhosts file on the clients contains: === 172.16.16.9fileserver#PRE #DOM:network #BEGIN_INCLUDE #INCLUDE \\fileserver\public\lmhosts #END_INCLUDE === The share on the fileserver (which is running in userlevel security) has been defined as: === [public] path = /usr/local/samba/public guest ok = yes guest only = yes map to guest = Bad Password read only = yes === Although I suspected this would do the trick the logfile shows the following messages: === asisis (172.16.64.3) connect to service public as user smbguest (uid=97, gid=9 7) (pid 14578) [2003/02/16 20:11:21, 1] smbd/reply.c:reply_sesssetup_and_X(1001) Rejecting user 'root': authentication failed [2003/02/16 20:12:04, 1] smbd/reply.c:reply_sesssetup_and_X(1001) Rejecting user 'root': authentication failed [2003/02/16 20:12:42, 1] smbd/service.c:close_cnum(677) asisis (172.16.64.3) closed connection to service public === Why is user root rejected? This share is totally public isn't it? TIA -- René Nieuwenhuizen Afdeling Informatietechnologie Centraal Planbureau Bezoekadres: Van Stolkweg 14, 2585 JR Den Haag Postadres: Postbus 80510, 2508 GM Den Haag T (070) 3383 342 F (070) 3383 350 I http://www.cpb.nl/nl/general/org/afdelingen/it/ -- Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van het bericht te vernietigen. This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us immediately and delete its contents. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] How to define share for sharing lmhosts?
Hi All, Probably simple question: I want to make a share for sharing an lmhosts file which gets included by the clients. This share has to be very public and accept nullsessions (whatever that me be (no username and password?)). I want this because I need to generate aliases on the fly for for our fileserver for some clients (terminalservers specifically). So I thought that having an server side maintained lmhosts file that is included by the terminalserver clients would do the trick. The lmhosts file on the clients contains: -- 172.16.16.9fileserver#PRE #DOM:network #BEGIN_INCLUDE #INCLUDE \\fileserver\public\lmhosts #END_INCLUDE -- The share on the fileserver (which is running in userlevel security) has been defined as: -- [public] path = /usr/local/samba/public guest ok = yes guest only = yes map to guest = Bad Password read only = yes -- Although I suspected this would do the trick the logfile shows the following messages: -- asisis (172.16.64.3) connect to service public as user smbguest (uid=97, gid=9 7) (pid 14578) [2003/02/16 20:11:21, 1] smbd/reply.c:reply_sesssetup_and_X(1001) Rejecting user 'root': authentication failed [2003/02/16 20:12:04, 1] smbd/reply.c:reply_sesssetup_and_X(1001) Rejecting user 'root': authentication failed [2003/02/16 20:12:42, 1] smbd/service.c:close_cnum(677) asisis (172.16.64.3) closed connection to service public -- Why is user root rejected? This share is totally public isn't it? TIA -- Rene Nieuwenhuizen Afdeling Informatietechnologie Centraal Planbureau Bezoekadres: Van Stolkweg 14, 2585 JR Den Haag Postadres: Postbus 80510, 2508 GM Den Haag T (070) 3383 342 F (070) 3383 350 I http://www.cpb.nl/nl/general/org/afdelingen/it/ -- Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van het bericht te vernietigen. This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us immediately and delete its contents. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba with HP 110x Machines.
Gagneet Singh heeft geschreven: Hi! We have a HP b2600 Workstation, with HP 110x UNIX system, at our work place. Currently it is lying idle and we would like to utilize it. Is it possible to put Samba on this machine and use it as a PDC using the samba suite? Thank you for your help Gagneet We are currently running samba-2.2.7 on a hp9000 k-class server running HP/UX-11.00. I've used the gcc-3.1 compiler to compile the source but any later will do just fine. I've also tried with the HP Ansi-C compiler but this resulted into a binaries with some instability (don't know why). One problem I encountered was that _LARGEFILE64_SOURCE was defined. This causes al file operations to be 64bit but locking structures will still only support 32bits causing some problems at runtime. I redefined this to just _LARGEFILE_SOURCE in the Makefile and include/config.h and this went ok. Good luck -- René Nieuwenhuizen Afdeling Informatietechnologie Centraal Planbureau Bezoekadres: Van Stolkweg 14, 2585 JR Den Haag Postadres: Postbus 80510, 2508 GM Den Haag T (070) 3383 342 F (070) 3383 350 I http://www.cpb.nl/nl/general/org/afdelingen/it/ -- Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van het bericht te vernietigen. This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us immediately and delete its contents. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] naming the pdf output file
Christopher Odenbach heeft geschreven: Hi, when creating a pdf file with samba i use /usr/bin/printpdf %s %U as the print command. So far everything works fine and the pdf has the same name as the user. But is there any way to use the name of the print job as shown in the print manager of windows ? This would mean that when the user prints a file called A0029.xls the output would be called A0029.pdf Assuming the printerdriver produces postscript you could actually extract the title (%%Title: . ) using grep from the spoolfile (%s) and use that as a basis for the pdfname. Better: Use the %J parameter - you can find the jobname there. Then write a small script that calls printpdf and renames the output file. Remember quotes! Great! If been running my own postscript analysis scripts for years now but this makes life a lot easier... Thanks for redirecting me at the documents again -- René Nieuwenhuizen Afdeling Informatietechnologie Centraal Planbureau Bezoekadres: Van Stolkweg 14, 2585 JR Den Haag Postadres: Postbus 80510, 2508 GM Den Haag T (070) 3383 342 F (070) 3383 350 I http://www.cpb.nl/nl/general/org/afdelingen/it/ -- Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van het bericht te vernietigen. This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us immediately and delete its contents. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Print limiting
Vasco Macaringue heeft geschreven: Hi all This is my first time writting to samba I'd like to get a quickly help in this: Where can I find a program or how can I configure my samba server in order to limit the number of pages to be printed by users. Best regards If you are using postscript printerdrivers you could write your own 'print command'script which finds out the amount of pages to be printed and select the action to be taken next (spool it directly or make it a nightly printerjob). In postscript jobs the amount of pages to be printed is mostly at the end of the postscriptjob as '%%Pages: '. -- René Nieuwenhuizen Afdeling Informatietechnologie Centraal Planbureau Bezoekadres: Van Stolkweg 14, 2585 JR Den Haag Postadres: Postbus 80510, 2508 GM Den Haag T (070) 3383 342 F (070) 3383 350 I http://www.cpb.nl/nl/general/org/afdelingen/it/ -- Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van het bericht te vernietigen. This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us immediately and delete its contents. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] internal error: signal 11
Hi, I can reproduce this internal error. When I use rpcclient to do 'deldriver' this panic is generated and the driver is not removed! Is this of any help? Frank Matthieß heeft geschreven: On Wed, Oct 30, 2002 at 11:35:42AM +, Gerhard Vögel wrote: Hello, we got the following error in the samba logs: Oct 30 06:29:01 hornbill smbd[12783]: [2002/10/30 06:29:01, 0] lib/fault.c:fault_report(38) Oct 30 06:29:01 hornbill smbd[12783]: === Oct 30 06:29:01 hornbill smbd[12783]: [2002/10/30 06:29:01, 0] lib/fault.c:fault_report(39) Oct 30 06:29:01 hornbill smbd[12783]: INTERNAL ERROR: Signal 11 in pid 12783 (2.2.6-SuSE) Oct 30 06:29:01 hornbill smbd[12783]: Please read the file BUGS.txt in the distribution Oct 30 06:29:01 hornbill smbd[12783]: [2002/10/30 06:29:01, 0] lib/fault.c:fault_report(41) Oct 30 06:29:01 hornbill smbd[12783]: === Oct 30 06:29:01 hornbill smbd[12783]: [2002/10/30 06:29:01, 0] lib/util.c:smb_panic(1094) Oct 30 06:29:01 hornbill smbd[12783]: PANIC: internal error Oct 30 06:29:01 hornbill smbd[12783]: The error is continuously repeated with increased pids until the machine will be rebooted. Restart of smbd, nmbd and winbind has no effect. Clients can connect to samba but they cannot access files. File access on NT clients is aborted with different messages. Samba version is 2.2.6 (Suse RPM) and linux kernel is 2.4.19, but it already happened with 2.2.4 and kernel 2.4.16. I cannot reproduce the error, but it happens once in a week. I found similar errors discussed in the list archives but no explanation or solution. Can anybody help. The last timer i got this type of error, it was an hardware problem. Some years ago i compiled e kernel on an 'stable' System, which runs novell netware 3.1 for years. The gcc failes with internal error: signal 11. This was an hardware with PS/2 RAM. One module has another speed (70ns) than the other (60ns), so this was an timing issue of the hardware and not the os or software. Take a look to the memory sub system. More than one module? Same Timing? René Nieuwenhuizen Sysadmin CPB Netherlands Bureau for Economic Policy Analysis -- Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van het bericht te vernietigen. This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us immediately and delete its contents. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] internal error: signal 11
At your service (as they used to say in the netherlands) Andrew Bartlett heeft geschreven: On Thu, Oct 31, 2002 at 10:52:25AM +0100, René Nieuwenhuizen wrote: Hi, I can reproduce this internal error. When I use rpcclient to do 'deldriver' this panic is generated and the driver is not removed! Is this of any help? Can you setup a 'panic action' in your smb.conf? Set it to '/bin/sleep 9000' and attach to the process with gdb. The grab a 'bt full' from gdb - this will help at lot in chasing it down. Andrew Bartlett Thanks Andrew for looking into it... René Nieuwenhuizen Sysadmin CPB Netherlands Bureau for Economic Policy Analysis -- Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van het bericht te vernietigen. This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us immediately and delete its contents. Script started on Thu Oct 31 10:19:13 2002 ]0;rootproliant3:/var/cache/samba[rootproliant3 samba]# gdb /usr/sbin/smbd 21547 GNU gdb Red Hat Linux (5.1.90CVS-5) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i386-redhat-linux... (no debugging symbols found)... Attaching to program: /usr/sbin/smbd, process 21547 Reading symbols from /usr/lib/libcups.so.2...(no debugging symbols found)... done. Loaded symbols for /usr/lib/libcups.so.2 Reading symbols from /lib/libssl.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libssl.so.2 Reading symbols from /lib/libcrypto.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libcrypto.so.2 Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /lib/libpam.so.0...(no debugging symbols found)...done. Loaded symbols for /lib/libpam.so.0 Reading symbols from /usr/lib/libpopt.so.0...(no debugging symbols found)... done. Loaded symbols for /usr/lib/libpopt.so.0 Reading symbols from /lib/i686/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/i686/libc.so.6 Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)... done. Loaded symbols for /lib/libnss_files.so.2 Reading symbols from /lib/libnss_nis.so.2...(no debugging symbols found)... done. Loaded symbols for /lib/libnss_nis.so.2 0x420b48a9 in wait4 () from /lib/i686/libc.so.6 (gdb) bt #0 0x420b48a9 in wait4 () from /lib/i686/libc.so.6 #1 0x4213030c in __DTOR_END__ () from /lib/i686/libc.so.6 #2 0x4204a062 in system () from /lib/i686/libc.so.6 #3 0x081497e1 in smb_panic () #4 0x08137af0 in fault_report () #5 signal handler called #6 0x08141ed0 in StrCaseCmp () #7 0x08158dac in get_short_archi () #8 0x0815f185 in delete_printer_driver () #9 0x080e5cc0 in _spoolss_deleteprinterdriver () #10 0x080e0f5c in api_spoolss_deleteprinterdriver () #11 0x080df224 in api_rpcTNP () #12 0x080e38e9 in api_spoolss_rpc () #13 0x080df038 in api_pipe_request () #14 0x080cea7c in process_request_pdu () #15 0x080cec45 in process_complete_pdu () #16 0x080cf005 in write_to_pipe () #17 0x08075b98 in api_fd_reply () #18 0x080765bc in reply_trans () #19 0x080a6279 in switch_message () #20 0x080a631e in construct_reply () #21 0x080a659e in process_smb () #22 0x080a6faa in smbd_process () #23 0x0806a948 in main () #24 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6 (gdb) quit The program is running. Quit anyway (and detach it)? (y or n) n y Detaching from program: /usr/sbin/smbd, process 21547
Re: [Samba] PDF printer using ps2pdf ?
Hi, This is the perlscript we use to print/mail PDF's. It uses ghostscript and perl MIME-tools to create and mail the PDF back to the user who printed the document. The printerdriver used is QMS ColorScript 1000 Level 2. The config looks like this: [prtpdf] comment = PDF mailer path = /var/spool/samba print command = /usr/local/bin/prtpdf.pl %u %s browseable = yes writeable = no printable = yes CU René Nieuwenhuizen Sysadmin CPB Netherlands Bureau for Economic Policy Analysis PS. I've also attached a script to create and mail clipped EPS-files with preview. It must be used with nearly the same driver accept it must be Level 1 and the driver should output Encapsulated Postscript (Advanced Box somewhere...) S. Ancelot heeft geschreven: Hi, Is it possible to set up a printer in samba that will use ps2pdf converter to create pdf documents when printing on it ? Best Regards Steph -- Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van het bericht te vernietigen. This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us immediately and delete its contents. #!/usr/bin/perl use MIME::Entity; my $username = shift() . '@cpb.nl'; my $psfile = shift; my $GS = '/usr/local/bin/gs'; my $title = ''; open(PSFILE,$psfile); while(PSFILE) { s/\s+$//; if (s/^%%Title:\s+//) { $title = $_; last; } } close(PSFILE); my $pdffile = doc$$.pdf; my $ps2pdfcmd = $GS -dSAFER -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$pdffile -c .setpdfwrite -f $psfile; system($ps2pdfcmd); my $top = MIME::Entity-build( From= Samba Server trash\@cpb.nl, To = $username, Subject = Uw document als PDF-bestand., Data = [Uw document ($title) als PDF-bestand (zie attachment).\n\n, Your document ($title) as PDF-file (see attachment).] ); $top-attach( Path= $pdffile, Type= application/pdf, Encoding= base64); my $SENDMAIL = /usr/lib/sendmail; my $pid = open(SENDMAIL,|-); die Can't fork: $!\n unless defined $pid; if ($pid) { $top-print(\*SENDMAIL); close SENDMAIL; } else { exec $SENDMAIL,'-f','[EMAIL PROTECTED]',$username; die Can't exec $SENDMAIL: $!\n; } unlink $pdffile; unlink $psfile; #!/usr/bin/perl use MIME::Entity; my $username = shift() . '@cpb.nl'; my $eps_filename = shift; my $bbox_filename = $eps_filename.$$.bbox; my $tiff_filename = $eps_filename.$$.tiff; # DOS EPS Binary File Header # Bytes Description # 0-3 Must be hex C5D0D3C6 (byte 0=C5). (big-endian) # 4-7 Byte position in file for start of PostScript language code section. # 8-11 Byte length of PostScript language section. # 12-15 Byte position in file for start of Metafile screen representation. # 16-19 Byte length of Metafile section (PSize). # 20-23 Byte position of TIFF representation. # 24-27 Byte length of TIFF section. # 28-29 Checksum of header (XOR of bytes 0-27). If Checksum is # then ignore it. # # Since this is a DOS format all values should be little endian. # # It is assumed that either the Metafile or the TIFF position and length fields # are zero. That is, only one or the other of these two formats is included in # the EPS file. my $DOS_EPS_BF_HEADER_FORMAT = 'NVVv'; my $DOS_EPS_BF_MAGIC = 0xc5d0d3c6; my $GS = '/usr/local/bin/gs'; my($lower,$left,$upper,$right); purifyFile; adjustBoundingBox; addTiffPreview; my $title = ''; open(BBOXFILE,$bbox_filename); while(BBOXFILE) { s/\s+$//; if (s/^%%Title:\s+//) { $title = $_; last; } } close(BBOXFILE); my $top = MIME::Entity-build( From= Samba Server trash\@cpb.nl, To = $username, Subject = Uw plaatje als EPS-bestand., Data = [Uw plaatjes ($title) als EPS-bestand (zie attachment).\n\n, Your picture ($title) as EPS-file (see attachment).] ); $top-attach( Path= $eps_filename, Type= application/ps, Encoding= base64); my $SENDMAIL = /usr/lib/sendmail; my $pid = open(SENDMAIL,|-); die Can't fork: $!\n unless defined $pid; if ($pid) { $top-print(\*SENDMAIL); close SENDMAIL; } else { exec $SENDMAIL,'-f','[EMAIL PROTECTED]',$username; die Can't exec $SENDMAIL: $!\n; } unlink $tiff_filename; unlink $bbox_filename; unlink $eps_filename; exit 0; # purifyFile extracts the pure PostScript code from an EPS-file if # a preview has been added. sub purifyFile { my $header; open(EPSFILE,$eps_filename); read(EPSFILE,$header,30) or die Can't read header: $!\n
[Samba] Netlogon no longer works in 2.2.6 with W2k client
Hi, We've got a fairly simple samba setup (no ldap/winbind etc) and until recently everything worked fine (using samba-2.2.5). But after switching to samba-2.2.6 w2k-clients fail to run the netlogon-scripts. When i look at the client it says: logonserver=\\workstationname BTW. I've attached the output of nmblookup -S CPB and it seems like saying that CPB is the logonserver. Any hints??? René Nieuwenhuizen CPB Netherlands Bureau for Economic Policy Analysis -- Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van het bericht te vernietigen. This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us immediately and delete its contents. [global] coding system = client code page = 850 code page directory = /usr/local/samba-2.2.6/lib/codepages workgroup = CPB netbios name = FILESERVER netbios aliases = AGENDASERVER CDROMSERVER DATASERVER PRINTERSERVER WEBSERVER netbios scope = server string = CPB Server (Samba %v) interfaces = 172.16.16.9/255.255.0.0 bind interfaces only = No security = USER encrypt passwords = Yes update encrypted = No allow trusted domains = Yes hosts equiv = min passwd length = 5 map to guest = Never null passwords = No obey pam restrictions = No password server = smb passwd file = /usr/local/samba-2.2.6/private/smbpasswd root directory = pam password change = No passwd program = /root/bin/passwd %u passwd chat = *new*password* %n\n *new*password* %n\n *changed* passwd chat debug = No username map = /usr/local/samba/lib/users.map password level = 0 username level = 0 unix password sync = Yes restrict anonymous = No lanman auth = Yes use rhosts = No admin log = No log level = 0 syslog = 1 syslog only = No log file = /usr/local/samba/var/log/%I.log max log size = 5000 timestamp logs = Yes debug hires timestamp = No debug pid = No debug uid = No protocol = NT1 large readwrite = Yes max protocol = NT1 min protocol = CORE read bmpx = No read raw = Yes write raw = Yes nt smb support = Yes nt pipe support = Yes nt status support = Yes announce version = 4.9 announce as = NT max mux = 50 max xmit = 16644 name resolve order = lmhosts host wins bcast max ttl = 259200 max wins ttl = 518400 min wins ttl = 21600 time server = Yes unix extensions = No change notify timeout = 60 deadtime = 15 getwd cache = Yes keepalive = 300 lpq cache time = 10 max smbd processes = 0 max disk size = 0 max open files = 1 name cache timeout = 660 read size = 16384 socket options = IPTOS_LOWDELAY TCP_NODELAY stat cache size = 50 use mmap = No total print jobs = 0 load printers = No printcap name = /etc/printcap disable spoolss = No enumports command = addprinter command = /usr/local/samba/lbin/add_printer deleteprinter command = /usr/local/samba/lbin/delete_printer show add printer wizard = Yes os2 driver map = strip dot = No mangling method = hash character set = ISO8859-1 mangled stack = 50 stat cache = Yes domain admin group = ntadmins domain guest group = gasten machine password timeout = 604800 add user script = /usr/local/samba/lbin/add_user_script %u delete user script = /usr/local/samba/lbin/delete_user_script %u logon script = scripts\%I\logon.bat logon path = \\%L\profiles\%U\%I\%a logon drive = g: logon home = \\%L\%U\private\.profile\%a domain logons = Yes os level = 255 lm announce = Auto lm interval = 60 preferred master = Yes local master = Yes domain master = Yes browse list = Yes enhanced browsing = Yes dns proxy = Yes wins proxy = No wins server = wins support = Yes wins hook = /usr/local/samba/lbin/winshook kernel oplocks = Yes lock spin count = 3 lock spin time = 10 oplock break wait time = 0 add share command = change share
[Samba] Re: Netlogon no longer works in 2.2.6 with W2k client
René Nieuwenhuizen heeft geschreven: BTW. I've attached the output of nmblookup -S CPB and it seems like saying that CPB is the logonserver. I screwed the nmblookup up...again René Nieuwenhuizen CPB Netherlands Bureau for Economic Policy Analysis -- Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van het bericht te vernietigen. This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us immediately and delete its contents. querying CPB on 172.16.255.255 172.16.16.9 CPB00 172.16.51.99 CPB00 172.16.16.50 CPB00 172.16.17.16 CPB00 172.16.17.16 CPB00 172.16.17.16 CPB00 Looking up status of 172.16.16.9 FILESERVER 00 - M ACTIVE FILESERVER 03 - M ACTIVE FILESERVER 20 - M ACTIVE ..__MSBROWSE__. 01 - GROUP M ACTIVE AGENDASERVER00 - M ACTIVE AGENDASERVER03 - M ACTIVE AGENDASERVER20 - M ACTIVE CDROMSERVER 00 - M ACTIVE CDROMSERVER 03 - M ACTIVE CDROMSERVER 20 - M ACTIVE CPB 00 - GROUP M ACTIVE CPB 1b - M ACTIVE CPB 1c - GROUP M ACTIVE CPB 1d - M ACTIVE CPB 1e - GROUP M ACTIVE DATASERVER 00 - M ACTIVE DATASERVER 03 - M ACTIVE DATASERVER 20 - M ACTIVE PRINTERSERVER 00 - M ACTIVE PRINTERSERVER 03 - M ACTIVE PRINTERSERVER 20 - M ACTIVE WEBSERVER 00 - M ACTIVE WEBSERVER 03 - M ACTIVE WEBSERVER 20 - M ACTIVE
[Samba] Netlogon no longer works in 2.2.6 with W2k client
Hi, We've got a fairly simple samba setup (no ldap/winbind etc) and until recently everything worked fine (using samba-2.2.5). But after switching to samba-2.2.6 w2k-clients fail to run the netlogon-scripts. When i look at the client it says: logonserver=\\workstationname BTW. The output of nmblookup -S CPB (to me) seems to say that CPB is the logonserver. querying CPB on 172.16.255.255 172.16.16.9 CPB00 Looking up status of 172.16.16.9 FILESERVER 00 - M ACTIVE FILESERVER 03 - M ACTIVE FILESERVER 20 - M ACTIVE ..__MSBROWSE__. 01 - GROUP M ACTIVE AGENDASERVER00 - M ACTIVE AGENDASERVER03 - M ACTIVE AGENDASERVER20 - M ACTIVE CDROMSERVER 00 - M ACTIVE CDROMSERVER 03 - M ACTIVE CDROMSERVER 20 - M ACTIVE CPB 00 - GROUP M ACTIVE CPB 1b - M ACTIVE CPB 1c - GROUP M ACTIVE CPB 1d - M ACTIVE CPB 1e - GROUP M ACTIVE DATASERVER 00 - M ACTIVE DATASERVER 03 - M ACTIVE DATASERVER 20 - M ACTIVE PRINTERSERVER 00 - M ACTIVE PRINTERSERVER 03 - M ACTIVE PRINTERSERVER 20 - M ACTIVE WEBSERVER 00 - M ACTIVE WEBSERVER 03 - M ACTIVE WEBSERVER 20 - M ACTIVE Any hints??? René Nieuwenhuizen CPB Netherlands Bureau for Economic Policy Analysis smb.conf [global] coding system = client code page = 850 code page directory = /usr/local/samba-2.2.6/lib/codepages workgroup = CPB netbios name = FILESERVER netbios aliases = AGENDASERVER CDROMSERVER DATASERVER PRINTERSERVER WEBSERVER netbios scope = server string = CPB Server (Samba %v) interfaces = 172.16.16.9/255.255.0.0 bind interfaces only = No security = USER encrypt passwords = Yes update encrypted = No allow trusted domains = Yes hosts equiv = min passwd length = 5 map to guest = Never null passwords = No obey pam restrictions = No password server = smb passwd file = /usr/local/samba-2.2.6/private/smbpasswd root directory = pam password change = No passwd program = /root/bin/passwd %u passwd chat = *new*password* %n\n *new*password* %n\n *changed* passwd chat debug = No username map = /usr/local/samba/lib/users.map password level = 0 username level = 0 unix password sync = Yes restrict anonymous = No lanman auth = Yes use rhosts = No admin log = No log level = 0 syslog = 1 syslog only = No log file = /usr/local/samba/var/log/%I.log max log size = 5000 timestamp logs = Yes debug hires timestamp = No debug pid = No debug uid = No protocol = NT1 large readwrite = Yes max protocol = NT1 min protocol = CORE read bmpx = No read raw = Yes write raw = Yes nt smb support = Yes nt pipe support = Yes nt status support = Yes announce version = 4.9 announce as = NT max mux = 50 max xmit = 16644 name resolve order = lmhosts host wins bcast max ttl = 259200 max wins ttl = 518400 min wins ttl = 21600 time server = Yes unix extensions = No change notify timeout = 60 deadtime = 15 getwd cache = Yes keepalive = 300 lpq cache time = 10 max smbd processes = 0 max disk size = 0 max open files = 1 name cache timeout = 660 read size = 16384 socket options = IPTOS_LOWDELAY TCP_NODELAY stat cache size = 50 use mmap = No total print jobs = 0 load printers = No printcap name = /etc/printcap disable spoolss = No enumports command = addprinter command = /usr/local/samba/lbin/add_printer deleteprinter command = /usr/local/samba/lbin/delete_printer show add printer wizard = Yes os2 driver map = strip dot = No mangling method = hash character set = ISO8859-1 mangled stack = 50 stat cache = Yes domain admin group = ntadmins domain guest group = gasten machine password timeout = 604800 add user script = /usr/local/samba/lbin/add_user_script %u delete user script = /usr/local/samba/lbin/delete_user_script %u logon script = scripts\%I\logon.bat logon path = \\%L\profiles\%U\%I\%a logon drive = g: logon home = \\%L\%U\private\.profile\%a domain logons = Yes os level = 255 lm announce = Auto lm interval = 60 preferred master = Yes local master = Yes domain master = Yes browse list = Yes enhanced browsing = Yes dns proxy = Yes wins proxy = No wins server = wins support = Yes wins hook = /usr/local/samba/lbin/winshook kernel oplocks = Yes lock spin count = 3 lock spin time = 10 oplock break wait time = 0 add share command = change share command = delete share command = config file = preload = lock dir = /usr/local/samba-2.2.6/var/locks pid directory = /usr/local/samba-2.2.6/var/locks utmp directory = /var/adm/wtmp wtmp directory = utmp = Yes default service = message command = dfree command = valid chars = remote announce = remote browse sync = socket address = 0.0.0.0 homedir map = time
Re: [Samba] Netlogon no longer works in 2.2.6 with W2k client
René Nieuwenhuizen heeft geschreven: Hi, We've got a fairly simple samba setup (no ldap/winbind etc) and until recently everything worked fine (using samba-2.2.5). But after switching to samba-2.2.6 w2k-clients fail to run the netlogon-scripts. When i look at the client it says: logonserver=\\workstationname I've cured the problem: it seems that after installing samba-2.2.6 I had to rejoin every workstation to our domain. What can I do in the future to prevent this? Is the some tdb that has to be saved? René Nieuwenhuizen CPB Netherlands Bureau for Economic Policy Analysis -- Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van het bericht te vernietigen. This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us immediately and delete its contents. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba