Re: [Samba] test

2003-01-28 Thread Giulio Orsero
On Tue, 28 Jan 2003 14:20:57 -0800 (PST), Jonathan Johnson <[EMAIL PROTECTED]>
wrote:

>The command "ver" returns the version, but that's not really helpful,
>because in a batch file script, you can't use the output to control the
>direction of the script.

ver | find "95" > nul
if not errorlevel 1 set SISTEMA=WIN9X

ver | find "98" > nul
if not errorlevel 1 set SISTEMA=WIN9X

ver | find "Millennium" > nul
if not errorlevel 1 set SISTEMA=WIN9X

ver | find "NT" > nul
if not errorlevel 1 set SISTEMA=WINNT

ver | find "2000" > nul
if not errorlevel 1 set SISTEMA=WIN2K_XP

ver | find "XP" > nul
if not errorlevel 1 set SISTEMA=WIN2K_XP


-- 
[EMAIL PROTECTED]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] does smbmount use keepalive and/or smb.conf?

2002-10-17 Thread Giulio Orsero
On Thu, 17 Oct 2002 11:47:10 -0700 (PDT), Richard Duran <[EMAIL PROTECTED]>
wrote:

>Thank you for the URL. That will be a good reference
>in the future, but for now, I feel that some questions
>remain unanswered.
>
> 1. Does smbmount use a keep alive time setting?
> 2. Does smbmount use the smb.conf file?
>
I posted the url because it has smbfs patches for "receive timeout
..avoiding D state for offline servers" which seemed your problem.
Don't know the answer to you questions. But, if you rephrase them to use
"smbfs" in place of "smbmount" (which is an helper), I'd say
1. with patch
2. no

-- 
[EMAIL PROTECTED]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] acute problem

2002-11-16 Thread Giulio Orsero
On 16 Nov 2002 16:01:23 -, "bimal  pandit" <[EMAIL PROTECTED]>
wrote:

>lib/access.c:check_access(320)
>  denied connection from 10.10.10.10( ip of xp machine)
>the ip of my linux m/c is 10.10.10.12
>can anyone help me??

Doesn't the above suggest you anything?
Maybe a look at your smb.conf would be helpful.

-- 
[EMAIL PROTECTED]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] MS DFS and File Replication

2002-11-26 Thread Giulio Orsero
On Tue, 26 Nov 2002 16:43:42 + (GMT), John H Terpstra <[EMAIL PROTECTED]>
wrote:

>On Tue, 26 Nov 2002 [EMAIL PROTECTED] wrote:
>
>> On Tue, Nov 26, 2002 at 04:11:38PM -, alex wrote:
>> >
>> > All we really require is the ability to replicate a tree structure from
>> > one SMB server to another in effectively real-time, and the above
>> rsync is what you need to do this. Look at rsync.org, it will ship
>> with your linux. You can invoke it on a periodic basis. Very efficient
>> and no need for Windows at all :-).
>And if you need a binary for MS Windows 2K let me know, I can provide one
>so you can rsync from MS Windows 2K to/from Linux/Unix.

Will rsync take care of ACL between linux/linux (ie xfs) , win/linux,
linux/win?

-- 
[EMAIL PROTECTED]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] MS DFS and File Replication

2002-11-26 Thread Giulio Orsero
On Tue, 26 Nov 2002 17:15:25 + (GMT), John H Terpstra <[EMAIL PROTECTED]>
wrote:

>When you find a way the Rsync team would love to hear from you. So the
>answer is No.
I asked because original poster seems to need this option. See last 3 lines
of last paragraph of his email.

I thought since A.Tridgell works with samba and xfs, and he's the author of
rsync, maybe there was a chance he had needed this for quantum appliances.

-- 
[EMAIL PROTECTED]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Automounting a shared Windows Drive with

2002-12-02 Thread Giulio Orsero
On Mon, 2 Dec 2002 11:29:00 -0500, Robert Adkins <[EMAIL PROTECTED]> wrote:

>   I have a few ideas about how to make my Linux server mount up a shared   
>folder on a Windows machine at boot time, however I would like to know if   
>there are other methods of getting it to work.
Have you considered automount (autofs)?

/etc/auto.misc
winsrv -fstype=smb,username=xyz,password=xyz,uid=kwx,gid=kwx ://WIN/SHR

$ ls /misc/winsrv/

will mount it, and it will be unmounted when not used for some configurable
time.

-- 
[EMAIL PROTECTED]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] libcups.so.2 plus some general / opinion type questions (maybe newbie questions)

2002-12-03 Thread Giulio Orsero
On Tue, 3 Dec 2002 09:07:34 -0400, [EMAIL PROTECTED] wrote:


>Redhat 7.2 contains samba 2.2.1 rpm (i.e no winbind)
>Downloaded samba-2.2.7-1.i386.rpm from samba.org mirror
>rpm –ivh samba-2.2.7-1.i386.rpm  then I get a failed dependency error.
Which dependency?

>Redhat support was, in this case, not too good, they suggested either upgrading to 
>7.3 or 8.0, unfortunately this is not an option with the DB server.
Why don't you download
ftp://updates.redhat.com/7.3/en/os/SRPMS/samba-2.2.7-1.7.3.src.rpm
and rebuild it on your system?
Chances are that the 7.3 binary rpm's would work on rh72 too directly.

>Libcups.so.2 is part of cups. If I install cups it could affect the current printing 
>through linux (especially on the DB server).
>If no printing is being handled via samba and all we need is unified logins and file 
>access am I ok doing:
libcups is part of cups-libs rpm which you can install without causing any
problem (install just cups-libs and not cups rpm)

-- 
[EMAIL PROTECTED]
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] What issues are there with running smbmnt suid root?

2002-12-04 Thread Giulio Orsero
On Wed, 04 Dec 2002 14:41:46 -0500, George Lenzer <[EMAIL PROTECTED]>
wrote:

>I was trying to mount a Windows share as a regular user on my system and 
>smbmount said that smbmnt should be installed 'suid root'.  I know how 
alternative to suid:
http://lists.samba.org/pipermail/samba/2002-December/086033.html

-- 
[EMAIL PROTECTED]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] 2.2.4: VFS->recycle->sig11

2002-05-10 Thread Giulio Orsero

samba-2.2.4 on linux 2.2.x (Red Hat 6.x). No large file enabled.

recicle.c as shipped in 2.2.4 cause sig11.

If I apply this patch that I found on usenet then it's ok
==

--- ./examples/VFS/recycle.c.orig   Mon Mar 25 12:56:47 2002
+++ ./examples/VFS/recycle.cFri Apr 12 18:21:54 2002
@@ -239,9 +163,10 @@
}
 
 base = strrchr(fname, '/') + 1;
-   if(base == (char*)1)
+   if(base == (char*)1) {
 ext = strrchr(fname, '.');
-   else
+   base = fname;
+   } else
ext = strrchr(base, '.');
  
pstrcpy(bin,recycle_bin);
==

However, I'd like to use the enhanced path from here
http://www.elbonia.de/samba/samba_recycle.html
(I have no large file so my SMB_OFF_T is correctly reported as 4).

But it has the very same problem, it sig11 after
  pstrcpy(fpath,"/");
pstrcat(fpath,fname);
path = strrchr(fpath+1, '/') + 1 ;
*path='\0';
  

I tried manually applying the same patch but it does not work.

Can you help me?

Thanks.

-- 
[EMAIL PROTECTED]

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Status of VFS modules

2002-05-15 Thread Giulio Orsero

On Wed, 15 May 2002 14:46:34 +0200, Denis Sbragion <[EMAIL PROTECTED]>
wrote:

>I'm trying to use the VFS modules included with version 2.2.4. System is 
>RedHat 7.2 with precompiled binaries from samba.org. Modules (audit & 
>recycle) have been recompiled from sources. The recycle modules doesn't 
>work at all for me, panic & crashes whenever I try to delete a file. The 
>audit module seem to work but every now and then it crashes also. Anybody 
>has hany experience with this?
>
Yes, see
http://lists.samba.org/pipermail/samba/2002-May/072457.html
for a solution to recycle.

Also, if you have 64bit file access, you need to modify Makefile and add
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 to line CFLAGS = ...

-- 
[EMAIL PROTECTED]

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Status of VFS modules

2002-05-15 Thread Giulio Orsero

On Wed, 15 May 2002 17:06:37 +0200, Denis Sbragion <[EMAIL PROTECTED]>
wrote:


>>Also, if you have 64bit file access, you need to modify Makefile and add
>>-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 to line CFLAGS = ...
>
>I have been unable to apply the patch showed in the message (hunk failed). 

Apply it by hand, so did I.

-- 
Giulio Orsero
GoldenSer s.r.l.
[EMAIL PROTECTED]

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] 2.2.4 and "veto files" -> cpu maxed out

2002-05-16 Thread Giulio Orsero

linux 2.2.19/rh6x

I use in a share

veto files = /.*/

whenever you connect to it the client process hangs, the smbd starts
consuming cpu time and cannot be killed but with "kill -9".

This is the last part of the smbd log

[2002/05/16 05:49:51, 3] smbd/sec_ctx.c:set_sec_ctx(319)
  3 user groups:
  100 6 19
[2002/05/16 05:49:51, 3] smbd/trans2.c:call_trans2findfirst(863)
  call_trans2findfirst: dirtype = 22, maxentries = 512, close_after_first=0,
clo
se_if_end = 1 requires_resume_key = 1 level = 260, max_data_bytes = 65535
[2002/05/16 05:49:51, 3] lib/util.c:unix_clean_name(387)
  unix_clean_name [/*]
[2002/05/16 05:49:51, 3] lib/util.c:unix_clean_name(387)
  unix_clean_name [*]
[2002/05/16 05:49:51, 3] lib/util.c:unix_clean_name(387)
  unix_clean_name [./]

Then it starts running out of control.


I don't know if it started with 2.2.4 or 2.2.3; I'm quite sure it worked
with 2.2.2.
Anyone with similar experiences?

-- 
[EMAIL PROTECTED]

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] 2.2.4 and "veto files" -> cpu maxed out

2002-05-16 Thread Giulio Orsero

On Thu, 16 May 2002 14:13:32, Thierry ITTY <[EMAIL PROTECTED]>
wrote:

>no experience about it but this could be some funny kind of dead loop,
>samba trying to consider . or .. (directories) as vetoed files
>
>i'd try some more restrictive pattern, like .??* which means "veto files
>beginning with dot and whose name is more than 2 bytes long

veto files = /.??*/
veto files = /.?*/

do work (dot files not shown, and normal smbd behavior)

Thanks

-- 
[EMAIL PROTECTED]

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] 2.2.4 and "veto files" -> cpu maxed out

2002-05-16 Thread Giulio Orsero

On Thu, 16 May 2002 10:47:42 -0700, [EMAIL PROTECTED] (Jeremy Allison) wrote:

>> veto files = /.*/
>> whenever you connect to it the client process hangs, the smbd starts
>> consuming cpu time and cannot be killed but with "kill -9".

>Can you attach to the process compiled with -g (debug symbols)
>and get a stack backtrace please ?

Note that I don't understand anything of the following, just read man page
in order to try the command most similar to what you requested :-)

# gdb /usr/sbin/smbd 814
GNU gdb 4.18
Copyright 1998 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"...
 
/tmp/814: No such file or directory.
Attaching to program: /usr/sbin/smbd, Pid 814
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libnsl.so.1...done.
Reading symbols from /lib/libpam.so.0...done.
Reading symbols from /usr/lib/libpopt.so.0...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /lib/libnss_files.so.2...done.
Reading symbols from /lib/libnss_nisplus.so.2...done.
Reading symbols from /lib/libnss_nis.so.2...done.
strncpy (s1=0xbfffe518 ".", s2=0x8150480 ".", n=1023)
at ../sysdeps/generic/strncpy.c:83
83  ../sysdeps/generic/strncpy.c: No such file or directory.
(gdb) bt
#0  strncpy (s1=0xbfffe518 ".", s2=0x8150480 ".", n=1023)
at ../sysdeps/generic/strncpy.c:83
#1  0x81359ff in is_in_path ()
#2  0x806f59b in OpenDir ()
#3  0x806e920 in start_dir ()
#4  0x806e9fd in dptr_create ()
#5  0x808cb53 in call_trans2findfirst ()
#6  0x80920a6 in reply_trans2 ()
#7  0x809f41d in switch_message ()
#8  0x809f4ba in construct_reply ()
#9  0x809f6e4 in process_smb ()
#10 0x809ff4f in smbd_process ()
#11 0x806a2c9 in main ()
#12 0x400551eb in __libc_start_main (main=0x8069c20 , argc=2,
argv=0xb7e4, init=0x8068108 <_init>, fini=0x814e36c <_fini>,
rtld_fini=0x4000a610 <_dl_fini>, stack_end=0xb7dc)
at ../sysdeps/generic/libc-start.c:90
(gdb)

-- 
[EMAIL PROTECTED]

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] oplock break on excel files using samba 2.2.4

2002-06-07 Thread Giulio Orsero

On Fri, 7 Jun 2002 16:48:01 -0700, [EMAIL PROTECTED] (Jeremy Allison) wrote:

>On Mon, Jun 03, 2002 at 03:02:05PM +0200, Sylvain BARTHELEMY wrote:
>> I search for a solution about the "oplock break" problem that occurs
>> sometimes on my RH7.0 / Samba 2.2.4 machine when accessing Excel files on a

>It looks like this may have been a Samba problem interacting
>with the Linux 2.4.x kernel shipped in RedHat 7.x. We have
>fixed this for Samba 2.2.5, and Jerry is about to issue a

It seems to me you are referring to the recent changes you made for kernel
oplocks:
http://lists.samba.org/pipermail/samba-technical/2002-June/037264.html

However, note that Red Hat 7.0 (the poster uses that) is not kernel 2.4.x,
it's 2.2.16/19. So the problem the poster was referring to was not related
to kernel oplocks, but to the famous "oplock_break" that spans kernel and
samba versions.

>From what you said in recent posts, the oplock_break seems to be an
unresolvable Win9x bug related to server terminated smb sessions:
http://lists.samba.org/pipermail/samba-technical/2002-June/037133.html

However, see
http://groups.google.com/groups?q=oplock_break+xp+group:*samba*&hl=it&lr=&scoring=d&selm=a774fn%2413cp%241%40FreeBSD.csie.NCTU.edu.tw&rnum=2
for the same problem with nt based clients.

-- 
[EMAIL PROTECTED]

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] oplock break on excel files using samba 2.2.4

2002-06-08 Thread Giulio Orsero

On Sat, 08 Jun 2002 08:58:21 +0200, Giulio Orsero <[EMAIL PROTECTED]> wrote:

>However, see
>http://groups.google.com/groups?q=oplock_break+xp+group:*samba*&hl=it&lr=&scoring=d&selm=a774fn%2413cp%241%40FreeBSD.csie.NCTU.edu.tw&rnum=2
>for the same problem with nt based clients.

http://support.microsoft.com/support/misc/kblookup.asp?ID=309376
http://support.microsoft.com/support/misc/kblookup.asp?ID=163525

-- 
[EMAIL PROTECTED]

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] W9x print driver download problems with Samba 2.2.3a and CUPS

2002-10-01 Thread Giulio Orsero

On Sun, 29 Sep 2002 14:09:19 -0400, Adam Glasgall <[EMAIL PROTECTED]> wrote:

>I've set up Samba and CUPS on our testing server here, and used
>smbcupsadd to upload the Adobe PS drivers to the server as directed in

>Win9x is another story altogether. It's clearly trying to get the
>drivers from the server, but at the beginning of the process, it pops up

run cupsaddsmb with "-v". You'll probably see that it mistakenly uses
smbclient in place of rpcclient when setting up win9x drivers and fails.
You can do it by hand seeing what's trying to do or wait for release of
cups-1.1.16 which solves this.

-- 
[EMAIL PROTECTED]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] does smbmount use keepalive and/or smb.conf?

2002-10-16 Thread Giulio Orsero

On Wed, 16 Oct 2002 11:43:30 -0700 (PDT), Richard Duran <[EMAIL PROTECTED]>
wrote:

>There seems to be an issue with smbfs mounts at times
>where connectivity may be lost (e.g. Win share becomes
>unavailable) causing local processes such as lsof or
>ps, among others, to hang.
http://www.hojdpunkten.ac.se/054/samba/

-- 
[EMAIL PROTECTED]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] does smbmount use keepalive and/or smb.conf?

2002-10-18 Thread Giulio Orsero
On Fri, 18 Oct 2002 08:09:21 -0700 (PDT), Richard Duran <[EMAIL PROTECTED]>
wrote:


>Thank you for clearing that up. Since we are running
>kernel 2.4.18, and this patch appears to apply to
>2.4.4, is it safe to assume that this patch need not
>be applied?
No. I briefly looked at an 2.4.18something Red Hat kernel, and it seems the
patch is not there, so I assume the author made it at the 2.4.4 time but it
didn't get included in the official kernel.

Look into the patch and see if it's in your kernel to be sure.

-- 
[EMAIL PROTECTED]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Two nmbd processes on 2.2.6

2002-10-18 Thread Giulio Orsero
On Fri, 18 Oct 2002 18:45:32 +0100, Noel Kelly <[EMAIL PROTECTED]>
wrote:

>Eventually I tried running just /usr/local/samba/bin/nmbd - and still got
>two nmbd processes.  Is this correct behaviour?
If your samba is wins server this is normal behavior (not new in 2.2.6).

-- 
[EMAIL PROTECTED]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba