Re: [Samba] file corruption

2006-03-21 Thread Markus Korth
HiHo!

urza wrote:
> Hi to all!
> I've been using samba for about six months: I've set up a file server,
> replacing a small windows 2000 server. I'm using samba 3.0.21c on a
> linux slackware 10.2. It is used to share two spreadsheet programs and
> file connected to them...
> Everything runs fine, except for a file, which is processed and saved
> several times in a day. After few weeks, this files got corrupted and is
> no longer available to the software which is using it (an heavy-modified
> spreadsheet): I need to replace it with a previous backup.

Sorry for asking but which spreadsheet software are you using? Did you
use exactly the same software on you old Windows 2000 server without any
problems?
I'm asking because I've experienced such problems quite often with MS
Office when using the "Tracing changes" functionality (Sorry, I only
know the menu entry of this function from the German version). Making
heavy changes in such a documents finally leads to a corrupted document...

Markus

-- 
Senior Executive - Systemadministration

Direct Phone: + 49 / 234 9787-57
Direct Fax: +49 / 234 9787-77

Viisage Technology AG
Universitaetsstrasse 160
44801 Bochum
Germany
http://www.viisage.com
--
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Storing passwords in LDAP, but not a PDC

2006-03-20 Thread Markus Korth
HiHo!

Craig White wrote:
> On Mon, 2006-03-20 at 09:22 +, Robert Mortimer wrote:
> 
>>>Hello,
>>>
>>>Is it possible to store samba passwords in ldap without configuring
>>>samba as a PDC?  All the documents/references I've come across are
>>>related to using LDAP as a samba PDC backend, not as just a db file
>>>replacement.
>>>
>>>Thanks,
>>
>>LDAP is a heavyweight store for massive amounts of passwords and extended
>>data needed to for 100s or 1000s of PCs. In a workgroup there is no central
>>password store. In a workgroup each windows (LINUX/Samba) machine has local
>>users and would never consult a central authentication database so the LDAP
>>would only hold accounts for the local Linux machine's users.
>>
>>This is a Sledgehammer + nut situation
>>
>>I suggest you look at the normal samba database
> 
> 
> I'm not entirely certain that I agree with the characterizations that
> you have used.

[...]

I completely agree. I think Roberts answer might be appropriate under
certain conditions but is just to general.
LDAP isn't that difficult to use and if you already have a established
Unix based environment, including LDAP, adding a little bit
SambaSAMAccount magic is more a by-product than real work.
Maintaining samba password and user files on perhaps 10 or 15 Unix samba
servers is more work than getting samba and LDAP together...

Markus


-- 
Senior Executive - Systemadministration

Direct Phone: + 49 / 234 9787-57
Direct Fax: +49 / 234 9787-77

Viisage Technology AG
Universitaetsstrasse 160
44801 Bochum
Germany
http://www.viisage.com
--
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Storing passwords in LDAP, but not a PDC

2006-03-19 Thread Markus Korth
HiHo!


David Filion wrote:

> Is it possible to store samba passwords in ldap without configuring
> samba as a PDC?  All the documents/references I've come across are
> related to using LDAP as a samba PDC backend, not as just a db file
> replacement.

Nearly the same question has been asked one day ago, so here is the same
answer:-)

http://www.ofb.net/~jheiss/samba/ldap.shtml
http://www.coe.tamu.edu/cs/Manuals/Samba/Samba-LDAP-HOWTO.html

Have fun
  Markus

-- 
Senior Executive - Systemadministration

Direct Phone: + 49 / 234 9787-57
Direct Fax: +49 / 234 9787-77

Viisage Technology AG
Universitaetsstrasse 160
44801 Bochum
Germany
http://www.viisage.com
--
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] SAMBA+LDAP in a Workgroup

2006-03-17 Thread Markus Korth
HiHo Tom!

Tom Haerens wrote:
> Hi,
> 
> This may be a dumb question (I'm new with this), but is it possible to use 
> SAMBA in combination with LDAP  in a Workgroup?
> All the manuals and examples I can find, are talking about Domains and 
> PDCs.

I've such a setup running here and I'm quite satisfied. We once migrated
from NIS to LDAP and later added the Samba scheme to our LDAP server. We
are just using simple file- and print services with Samba.
We don't use the PDC functionality as, up to now, I don't see an
advantage for us - just more administration effort.
Roughly said, the LDAP is just used for user accounts and groups, i.e.
passwords and userid/group matching.

There are enough websites that describe such a setup, by the way. Start
with these here:

http://www.ofb.net/~jheiss/samba/ldap.shtml
http://www.coe.tamu.edu/cs/Manuals/Samba/Samba-LDAP-HOWTO.html

Markus

-- 
Senior Executive - Systemadministration

Direct Phone: + 49 / 234 9787-57
Direct Fax: +49 / 234 9787-77

Viisage Technology AG
Universitaetsstrasse 160
44801 Bochum
Germany
http://www.viisage.com
--
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Delay with printer properties

2006-03-15 Thread Markus Korth
Juhu!

Thanks, Martin, that's it.

I made these changes to the registry and everything works finde now:

Procedure:
1. Edit the registry observing usual caution.
2. Locate the key HKEY_CURRENT_USER\Printers\DevModePerUser
3. Remove all VALUES for Network printers of the form:
\
4. Locate the key HKEY_CURRENT_USER\Printers\DevModes2
5. Remove all VALUES for Network printers of the form:
\

Markus

Martin Zielinski wrote:
> Hi Markus,
> 
> could you take a look at
> 
> http://lists.samba.org/archive/samba/2005-September/110571.html
> 
> and see, if this meets your problem.
> 
> Bye,
> 
> Martin
> 
> Markus Korth wrote:
> 
>> Greetings Samba Fans!
>>
>> I'm experiencing a strange problem which started after installation of
>> Service Pack 2 for Windows XP:
>>
>> When a user tries to print there is a long delay (sometimes around 2
>> minutes) before the printer properties page is opened. This only affects
>> Windows XP with Service Pack 2 installed.
>> I did a 'tcpdump' on the printserver and observed something quite
>> strange:

-- 
Senior Executive - Systemadministration

Direct Phone: + 49 / 234 9787-57
Direct Fax: +49 / 234 9787-77

Viisage Technology AG
Universitaetsstrasse 160
44801 Bochum
Germany
http://www.viisage.com
--
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Execute script on file write

2006-03-14 Thread Markus Korth
Doesn't samba offer an interface for anti virus tools? Could that
interface be used for executing scripts or similar whe accessing/writing
files?

Just a guess.

Markus


Tomasz Chmielewski wrote:
> Peter Fortuin wrote:
> 
>> Hello,
>>
>> I'm working on a quota system here at school. I want to execute a
>> script everytime a user writes on the samba fileserver. This script
>> checks some quota stuff.
>>
>> My question is, is it possible that a script is executed everytime a
>> user writes a file to the samba server and if it's possible, how?
> 
> 
> I guess it would be rather hard to achieve this, as Samba doesn't offer
> anything like that.
> The closest you will find are postexec and preexec directives (a program
> will be executed when the user connects/disconnects from a share).
> 
> Anyway, something what you're talking about (executing a script on every
> file write) could be a major bottleneck for the server.
> Just imagine, how many files are in the average user profile...
> 
> Is there some special reason you have to execute a script after every
> file upload?
> 
> 
> Why don't you just set up quota on your Samba server? The system will
> take care of everything.
> 
> Additionally, if you're using roaming profiles, you could use the Policy
> Editor to limit user profiles (they will get a pop up warning when they
> log out if the profile exceeds a value you set, and will be requested to
> remove some file).
> 
> 

-- 
Senior Executive - Systemadministration

Direct Phone: + 49 / 234 9787-57
Direct Fax: +49 / 234 9787-77

Viisage Technology AG
Universitaetsstrasse 160
44801 Bochum
Germany
http://www.viisage.com
--
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Delay with printer properties

2006-03-14 Thread Markus Korth
Greetings Samba Fans!

I'm experiencing a strange problem which started after installation of
Service Pack 2 for Windows XP:

When a user tries to print there is a long delay (sometimes around 2
minutes) before the printer properties page is opened. This only affects
Windows XP with Service Pack 2 installed.
I did a 'tcpdump' on the printserver and observed something quite strange:

When opening the printer properties page with a Windows XP, SP1 system,
something around 800 network packets travel between the client and the
server. When doing the same with Service Pack 2 installed, 20.000-40.000
packets are travelling through the wire. The additional packets all look
the same:

[TCP segment of a reassembled PDU]
DCERCP Request: call_id: 7 opnum: 53  ctx_id
microsoft-ds > 1227 [ACK]  Seq=3937 Ack=

It looks like as if much data is travelling and segmented due to data
size. If a reassemble one of this segment chains I get a packet with
something around 170k data in it. And there are many of these packets...

I tried different samba versions - from 2.2.8 to 3.0.x. I did setup a
complete new printserver. Nothing helped.

Printserver:
OS: SuSE Linux 10.0
Samba version: 3.0.2

Client:
Windows XP, SP2

Any hints?

Markus

-- 
Senior Executive - Systemadministration

Direct Phone: + 49 / 234 9787-57
Direct Fax: +49 / 234 9787-77

Viisage Technology AG
Universitaetsstrasse 160
44801 Bochum
Germany
http://www.viisage.com
--
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Failed to set delete on close flag

2003-03-21 Thread Markus Korth
HiHo!

I don't know wether this is an old one, but I've never seen this 
messages before:

Due to security issues I updated our servers to samba-2.2.8 with the 
following "configure"-options:

./configure --prefix=/usr/local/samba-2.2.8 --with-pam --with-ldapsam 
--with-syslog --with-quotas --with-acl-support

After the update I'm experiencing strange behaviour when deleteing 
complete directories:

All files in this directories will get deleted, but the directory itself 
is still visible in the Explorer (in this case a Windows 2000, SP2 
system). Explorer is producing a error message ("Folder has been moved 
or delete" (roughly translated into english as the original is a german 
message)). Samba is logging the following message to syslog:
set_delete_on_close_internal: failed to change delete on close flag for 
file bla/blub/foldername

Pressing "F5" (Refresh) in Explorer deletes the corresponding entry in 
the directory tree display.

Server system is a Linux 2.4.17, XFS filesystem, quotas turned on.

Any hints?
   Markus
--
--
Senior Executive - Systemadministration
Direct Phone: + 49 / 234 9787-57
Direct Fax: +49 / 234 9787-77
ZN Vision Technologies AG
Universitaetsstrasse 160
44801 Bochum
Germany
http://www.zn-ag.com
--
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] DFS and MS explorer

2002-04-16 Thread Markus Korth

Greetings !

We are currently testing samba together with DFS. All is working fine
with one exception: From time to time (but too often) the user gets the
message 
"n:\bla\path\to\somewhere isn't available.
The directory has been moved or deleted."
when accessing a directory with the explorer.
The message above is translated from german, therefore the original
english message might look a little bit different.
I know definitively that the above directory is still there: When
clicking somewhere else and back into the corresponding directory
explorer happily shows its content.
OS: Linux with kernel 2.4.17, samba 2.2.3a
Client: NT 4.0 SP6a and Win2K (with SP2, I think).

Any hints ?

Ciao 
 Markus

-- 
-- 
Senior Executive - Systemadministration

Direct Phone: + 49 / 234 9787-57
Direct Fax: +49 / 234 9787-77

ZN Vision Technologies AG
Universitaetsstrasse 160
44801 Bochum
Germany
http://www.zn-ag.com
--

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