Re: [Samba] Odd problem with samba v.3.0.20b

2005-10-24 Thread Leon Brooks
On Monday 24 October 2005 20:45, Gerald (Jerry) Carter wrote:
> Andrew Bartlett wrote:
> | The trouble is that we don't know where the string is
> | being trucated. It is not as simple as 'in the tree connect',
> | as ethereal shows the string to be already truncated.
> | It must be somewhere else, but it also appears non-fatal:
> | I've never heard of it actually breaking setups,
> | just making noise.
>
> It's not our bug Andrew.  I've generated traces from
> a Win2K -> WinXP  that show the exact same thing.  It's
> a Windows 2000 client bug.

So... new config item:

w2k client workaround = yes

iff requested share does not exist, but a single share with the
same name plus one character does exist, connect to that instead.

(-:

Cheers; Leon

-- 
http://cyberknights.com.au/ Modern tools; traditional dedication
http://plug.linux.org.au/   Member, Perth Linux User Group
http://slpwa.asn.au/Member, Linux Professionals WA
http://osia.net.au/ Member, Open Source Industry Australia
http://linux.org.au/Member, Linux Australia
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba.. not worth a f*** for printing

2005-10-09 Thread Leon Brooks
On Monday 10 October 2005 10:26, John T Benedetto wrote:
> That's funny... we have almost three dozen printers
> running fine across five different subnets on our campus
> with what the team would probably consider the ancient
> Samba 2.2.7.

The print-to-PDF facility added by CUPS is also popular with my 
customers. One was happy enough with it to put off buying 28 copies of 
Adobe Distiller. Choice of AUD$580+GST per head (== $16,240), or 
AUD$7379 for a 100-user licence. Perhaps I should talk them into 
donating 10% of that value to Samba?

Cheers; Leon

-- 
http://cyberknights.com.au/ Modern tools; traditional dedication
http://plug.linux.org.au/   Member, Perth Linux User Group
http://slpwa.asn.au/Member, Linux Professionals WA
http://osia.net.au/ Member, Open Source Industry Australia
http://linux.org.au/Member, Linux Australia
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Re: MS SQL server and samba

2005-10-09 Thread Leon Brooks
On Sunday 09 October 2005 09:47, jamrock wrote:
> Note that most people use Enterprise Manager to backup from SQL to
> the local drive.  They then use backup software to backup from disk
> to tape or disk to disk.

I have two customers doing something similar. They each have a small 
MS-ADO program (one written in Delphi, one VB) which dumps the 
database(s) out completely as SQL text, which then gets backed up.

I know that there are OS-portable SyBase-oriented utilities around which 
can do the same from *n[iu]x, because I've done this by hand a while 
ago (IIRC, from a Digital Unix box). These would allow "one" to manage 
"one's" entire backup from the Samba box.

Cheers; Leon

--
http://cyberknights.com.au/ Modern tools; traditional dedication
http://plug.linux.org.au/   Member, Perth Linux User Group
http://slpwa.asn.au/Member, Linux Professionals WA
http://osia.net.au/ Member, Open Source Industry Australia
http://linux.org.au/Member, Linux Australia
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] how do you manage printers on workstations?

2005-10-04 Thread Leon Brooks
On Tuesday 04 October 2005 17:23, Tomasz Chmielewski wrote:
> Gerald (Jerry) Carter schrieb:
>> Tomasz Chmielewski wrote:
>>> rundll32 printui.dll,PrintUIEntry /q /y /ga /in /n \\server\kyocera
>>> as a domain administrator when machine is booted, and then in a
>>> netlogon script when a user logs in.

>>> In other ways, I'm looking for an easier way to do it :)

>> What exactly about this don't you like ?  Managing printer
>> connections in a logon script is pretty simple.  What are you
>> looking to simplify? 

> well for me it's fine, it's just some Windows guys here complaining
> that "it's s complicated to do it with Samba".

> I guess it's just different for them, that's why.

"Different" is about it.

Do they value being able to tell what's going on with their systems? Do 
they value repeatable results? Do they object to setting changing 
themselves, sometimes for no reason and somtimes during an update? Do 
they mind being obsoleted when Vista or whatever shanges the buttons 
they need to click in order to make it work under Win32? If the answers 
are no, no, no and no then maybe they have a case. Or not.

Cheers; Leon

--
http://cyberknights.com.au/ Modern tools; traditional dedication
http://plug.linux.org.au/   Member, Perth Linux User Group
http://slpwa.asn.au/Member, Linux Professionals WA
http://osia.net.au/ Member, Open Source Industry Australia
http://linux.org.au/Member, Linux Australia
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] More Random Behaviour

2005-09-29 Thread Leon Brooks
On Friday 30 September 2005 00:29, Ric Tibbetts wrote:
> "I" changed nothing in the Samba setup, or configuration.
> No one else was logged into the server.
> Hence: There were no changes to the Samba server.

What security software does the server run? Is there anything like 
Mandrake's MSec running regularly, which might "correct" the 
permissions on various things?

Cheers; Leon

-- 
http://cyberknights.com.au/ Modern tools; traditional dedication
http://plug.linux.org.au/   Member, Perth Linux User Group
http://slpwa.asn.au/Member, Linux Professionals WA
http://osia.net.au/ Member, Open Source Industry Australia
http://linux.org.au/Member, Linux Australia
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] More Random Behaviour

2005-09-29 Thread Leon Brooks
On Friday 30 September 2005 00:16, Jeremy Allison wrote:
> On Thu, Sep 29, 2005 at 08:47:34AM -0600, Ric Tibbetts wrote:
>> Then, for no reason, and with NO changes made, it started to deny
>> me access to my home directory. FOR NO REASON. I had not changed
>> anything. 

> There is *nover* NO REASON. Something changed. You just don't
> know what.

Have to agree.

The on-going problem I face with one client's slow application happens 
to revolve around a switch from IPX to IP protocol for the fileshares, 
but they didn't mention that little detail for the first *three*days* I 
turned up on site. It appers that Win32 applications treat their 
"native" protocols differently, and botch it (small packets, no 
cacheing).

Cheers; Leon

-- 
http://cyberknights.com.au/ Modern tools; traditional dedication
http://plug.linux.org.au/   Member, Perth Linux User Group
http://slpwa.asn.au/Member, Linux Professionals WA
http://osia.net.au/ Member, Open Source Industry Australia
http://linux.org.au/Member, Linux Australia
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Windows Vista Setup

2005-09-22 Thread Leon Brooks
On Friday 23 September 2005 06:33, Andrew Bartlett wrote:
> On Tue, 2005-09-20 at 10:49 +0200, [EMAIL PROTECTED] wrote:
>> I am currently running a Gentoo with a 2.4 Kernel and Samba 3.0.20.
>> More exactly I did emerge the net-fs/samba-3.0.20-rc1 package.
>> Still I cant get Windows Vista to connect to the samba-server. I
>> did some googling but didnt find anything usefull. Can anyone help?
>> Do I have to setup a ADS with samba?

> Samba 3.0.21 will contain the fix, as does current SVN.  I didn't see
> it in the list for 3.0.20a, sorry.

Ah, the ritual breaking of existing software with every major release. 
Can't just dump an old tradition, y'know? Imagine what that would do to 
revenues.

Cheers; Leon

--
http://cyberknights.com.au/ Modern tools; traditional dedication
http://plug.linux.org.au/   Member, Perth Linux User Group
http://slpwa.asn.au/Member, Linux Professionals WA
http://osia.net.au/ Member, Open Source Industry Australia
http://linux.org.au/Member, Linux Australia
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: AW: [Samba] smbd errors from "getpeername"

2005-09-20 Thread Leon Brooks
On Wednesday 21 September 2005 07:42, Ed Kasky wrote:
> expecting the rest of the world to follow the pied piper...

Hmmm. That would be Bill Gates after Noël Godin finished with him?

http://www.bitstorm.org/gates/

Cheers; Leon

-- 
http://cyberknights.com.au/ Modern tools; traditional dedication
http://plug.linux.org.au/   Member, Perth Linux User Group
http://slpwa.asn.au/Member, Linux Professionals WA
http://osia.net.au/ Member, Open Source Industry Australia
http://linux.org.au/Member, Linux Australia
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Horrible Linux/Samba vs Windows political battle - can you help?

2005-09-20 Thread Leon Brooks
On Tuesday 20 September 2005 07:49, Gregory A. Cain wrote:
> If there is anyone reading this who works in the field of
> architecture or engineering, and with CAD or BIM software, who is
> using Linux as your server software, I would sure be appreciative it
> if you could write a testimonial for me to help me convince my boss
> that migrating from Linux to MS would be a horrible mistake.

I have a _customer_ who does CAD work and steel fabrication in a 
northern suburb of Perth, Western Australia. Needess to say, running 
their office from the same wires as arc welders and rail cranes doesn't 
do wonders for reliability, to say nothing of having steel fines 
contantly blowing through into the office, and the computers therein.

They use SaMBa for their file server (everything-server, as it does 
email and other stuff as well) and have never had a problem with it.

I have another client whose problems I posted about a few days ago. 
Their SaMBa server shoves data at over 9MB/s over a 100Mb/s LAN, 
roughly 2.5x faster than a Windows 2k3 box doing the same thing.

For those who feel the urge to make constructive suggestions about the 
problem I posted, Windows 2000 clients behave the same way, that is, 
file I/O through Windows Explorer or smbclient roars through, but 
running an app off the server is agony (an absurd number of 512-byte 
and 40-byte SMB requests, almost all of them on the EXE file).

I've used regedit to explain to an XP client machine that it really, 
really needs to cache and use OpLocks, to no obvious effect. I've 
switched on (and off) everything related in SaMBa, marked files and 
shares read-only and so on, likewise without obvious effect.

Cheers; Leon

-- 
http://cyberknights.com.au/ Modern tools; traditional dedication
http://plug.linux.org.au/   Member, Perth Linux User Group
http://slpwa.asn.au/Member, Linux Professionals WA
http://osia.net.au/ Member, Open Source Industry Australia
http://linux.org.au/Member, Linux Australia
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] 10x the traffic but only when _executing_, pizza offered

2005-09-15 Thread Leon Brooks
On Friday 16 September 2005 08:34, Leon Brooks wrote:
> There is no perceptible speed difference serving from a muscly
> hardware-RAIDed-SCSI dual-CPU gig-of-RAM server or my el-crappo
> AOpen laptop. 

smb.conf from said laptop (for 3.1) attached, plus a comment-stipped 
version.

BTW, to clarify: the reward offered is two large pizzas or one 
Sizzlers-or-near-equiv meal for info which solves the basic problem, 
and three pizzas for a greased-weasel solution. I'll contact y'all 
off-list to arrange that.

Cheers; Leon

-- 
http://cyberknights.com.au/ Modern tools; traditional dedication
http://plug.linux.org.au/   Member, Perth Linux User Group
http://slpwa.asn.au/Member, Linux Professionals WA
http://osia.net.au/ Member, Open Source Industry Australia
http://linux.org.au/Member, Linux Australia

# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash) 
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors. 
#
#=== Global Settings =
[global]

# 1. Server Naming Options:
# workgroup = NT-Domain-Name or Workgroup-Name
   workgroup = LEON

# netbios name is the name you will see in "Network Neighbourhood",
# but defaults to your hostname
  netbios name = Leon

# server string is the equivalent of the NT Description field
   server string = Samba Laptop %v

# Message command is run by samba when a "popup" message is sent to it.
# The example below is for use with LinPopUp:
; message command = /usr/bin/linpopup "%f" "%m" %s; rm %s

# 2. Printing Options:
# CHANGES TO ENABLE PRINTING ON ALL CUPS PRINTERS IN THE NETWORK
# (as cups is now used in linux-mandrake 7.2 by default)
# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
   printcap name = cups
   load printers = yes

# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx, cups
   printing = cups

# Samba 2.2 supports the Windows NT-style point-and-print feature. To
# use this, you need to be able to upload print drivers to the samba
# server. The printer admins (or root) may install drivers onto samba.
# Note that this feature uses the print$ share, so you will need to 
# enable it below.
# printer admin = @ 
   printer admin = @adm
# This should work well for winbind:
#   printer admin = @"Domain Admins"

# 3. Logging Options:
# this tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba31/log.%m

# Put a capping on the size of the log files (in Kb).
   max log size = 50

# Set the log (verbosity) level (0 <= log level <= 10)
# log level = 3

# 4. Security and Domain Membership Options:
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page. Do not enable this if (tcp/ip) name resolution does
# not work for all the hosts in your network.
#   hosts allow = 192.168.1. 192.168.2. 127.

# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
#  guest account = pcguest
# Allow users to map to guest:
  map to guest = bad user

# Security mode. Most people will want user level security. See
# security_level.txt for details.
   security = user
# Use password server option only with security = server or security = domain
# When using security = domain, you should use password server = *
#   password server = 
#   password server = *

# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
#  password level = 8
#  username level = 8

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
# Encrypted passwords are required for any use of samba in a Windows NT domain
# The smbpasswd file is only required by a server doing authentication, thus
# members of a domain do not need one.
  encrypt passwords = yes
  smb passwd file = /etc/samba31/smbpasswd

# The following ar

[Samba] SaMBa raises 10x the traffic but only when _executing_, pizza offered

2005-09-15 Thread Leon Brooks
Customer is running a Delphi app talking to an MS-SQL-Server through 
Microsoft ADO. The SQL stuff is reasonably chatty but not a problem.

Whenever the program is run or a significant feature is used, it 
generates much SMB traffic -- roughly 10x as much from a SaMBa (3.1 or 
3.0) server as from a W2k or w2k3 server. As you might imagine, this 
makes the app run very slowly.

This happens with one user or with many. The ?mbd processes aren't 
raising a sweat, a few % of CPU at most. Samba delivers (and accepts) 
data at up 9.8MB/s sustained to smbclient over a 100Mb/s link, and 
delivers 2MB images to XP in an eyeblink, so it's not a fundamental 
networking failure. There is no perceptible speed difference serving 
from a muscly hardware-RAIDed-SCSI dual-CPU gig-of-RAM server or my 
el-crappo AOpen laptop.

This DID NOT HAPPEN with their old Novell file server using Novell's 
networking protocols. The application provider also has another site 
running the app on a Citrix server but from a separate file server, 
with no speed problems. That makes it look very much like a cacheing or 
similar issue. The amount of SMB traffic involved is roughly 4x the 
size of the application.

I've tried with and without oplocks, with different levels of buffering, 
different OS levels, all sorts of config performance tweaks and they 
make no perceptible difference vs minimalist changes OOtB.

It's interesting that despite delivering only 10%-ish as much traffic, 
responsiveness from the w2k3 server is only about 20% better than from 
any Samba server. The app is blindingly fast in comparison if run from 
the local disk, but the customer doesn't want to have to maintain 
40-odd local copies of the app, and the basic problem would still lurk.

Initially, we tested with a version of the app which was compressed 
(12MB => 4MB) with BlinkInc's Shrinker, but later testing involved an 
uncompressed version. That did run perceptibly faster, but it was an 
incremental improvement, not the revolution that we need.

There is a an Ethereal capture up at http://samba.cyberknights.com.au/ 
if you're interested in seeing for yourself. This is taken from an XP 
workstation (*.158) talking to a 2k3 server (*.4) and them my laptop 
running Samba (*.108). The traffic to *.100 is the SQL server and 
everything else is pretty much irrelevant.

The capture shows the workstation starting the app, making an initial 
query, then doing a find on a product number, then closing down. This 
is done first to the 2k3 server then Samba.

Trimming the requests down from ~50MB to ~5MB would probably make the 
app "fast enough" but there's extra brownie points (and a meal at your 
local Sizzlers or near equivalent, maybe a couple of pizzas) for enough 
clues to make it all run like a greased otter. (-:

Cheers; Leon

--
http://cyberknights.com.au/ Modern tools; traditional dedication
http://plug.linux.org.au/   Member, Perth Linux User Group
http://slpwa.asn.au/Member, Linux Professionals WA
http://osia.net.au/ Member, Open Source Industry Australia
http://linux.org.au/Member, Linux Australia
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba