[Samba] smbstatus+info

2002-12-19 Thread kdmprasad
hello all,

  can u help me with some details abt smbstatus program.
i read the man page which tells in a brief that it is run to know 
the current connections.

wat is this term current connections...anyone can help me out with 
some details pls...

does it really mean the current clients in samba server(who r all 
logged in/authentecated in PDC).

pls help me with details

thanks in advance.
prasad

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



[Samba] Samba 3alpha20 Bugs (FreeBSD 4.6)

2002-12-19 Thread Laurent Hofmann
hello,

I would say that for Samba 3.0 alpha20 (and latter I suppose ) acting as PDC
you must reenable use spnego=yes.
I say it because it is not clear, and I had to search a lot before finding
why i could not log on.
(it work with spnego=no with alpha17 !)

I've tried to set up add and delete scripts for everythings : add user
script, delete user script etc... add/del user and group work fine but
add/del user to/from group and set primary group seem not to do
anything. (by placing /bin/echo %g %u/test it do nothing too while it work
with add user).

I've found also an error with UserMng for NT when group names (created by
smbgroupedit) are too long. If I rename it to a less caracters name, I can
double-click on a group name and view who is in the group.

With usermng for NT, we can delete a global group or a local group (without
entry in smbgroupedit) without problem, but if this group appears in
smbgroupedit and is local, it's impossible. (say unable to delete this
system group).

I hope this can help ? I don't no if it is the right place for that... But
i'm not sure all are bugs, it could be problems in my config, so I post
here.

Laurent
PS : I'm new to this mailing-list, and I'm french ;)




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



Re: [Samba] Connection Refuse

2002-12-19 Thread Ray Simard
On Monday 09 August 2004 08:45, Prianggada I Tanaya wrote:

There are several things that might cause problems here.
 ...
 $ smbclient -U% -L 10.1.45.12
 added interface ip=10.1.45.13 bcast=10.1.255.255 nmask=255.255.0.0
 error connecting to 10.1.45.12:139 (Connection refused)
 Error connecting to 10.1.45.12 (Connection refused)
 Connection to fk-msi-srv failed

This means that 10.1.45.12 is not listening for SMB connections on port 139, 
which means that Samba server daemon smbd is either not running or has been 
started with some bogus arguments - more likely the former. There should be 
startup script somewhere that properly launches the Samba daemons. In mine 
(SuSE Linux) it's /etc/init.d/smb, which you'd run with start as argument.

You can check the running processes on 10.1.45.12 to see if smbd and nmbd are 
running. You can also verify that they're listening properly with netstat:

$ netstat -nlA inet

You should see (at least) a line under local TCP addresses reading 0.0.0.0:139 
or 10.1.45.12:139, and lines under UDP for :137 and ...:138   If you 
don't see those, of if the ones you do see are not on either 0.0.0.0 or the 
machine's public address, you won't be able to connect to it.

Some bad parameters in smb.conf can cause startup failures (e.g., a value for 
interfaces = that is impossible for the the machine). testparm may not 
catch that. Check the Samba logs if you suspect that (or just for good 
measure in any case!).

It's interesting that the failure message lists the NetBIOS name 
fk-msi-srv. If I read it right (someone correct me if not) there's either 
a WINS server on the network or an entry in hosts or lmhosts that gives the 
NetBIOS name-IP address mapping for that machine. If it is a WINS server, the 
daemons must have been running at one time for the WINS server to have 
learned of fk-msi-srv, and then were shut down later somehow. (I suppose 
it could be a running nmbd on the system, though it seems strange that you 
would have nmbd and not smbd running at a particular time - or does it?)

 using nmblookup, send anything ..., found this error.

 $ nmblookup -B 10.1.45.12 '*'
 querying * on 10.1.45.12
 name_query failed to find name *

Here you're specifying 10.1.45.12 as the broadcast address for name service 
(which, BTW, is an impossible broadcast address). The proper broadcast 
address for your network ( /16, a.k.a., class B) is 10.1.255.255 (note the 
messages from smbclient you quoted at the top). You probably meant -U 
(unicast address) instead of -B (broadcast address).

Note that the nmblookup, when properly run, will show you the running SMB 
servers on the network even if the Samba daemons are not running on the 
machine you're using to run nmblookup. However, that machine will not appear 
in your nmblookups until you start the servers. Until then, as far as Samba 
and other SMB servers on the network (Samba and Windoze boxen) are concened, 
it doesn't exist.

Ray

Note: If you really get stumped, you can bump up the debug level and get more 
details about your command (enormously, if you wish!), with something like

$ smbclient -d 3 (rest of your command)

Try -d 10 just for fun... :-)

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



[Samba] Help with SAMBA configuratin.

2002-12-19 Thread Juan Rosell





Hi,

   I am configuring a Linux machine (R.H. 8.0) and I could join the 
Linux machine to the Windows LAN,I followed the tests from a pdf I 
downloadedd from samba.org about how to configure and test such an 
installation, but the problem is , that the Linux machine cannot access 
the shared directories in the Windows machines, the error I get seems to 
be related with permissions but I don't understand why ,on the other 
way, I can access the public directory in the Linux machine from a 
Windows machine...

After checking in HOW-TO's and in the documents I have downloaded I 
can see nothing that helps me out I wonder if someone could give me 
a hint about which the problem could be. The machines in the WIndows LAN 
are all Win2k.


Regards,

  Juan






Re: [Samba] smbstatus+info

2002-12-19 Thread Marian Mlcoch, Ing
Try run on server and yuo say

Smbstatus list info about file server that not list logged users if this not
attempt any share resource on server.
And this users can be disconnect by timeout then is relative connected to
share but not in list.

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 9:02 AM
Subject: [Samba] smbstatus+info


 hello all,

   can u help me with some details abt smbstatus program.
 i read the man page which tells in a brief that it is run to know
 the current connections.

 wat is this term current connections...anyone can help me out with
 some details pls...

 does it really mean the current clients in samba server(who r all
 logged in/authentecated in PDC).

 pls help me with details

 thanks in advance.
 prasad

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

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



Re: [Samba] Odd problems with XP

2002-12-19 Thread Marian Mlcoch, Ing
Your problem is complicated browsing with NT and samba.
Reason:
1. Use on your network on all machines and servers only one!! protocol
TCPIP.
2. Configure WINS server on NT PDC or BDC machine
3. In config tcpip on all clients set wins server to created IP.
4. In all samba server or clients set in smb.conf wins server = IP...

REM If need another protocol as netbeui or ipx on server or clients yuo must
disable browsing features for this protocols in regedit or confs...

Thats all.


- Original Message -
From: Neal Lawson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 9:33 PM
Subject: [Samba] Odd problems with XP


 I have one Samba server with my Raid 5 can on it, and a NT 4 PDC and
 BDC, and im running samba 2.2.7, for most of my clients browsing the
 shares is just fine, but on some browsing the shares hangs or takes a
 long time to return with a result

 here is my smb.conf file:


 [global]
 netbios name = xx
 load printers = no
  workgroup = XXX
  encrypt passwords = Yes
  security = domain
  allow trusted domains = yes
  password server = 
 time server = Yes
 socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=4096
 SO_SNDBUF=4096
 os level = 34
 name resolve order = wins hosts bcast
 write raw = yes
 read raw = yes
  hide files =

/:2eDS_Store/resource.frk/TheFindByContentFolder/TheVolumeSettingsFolder/Des
ktopFolderDB/Network
 Trash Folder/resource.frk/.*/
 oplocks = yes
 max xmit = 65535
 level2oplocks = yes
 dead time = 7
 getwd cache = yes
 nt acl support = no


 [private]
 comment = Private Storage for %U
 path = %H/private
  create mode = 0600
  directory mode = 0700
  valid users = %U
 follow symlinks = yes
 writeable = yes

 [public]
 comment = Public Storage for %U
 path = %H/public
  create mode = 0600
  directory mode = 0700
  valid users = %U
 follow symlinks = yes
 writeable = yes

 [web]
 comment = Web root for %U
 path = %H/web



 Thanks for any help

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

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



Re: [Samba] How important are oplocks?

2002-12-19 Thread Marian Mlcoch, Ing
Thanks Jim for best report of oplock as i read.
Super can be if you can add info or link about list of dangerous database
engines for oplocks...
Btw.  Foxpro 2.6 = is ok.
  Foxpro 7.. = bad.
  Clipper=  dangerous...
exist this list for off oplocks?



- Original Message -
From: Jim Morris [EMAIL PROTECTED]
To: Bob Puff@NLE [EMAIL PROTECTED]
Cc: Jean-Paul ARGUDO [EMAIL PROTECTED]; Joel Hammer
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 6:02 PM
Subject: Re: [Samba] How important are oplocks?


 On Wed, 2002-12-18 at 09:52, Bob Puff@NLE wrote:

  If Samba is corrupting the data files, then why wouldn't this be turned
OFF by
  default?  I would think data corruption would be a major, MAJOR problem,
and
  reduce the usability of Samba.  Is this really true?

 It comes down to the fact that Samba is faithfully mimicking a Windows
 NT/2000 server.  Windows NT and Windows 2000 servers *BY DEFAULT* also
 have OPLOCKS enabled.  Oplocks provide a *SIGNIFICANT* performance boost
 for network file operatings when a single user is accessing a file. They
 allow the *CLIENT* machine to basically cache the file locally, just
 like caching a local file on a local hard drive.  Writes to the file are
 cached as well.

 Where oplocks cause problems is when a second client wants to open the
 same file (as in a shared file database).  Then the Samba/NT/2000 server
 must issue what is called an 'oplock break request' to the first client
 that has oplocks on the file.  The client is supposed to then flush any
 changes to disk, and release the oplocks on the file.  The server must
 then wait on this to happen before the second client can be granted
 access to the file.

 Problems arise when the client takes too long to respond, or fails to
 respond to the oplock break request from the server.  The second client
 sees a long delay in opening the file.  Furthermore, if file IS opened
 by the second client and the first client never responded, or responds
 after the timeout occurs, then you can end up with file corruption, as
 the first client finally flushes changes to disk, after the second
 client has read the now outdated data, and is using it.

 Regardless of the problems, the fact of the matter is that if Samba does
 not enable oplocks by default, just as Windows NT and 2000 servers do,
 then Samba servers yeild much lower performance for many server file
 operations performed by the typical Windows network client.  You would
 have everyone screaming about how slow the network is, and Samba would
 come nowhere near the performance of Windows NT/2000 servers in
 benchmarks.

 I have been using shared file databases on Windows NT and Windows 2000
 servers for years now (dBASE files).  For all customer installs, we
 *MUST* disable oplocks on the NT/2000 servers in order to maintain
 database integrity.  So this problem is not unique to Samba.  Samba
 handles it much more gracefully than NT/2000 do! On NT/2000 servers, you
 have to edit a registry key that disables oplocks globally on the entire
 server. With Samba, I can disable them on a share or file wildcard
 pattern basis, using the 'veto oplock files' option in smb.conf.

 The user that compared Samba with/without oplocks to his Netware
 server's performance is not comparing apples to apples.  Samba clients
 are using the Windows Networking client - and really can only be
 compared to a comparably equipped and configured Windows NT/2000
 server.  Netware servers require the use of a Netware client package.
 The Netware client has an entirely different implementation of locking
 mechanisms, caching algorithms, and the entire network protocol and file
 sharing model is different.  As is the Netware server.

 I think most experts that have ever researched the topic will agree that
 for sheer file serving performance, nothing can beat Netware.
 Historically anyway.  I've not seen any benchmarks that included Netware
 in a few years.  Where Netware falls down is in 3rd party support (these
 days), and the ability to run general purpose applications on your
 server.  Plus, the server and client licenses are a LOT more expensive
 than a Samba server solution.

 I'll hazard a bet that if one were to examine the Netware IPX/SPX
 protocol, it is nowhere nearly as convoluted and ad-hoc as the SMB
 protocol, which Microsoft hodge-podged together.  You really have to
 step back and think about the amount of effort involved by the Samba
 Team in faithfully reverse engineering and reproducing all the intricate
 details of a protocol that is such a mess!

 Keep up the good work, 'Team Samba'!
 --
 /---
 | Jim Morris  |  Email: [EMAIL PROTECTED]
 | |AIM: JFM2001
 \---

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

-- 
To unsubscribe from this list 

[Samba] Trust relationship.

2002-12-19 Thread Juan Rosell
Hi,

 we have a trust relationship between servers in the 2 LAN's of my 
company, my problem is that (even with problems as I commented in a 
previous mail) I have somekind of access to the LAN where my Linux 
machine is connected to, but not to the trusted LAN.  Could someone 
give me a hint about how to get this?  Any kind of documentation would 
be helpful

Regards,

Juan

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


Re: [Samba] Trust relationship.

2002-12-19 Thread Marian Mlcoch, Ing
Try write more info about your nets...
How servers routers yu use ...
Best is graficaly as

LAN1 (client w2k 1,2,3,4 server 2k server linux) - router - ??? - router -
LAN2 ...



- Original Message -
From: Juan Rosell [EMAIL PROTECTED]
To: samba [EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 11:03 AM
Subject: [Samba] Trust relationship.


 Hi,

   we have a trust relationship between servers in the 2 LAN's of my
 company, my problem is that (even with problems as I commented in a
 previous mail) I have somekind of access to the LAN where my Linux
 machine is connected to, but not to the trusted LAN.  Could someone
 give me a hint about how to get this?  Any kind of documentation would
 be helpful

  Regards,

 Juan

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

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



Re: [Samba] creating read/write files for everyone from a SAMBAclient

2002-12-19 Thread M. D. Chappell
On Thu, 2002-12-19 at 05:16, Ron Smith wrote:
 Can anyone tell me what to include or change in my 'smb.conf' files to 
 enable anyone accessing a 'SAMBA' server share to have '777' permissions for 
 directories, and '666' permissions on files they create, move or copy there?
 
 I have two SAMBA servers running; one on an IRIX machine and the other on a 
 'Linux' machine in a LAN environment. The folks on the Win boxes can create 
 files on both machines, but I want the permissions on the directories and 
 files they create on the SAMBA servers to be accessable to eveyone else on 
 the LAN.

For the relevant shares add the following

force directory mode = 0777
force create mode = 0666



Mark


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



[Samba] How do I get Samba to ignore SIDs in non-Domain workgroup?

2002-12-19 Thread lcea mdx
Half of my Win2K clients won't authenticate on my Samba 2.2.6a box on RH8.

I installed Win2K from two different Ghost images but I haven't run
sidgen -- the half that dont authenticate all came from the same image.

The other clients authenticate OK.

All the clients have the same username/passwd and smb.conf has:

[global]
   security = user

The clients are not part of a domain and dont use a WINS server.

Is there any way I can get Samba to disregard the different SIDs?

THX

_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


[Samba] Annoying Printer problem...Samba 2.2.7a on Debian 3.0 with lprng

2002-12-19 Thread Gareth Davies
Hi all,

Have got Winbind working again successfully on another box, but this time
the printer won't work, it worked fine last time.

The printer installs fine, and it lets me print to it, but nothing comes out
on the printer, no sign of anything being sent to it.

I think it's a permissions problem or something...but I've not much clue
when it comes to printing on *nix how it actually works.

/etc/printcap:

LJ4500N:\
 :sd=/var/spool/lpd/lj4500n:\
 :mx#0:\
 :rm=192.168.2.20:\
 :done_jobs=0:\
 :rp=:\
 :sh:

Relevant lines from smb.conf:

 printer admin = root, @DOMAIN+IT, @lpd
printing = lprng
lpq command = /usr/bin/lpq -P %p
lprm command = /usr/bin/lprm -P %p %j
lppause command = /usr/sbin/lpc hold %p %j
lpresume command = /usr/sbin/lpc release %p %j
queuepause command = /usr/sbin/lpc stop %p
queueresume command = /usr/sbin/lpc start %p


# HP Laserjet 4500N Share.
[lj4500n]
comment = HP LaserJet 4500N
path = /var/spool/samba
read only = No
  # guest ok = Yes
printable = Yes
print command = lpr -P lj4500n -r %s -h; rm %s
printer name = lj4500n
oplocks = No
share modes = No
admin users = @Domain+IT,
valid users = @Domain+Domain Users
create mask = 770

# Hidden printer drivers share.
[print$]
path = /usr/printers
admin users = root @lp, @Domain+IT
write list = root @lp, @Domain+IT
create mask = 0755
guest ok = Yes

The drivers never seem to load from print$ either.

I can install the printer, but can't for the life of me get anything to
print, can't find any relevant log messages in /var/log/lpd.* or anywhere
else either.

Any suggestions as always much appreciated.

Shaolin



*
This email has been checked by the altohiway e-Sweeper Service
*

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



[Samba] Profiles and Win2000

2002-12-19 Thread Fridtjof Busse
Hi
I still have a problem with Windows 2000 SP2 and Samba 2.2.7a:
I set DeleteRoamingProfiles to 1 and deleted all old profiles.
Now Windows sometimes creates/backups a local profile for every user 
*and* every login, e.g.:
user.domain, user.domain.000, user.domain.001, user.domain.002...
I thought they were deleted after setting csc policy = delete, but 
they aren't.
Found some reports about this phenomenon, but no fix.
Any more hints?
-- 
Fridtjof Busse
BOFH excuse #236:
Fanout dropping voltage too much, try cutting some of those little 
traces
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Samba pdc, Norton Ghost enterprise edition and joinin g the domain?

2002-12-19 Thread Lars O. Grobe
 You could try a batch file with

 NETDOM /Domain:MYDOMAIN /user:adminuser /password:apassword MEMBER
   MYCOMPUTER /JOINDOMAIN

 Then

 NETDOM /Domain:MYDOMAIN MEMBER MYCOMPUTER /JOINDOMAIN

 search microsoft.com for comand line join domain for more info.

 Bob

Hi Bob!

Thank you, we will try this. The problem is that we need a batch file to do 
this, wich must be copied to the client and contains username and password of 
an account with root permissions. This file will be deleted after successful 
completion, but it's not really nice to do these things...

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



Re: [Samba] samba to samba via LDAP

2002-12-19 Thread Bradley W. Langhorst
On Wed, 2002-12-18 at 16:34, jeff wrote:
 Hi all,
 
 I have lots of samba servers and want them to all authenticate against a 
 single password file which will be a LDAP database. 
 
 Where I want to be:
 
 Login to a domain called FROST that passes the username:passwd to a domain 
 called ACR which checks LDAP.
 
 Where I'm at:  
 
 I can login (from a W2K machine) to a test server called LIBIT which uses LDAP 
 beautifully (after long hours/days of profanity).  I can also join/login to 
 the samba domains called ACR (anytime) and FROST (if I change passwd server 
 and security settings to a stand alone).
 
 I have 2 samba servers I'm testing out with the goal of passing 
 passwords...the servers are FROST and the authenticating server is called 
 ACR.  I know that the login:passwd pair is being passed from FROST to ACR. 
...
 any help would be wonderfulunless your a RTFM person because I wouldn't 
 have gotten this far if I hadn't.

Why not just have both servers authenticating against a common ldap
store?

It sounds like you want to run something like winbind (but against a
samba DC not a windows DC) on your secondary server.  I'm not sure that
is possible.

brad 

-- 
Bradley W. Langhorst [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] private user accounts

2002-12-19 Thread Trey Nolen
You are connected to some shares with one username and password (presumably
the one you logged into windows with) and then you are trying to connect to
the private share with another username/password. You can't do that.  You
can log into windows with one username and connect to shares with another,
but all the shares must be connected with the same user.  If you have login
scripts that automatically map drives, you will probably have to log into
windows with the privateuser/password.

Trey Nolen

- Original Message -
From: ligeo george [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 12:04 AM
Subject: [Samba] private user accounts


 hello guys.. I have put up a share for a particular
 user. The user can access the directory from linux
 boxes using 'smbclient //IP/share -U privateuser . But
 cant do it from a windows machine. When I provide the
 privateuser,password, i get the error 'The credentials
 supplied conflict with an existing set of
 credentials.' Why is this?

 Thanks for the help.



 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  http://lists.samba.org/mailman/listinfo/samba


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



[Samba] Does Samba attempt Anonymous logon to IPC$ shares? Can this lockout accounts?!?

2002-12-19 Thread lcea mdx
Hopefully someone can put my mind at ease...

I have about 10 W2K boxes with account lockout threshold of 5 failed logins 
and Additional Restrictions for Anonymous Connections set to 'No access w/o 
explicit anon. permissions' (Administrative Tools - Security Settings - 
Local Policies - Security Options)

I've set up a Samba server this week and in the past few days I've noticed 
that some user accounts have been locked out (and its not just people 
forgetting their password).

In /etc/samba/MACHINEONE.log I've got entries like this:

[2002/12/17 18:17:56, 0] 
rpc_client/cli_spoolss_notify.c:spoolss_connect_to_client(133)
connect to client: machine MACHINEONE rejected the tconX on the IPC$ share. 
Error was : NT_STATUS_ACCESS_DENIED.

And in the W2K Security Audit for MACHINETWO, I've got:

Success Audit 18/12/2002 18:55:57 Source:Security Category:Logon/Logoff 
Event:538 User:ANONYMOUS LOGON Computer:MACHINETWO


Unfortunately, I can't match up these two event types on a single machine 
because the logs and audits are incomplete (I've been switching the smbd log 
level and auditing isn't enabled on MACHINEONE  )

I just want to be able to track down the cause of this...

THX

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus

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


Re: [Samba] How important are oplocks?

2002-12-19 Thread Jim Morris
On Thu, 2002-12-19 at 03:56, Marian Mlcoch, Ing wrote:

 Thanks Jim for best report of oplock as i read.
 Super can be if you can add info or link about list of dangerous database
 engines for oplocks...
 Btw.  Foxpro 2.6 = is ok.
   Foxpro 7.. = bad.
   Clipper=  dangerous...
 exist this list for off oplocks?

Thanks. But unfortunately, its not that simple.I doubt for example that
one version of FoxPro will be good with oplocks, while another is bad. 
The entire problem with oplocks and shared-file databases such as dBASE,
FoxPro, Paradox, Access, etc, is with file caching on the client side
(the OPLCOCK), and that client system not breaking the oplock when
requested.  Even when the breaks do happen properly, the time to write
the file back out to the server may be significant, causing a LONG
delay on the 2nd client to open the file.

When you see oplock problems, I guess you could say it is more client-OS
and hardware dependant than it is on the software involve. It just so
happens that the type of software that runs into oplock related issues
most often is shared-file database software. Most other applications do
not have 2 or more users opening the same file at the same time on a
routine basis.
-- 
/---
| Jim Morris  |  Email: [EMAIL PROTECTED]
| |AIM: JFM2001
\---

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



Re: [Samba] How important are oplocks?

2002-12-19 Thread Jean-Paul ARGUDO
Super can be if you can add info or link about list of dangerous database
engines for oplocks...
Btw.  Foxpro 2.6 = is ok.
 Foxpro 7.. = bad.
 Clipper=  dangerous...
exist this list for off oplocks?

Thanks. But unfortunately, its not that simple.I doubt for example that
one version of FoxPro will be good with oplocks, while another is bad. 

Yes. Making such list is not a good idea I think.

Seems you all debate here of what the causes of the malfuntion could be 
(or are), and I think you didnt understand my point of view. Seems you 
arent considering all of the problem. (read above).

When you see oplock problems, I guess you could say it is more client-OS
and hardware dependant than it is on the software involve. 

So?...

 Most other applications do not have 2 or more users opening the same
 file at the same time on a routine basis.

Sure. But you can't forbid people to drive because one of them maybe one 
day will drive drunk :-)

I mean, in a production environment, It cant be half answers. It works 
or it doesnt. Thats my point of view.

It is really interesting to know more about oplocks, why it works or 
not, why this client OS, this application will fail with oplocks on.
And I really thank you all to share your knowledge on this!

But, again, I cant bet on a technology. I'm not playing poker and cant 
do it with files where maybe all the business of my company is based on. 
Thats why I've disabled oplocks.

I'm DBA maybe you'll understand why my principal fear is data loss. :-)


Thanks all again.


--
Jean-Paul ARGUDO

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


Re: [Samba] How important are oplocks?

2002-12-19 Thread Jim Morris
On Thu, 2002-12-19 at 07:41, Jean-Paul ARGUDO wrote:

 But, again, I cant bet on a technology. I'm not playing poker and cant 
 do it with files where maybe all the business of my company is based on. 
 Thats why I've disabled oplocks.

I have had it disabled on all shared-file database extensions I know of
for years, while allowing it to be used for other files (Word docs for
example).  You do it selectively using the 'veto oplock files' option,
globally or for a share:

veto oplock files = /*.DBF/*.dbf/*.MDX/*.mdx/*.ITB/*.itb/*.MDB/*.mdb/

You get the picture. it is a slash (/) separated list of filename or
filename patterns

-- 
/---
| Jim Morris  |  Email: [EMAIL PROTECTED]
| |AIM: JFM2001
\---

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



Re: [Samba] Profiles and Win2000

2002-12-19 Thread Arno Gramatke
Hi,

FB I still have a problem with Windows 2000 SP2 and Samba 2.2.7a:
FB I set DeleteRoamingProfiles to 1 and deleted all old profiles.

I think the correct registry key is DeleteRoamingCache. Take a look
at http://www.winguides.com/registry/display.php/142/

FB Now Windows sometimes creates/backups a local profile for every user 
FB *and* every login, e.g.:
FB user.domain, user.domain.000, user.domain.001, user.domain.002...
FB I thought they were deleted after setting csc policy = delete, but
FB they aren't.

I'm not sure, but i think that csc policy = ... has got nothing to
do with the deletion of profiles on the clients.
See http://de.samba.org/samba/docs/man/smb.conf.5.html#CSCPOLICY
Apart from that you should set csc policy = disable for the profile
share, to prevent windows client from offline(!) caching (this is not to be
confused with saving the profile back to the server) the profiles. You
might have noticed some entries in the event log, stating that there
might be a problem with offline caching on the profile share).

So, the only thing you need to do, is set the correct registry key and
delete all old profile on the clients. Of course you have to make
sure, that the profiles share is writable.

Hope this helps.

cu
 Arno


-- 
Arno Gramatke
ZLW/IMA der RWTH Aachen
Dennewartstraße 27, D-52068 Aachen
Telefon: +49 241 80-911-27

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



[Samba] Help : Samba 2.2.7a inlcude generates an error

2002-12-19 Thread Gerd-Christian Michalke
Hello !

OK : I have set up samba 2.2.7a on a Cobalt RaQ 550. Hand compiled etc... it 
works ok.

Now, I have set up netbios aliases in order to specify different shares to 
appear when you select differnet shares.

My main smb.conf :

[global]
   workgroup = SERVEUR
   netbios name = PILS
   netbios aliases = carotte cobalt vlouchi
;   wins server = 192.168.0.200
   include = /etc/samba/smb.%L.conf
   wins support = no
   server string = Cobalt RaQ
   os level = 32
   security = user
   socket options = TCP_NODELAY
   max log size = 5000
   veto files = /Network Trash Folder/
   encrypt passwords = yes
   debug level = 1
;   guest account = ftp
   domain master = yes
;
[homes]
   comment = Home Directories
   browseable = no
   read only = no
   create mask = 0755

and a sample smb.carotte.conf
[carotte]
comment = Site Web Carotte
path = /home/.sites/143/site2
writeable = yes
browseable = yes
valid users = @site2

I can go on every netbios alias but carotte. When I put the carotte share 
directly in the main smb.conf, it works, and when I put the carotte share in 
comment it works to.

But, in the other case, when the file is actually included, Win2K tells me 
that it cannot find the network path.

Can someone help me ?

Kind regards,
Gerd
--
--
[EMAIL PROTECTED]\\_//
 (. .)   Powered by SuSE Linux 8.1   
---oOOo-oOOo--

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



Re: [Samba] samba to samba via LDAP

2002-12-19 Thread jeff
 Why not just have both servers authenticating against a common ldap
 store?

That would be the same desired result. Know any way I could have a real-time 
single LDAP store on a single machine and have everything auth against it?

I've thought about just doing a scp of the .gdbm files, but that's just 
another point of failure.

Any ideas would be tried.

thanks,

jeff



On Thursday 19 December 2002 07:25 am, Bradley W. Langhorst wrote:
 On Wed, 2002-12-18 at 16:34, jeff wrote:
  Hi all,
 
  I have lots of samba servers and want them to all authenticate against a
  single password file which will be a LDAP database.
 
  Where I want to be:
 
  Login to a domain called FROST that passes the username:passwd to a
  domain called ACR which checks LDAP.
 
  Where I'm at:
 
  I can login (from a W2K machine) to a test server called LIBIT which uses
  LDAP beautifully (after long hours/days of profanity).  I can also
  join/login to the samba domains called ACR (anytime) and FROST (if I
  change passwd server and security settings to a stand alone).
 
  I have 2 samba servers I'm testing out with the goal of passing
  passwords...the servers are FROST and the authenticating server is called
  ACR.  I know that the login:passwd pair is being passed from FROST to
  ACR.

 ...

  any help would be wonderfulunless your a RTFM person because I
  wouldn't have gotten this far if I hadn't.

 Why not just have both servers authenticating against a common ldap
 store?

 It sounds like you want to run something like winbind (but against a
 samba DC not a windows DC) on your secondary server.  I'm not sure that
 is possible.

 brad

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



Re: [Samba] How important are oplocks?

2002-12-19 Thread Jim Morris
On Thu, 2002-12-19 at 08:20, Jean-Paul ARGUDO wrote:

 I read this option in smb docs. Looks great. But in my case, since I 
 have users yet only working on M$ Office standard, to put a veto for 
 oplocks on .doc and .xls files equals disable oplocks :-))

I understand.

 Other question: is veto oplock files really case sensitive?
 Couldn't you put some regexp here? SMB dev= Is this supported?

Case sensitivity depends on how you have the 'case sensitive' option of
Samba configured   the default is NO. I have both cases, but maybe
it is not necessary. And no - the option does not use regexp style
expressions - just ? and * wildcard characters.  Look at 'veto
files' for the rules on these expressions


-- 
/---
| Jim Morris  |  Email: [EMAIL PROTECTED]
| |AIM: JFM2001
\---

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



Re: [Samba] Help adding Samba users on unix

2002-12-19 Thread Gerd-Christian Michalke
On Donnerstag, 19. Dezember 2002 16:30, Bill Miller wrote:
 Could someone help me with this?

 My Unix Administrator no longer works here.
 Thanks

Hello !

I suppose you local users.

You nee to create users on a unix basis

useradd -m the_user

set his password

passwd the_user

which will ask you a password

and on the sambabasis

smbpasswd -a the_user

which will ask you a password too

If you need more info, just ask

HTH
Gerd


 Bill Miller
 ROSS Marketing, Inc.
 Directory of Technology
 (319) 294-8080 Office mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 (319) 294-8111 Fax
 (319) 551-9848 Mobile mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]  up to 100 chars

-- 
--
[EMAIL PROTECTED]\\_//
 (. .)   Powered by SuSE Linux 8.1   
---oOOo-oOOo--

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



[Samba] Help adding Samba users on unix

2002-12-19 Thread Bill Miller




Could someone help 
me with this?

My Unix 
Administrator no longer works here.
Thanks
Bill Miller ROSS 
Marketing, Inc. Directory of 
Technology (319) 294-8080 Office mailto:[EMAIL PROTECTED] 
(319) 294-8111 Fax (319) 551-9848 Mobile mailto:[EMAIL PROTECTED] 
up to 100 chars 



[Samba] Re: max log size setting ignored

2002-12-19 Thread Tom Schaefer
Thanks but no thanks.  I've got literally hundreds of users.  As I write this message 
there are 424 unique users using my samba server.  I don't want hundreds and hundreds 
of little log files.  I want one BIG log file.

It should be no-brainer, in the [global] section of smb.conf I have:

log level = 1
max log size = 0

But, no matter what I set max log size to, be it 0 or a big number, it is always 
ignored and the log.smbd is always ended at 5 Meg.

I doubt I'm going to get any support, you'll all write and say it works fine for me 
or you must be doing something wrong but oh well.  In fact, when I did a little 
digging into it a while back running samba on my workstation which is also 
Sparc/Solaris the parameter did in fact seem to work ok.  But that was with a basic 
smb.conf and a load of 1 user (me) testing from my Windows 2000 box.

It just doesn't work on my server.  :(

I guess, all I'm asking is that if anybody else has seen this problem, please speak up.

Thankyou,
Tom Schaefer

 You might try setting in your smb.conf [globals]:
   log file = /var/log/samba/log.%m
   max log size = 100
   log level = 1
 
 Should keep the log file  100 Kb per client.
 
 This works for me.
 
 - John T.
 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Profiles and Win2000

2002-12-19 Thread Fridtjof Busse
On Thursday 19 December 2002 16:28, Arno Gramatke wrote:
 Hi,

 FB I still have a problem with Windows 2000 SP2 and Samba 2.2.7a:
 FB I set DeleteRoamingProfiles to 1 and deleted all old profiles.

 I think the correct registry key is DeleteRoamingCache. 

Sorry, typo. I used DeleteRoamingCache

 FB Now Windows sometimes creates/backups a local profile for every
 FB user*and* every login, e.g.:
 FB user.domain, user.domain.000, user.domain.001, user.domain.002...
 FB I thought they were deleted after setting csc policy = delete,
 FB but they aren't.

 I'm not sure, but i think that csc policy = ... has got nothing to
 do with the deletion of profiles on the clients.
 See http://de.samba.org/samba/docs/man/smb.conf.5.html#CSCPOLICY
 Apart from that you should set csc policy = disable for the profile
 share, to prevent windows client from offline(!) caching (this is not
 to be confused with saving the profile back to the server) the
 profiles. You might have noticed some entries in the event log,
 stating that there might be a problem with offline caching on the
 profile share).

User store their Profiles in ~/.Profiles (which works fine), I just need 
to get rid of any local copies on the client.
After the patch and the deletion of the profiles, it looked like the 
local profile would get deleted, but after some logins and logout, 
those .000/.001 profiles appeared.

-- 
Fridtjof Busse
NT is the only OS that has caused me to beat a piece of hardware to
death with my bare hands.  
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Re: Samba 3alpha20 Bugs (FreeBSD 4.6)

2002-12-19 Thread Laurent Hofmann
Nothing to say about that :-/ ?




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



[Samba] Generic smb.conf file

2002-12-19 Thread Minh Duong
Hi,

Does anybody know where I can get an untouched
smb.conf file?  When I used samba-swat, it rewrote
smb.conf and deleted out the comments that was in the
original file that came with samba.

Minh

--- [EMAIL PROTECTED] wrote:
 Send samba mailing list submissions to
   [EMAIL PROTECTED]
 
 To subscribe or unsubscribe via the World Wide Web,
 visit
   http://lists.samba.org/mailman/listinfo/samba
 or, via email, send a message with subject or body
 'help' to
   [EMAIL PROTECTED]
 
 You can reach the person managing the list at
   [EMAIL PROTECTED]
 
 When replying, please edit your Subject line so it
 is more specific
 than Re: Contents of samba digest...
 
 
 Today's Topics:
 
1. max log size setting ignored (Tom Schaefer)
2. Re: ownership of smbfs mounts (M. D. Chappell)
3. Samba with Global File System (Montgomery
 Mouw)
4. Scrambled Jobnames when Printing
 (Gavin-Francis Fernandes)
5. Re: samba and ipchains (Joel Hammer)
6. Re: Odd problems with XP (Joel Hammer)
7. Re: Scrambled Jobnames when Printing (Joel
 Hammer)
8. Large File support not quiet working.. (CHS)
9. Re: max log size setting ignored (John H
 Terpstra)
   10. Re: How important are oplocks? (Brad)
   11. Re: Create time changing by itself? (Timo
 Sirainen)
   12. Re: ownership of smbfs mounts (Hidong Kim)
   13. creating read/write files for everyone from a
 SAMBA client (Ron Smith)
   14. Creating read/write directories and files for
 everyone from an smb client (Ron Smith)
   15. =?GB2312?B?s8/V97T6wO0=?=
 (=?GB2312?B?0tfN+A==?=)
   16. private user accounts (ligeo george)
   17. smbstatus+info ([EMAIL PROTECTED])
   18. Samba 3alpha20 Bugs (FreeBSD 4.6) (Laurent
 Hofmann)
   19. Re: Connection Refuse (Ray Simard)
   20. Help with SAMBA configuratin. (Juan Rosell)
   21. Re: smbstatus+info (Marian Mlcoch, Ing)
   22. Re: Odd problems with XP (Marian Mlcoch, Ing)
   23. Re: How important are oplocks? (Marian Mlcoch,
 Ing)
   24. Trust relationship. (Juan Rosell)
   25. Re: Trust relationship. (Marian Mlcoch, Ing)
   26. Re: creating read/write files for everyone
 from a SAMBA
client (M. D. Chappell)
   27. How do I get Samba to ignore SIDs in
 non-Domain workgroup? (lcea mdx)
   28. Annoying Printer problem...Samba 2.2.7a on
 Debian 3.0 with lprng (Gareth Davies)
   29. Profiles and Win2000 (Fridtjof Busse)
 
 --__--__--
 
 Message: 1
 Date: Wed, 18 Dec 2002 16:14:08 -0600
 From: Tom Schaefer [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [Samba] max log size setting ignored
 
 I work at a university and we are in the process of
 moving basically everything, and I mean everything
 to samba, eg.:
 
 bash-2.03$ /usr/local/samba/bin/smbstatus | wc -l
 1669
 
 As you might imagine my log.smbd grows quite
 rapidly.  Even at log level 1 it routinely exceeds 5
 Meg. a day and then is renamed log.smbd.old and a
 new log.smbd is created.  NO MATTER WHAT I SET max
 log size equal to!  Be it a large value like 30
 which is what I want, or 0 for infinite, its just
 always seems to be ignored and the default 5000 is
 always in effect.
 
 Is anybody else experiencing this?  I have a feeling
 it has to do with the sheer load this server
 experiences and/or the complexity of the smb.conf
 file although its really not THAT complex.  I'm
 doing the dual personality thing with
 include = /usr/local/samba/lib/%L.smb.conf and make
 a lot of use of %U and %G and a bit of %S and some
 force user and some force group and root
 prexec and root prexec close but REALLY NOTHING
 THAT complicated and EVERYTHING works perfectly
 except for the max log size setting.
 
 This used to happen when I used to build Samba with
 gcc on Solaris and it still happens although now I
 use Sun's Forte compiler.  I've been annoyed by this
 version after version of Samba and everytime I
 upgrade I always eagerly check if my log files will
 grow beyond 5 Meg and they never do.  I just
 upgraded to 2.2.7 last week and am still
 experiencing this problem so I've decided to finally
 post about it.
 
 Tom Schaefer
 
 I
 
 --__--__--
 
 Message: 2
 Subject: Re: [Samba] ownership of smbfs mounts
 From: M. D. Chappell [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Date: 18 Dec 2002 22:39:12 +
 
 On Wed, 2002-12-18 at 21:04, Hidong Kim wrote:
  If I put the mount statement into 
  /etc/fstab as
  
  //windows1/public /home/windows1 smbfs
 username=me,password=pass 0 0
  
  
  and then do 'mount -a' as root, the ownership of
 /home/windows1 changes 
  to root:root.  How can I put the mount command
 into /etc/fstab, and 
  maintain me:users ownership of the mount point? 
 Thanks,
 
 Try 
 //windows1/public /home/windows1 smbfs
 username=me,password=pass,uid=uid,gid=gid 0 0
 
 by uid  gid I mean the numbers not the names.
 
 
 Mark Chappell
 
 
 --__--__--
 
 Message: 3
 Reply-To: [EMAIL PROTECTED]
 From: Montgomery Mouw [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Date: Wed, 18 Dec 2002 16:45:57 -0600
 Subject: [Samba] Samba 

[Samba] Previous questions about Samba 3.0alpha PDC

2002-12-19 Thread Jonas Oberg
In a few previous mails, I've asked questions about the PDC support in
Samba 2.2.7a and 3.0alpha respectively, but have not received any
replies. Perhaps there are better lists where one could ask such
questions?

-- 
Jonas Öberg
Systems administrator/webmaster, Department of Informatics,
School of Economics and Commercial Law, Gothenburg University.
Phone. +46-31-7732717, Fax. +47-31-7734754
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Keeping Ownership and Permissions

2002-12-19 Thread Roger Miranda (Sumac)
Every time a user goes and updates a file on a share, it overwrites the
Ownership and permissions.

Ownership should be root with AR as the group. Permission for group to
write to file gets lost. Is there anything I can do to fix this?

Thanks,

Roger Miranda
Sumac Clothing Company
www.sumaclothing.com 


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



Re: [Samba] Odd problems with XP

2002-12-19 Thread Neal Lawson




I Do have a central WINS server running and the PDC, BDC, the Samba
box, and the XP client know about the wins server


Marian Mlcoch, Ing wrote:

  Your problem is complicated browsing with NT and samba.
Reason:
1. Use on your network on all machines and servers only one!! protocol
TCPIP.
2. Configure WINS server on NT PDC or BDC machine
3. In config tcpip on all clients set wins server to created IP.
4. In all samba server or clients set in smb.conf wins server = IP...

REM If need another protocol as netbeui or ipx on server or clients yuo must
disable browsing features for this protocols in regedit or confs...

Thats all.


- Original Message -
From: "Neal Lawson" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 9:33 PM
Subject: [Samba] Odd problems with XP


  
  
I have one Samba server with my Raid 5 can on it, and a NT 4 PDC and
BDC, and im running samba 2.2.7, for most of my clients browsing the
shares is just fine, but on some browsing the shares hangs or takes a
long time to return with a result

here is my smb.conf file:


[global]
netbios name = xx
load printers = no
 workgroup = XXX
 encrypt passwords = Yes
 security = domain
 allow trusted domains = yes
 password server = 
time server = Yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=4096
SO_SNDBUF=4096
os level = 34
name resolve order = wins hosts bcast
write raw = yes
read raw = yes
 hide files =


  
  /:2eDS_Store/resource.frk/TheFindByContentFolder/TheVolumeSettingsFolder/Des
ktopFolderDB/Network
  
  
Trash Folder/resource.frk/.*/
oplocks = yes
max xmit = 65535
level2oplocks = yes
dead time = 7
getwd cache = yes
nt acl support = no


[private]
comment = Private Storage for %U
path = %H/private
 create mode = 0600
 directory mode = 0700
 valid users = %U
follow symlinks = yes
writeable = yes

[public]
comment = Public Storage for %U
path = %H/public
 create mode = 0600
 directory mode = 0700
 valid users = %U
follow symlinks = yes
writeable = yes

[web]
comment = Web root for %U
path = %H/web



Thanks for any help

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

  
  
  





Re: [Samba] Odd problems with XP

2002-12-19 Thread Rashkae
How does your Samba box know about the WINS server? (Unless, of course,
you neglected to post your *complete* smb.conf)


Dec 19  12:57pm


They hang the man and flog the woman
That steal the goose from off the common,
But let the greater villain loose
That steals the common from the goose.
  --English folk poem, circa 1764








On Thu, 19 Dec 2002, Neal Lawson wrote:

I Do have a central WINS server running and the PDC, BDC, the Samba box,
and the XP client know about the wins server


Marian Mlcoch, Ing wrote:

Your problem is complicated browsing with NT and samba.
Reason:
1. Use on your network on all machines and servers only one!! protocol
TCPIP.
2. Configure WINS server on NT PDC or BDC machine
3. In config tcpip on all clients set wins server to created IP.
4. In all samba server or clients set in smb.conf wins server = IP...

REM If need another protocol as netbeui or ipx on server or clients yuo must
disable browsing features for this protocols in regedit or confs...

Thats all.


- Original Message -
From: Neal Lawson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 9:33 PM
Subject: [Samba] Odd problems with XP




I have one Samba server with my Raid 5 can on it, and a NT 4 PDC and
BDC, and im running samba 2.2.7, for most of my clients browsing the
shares is just fine, but on some browsing the shares hangs or takes a
long time to return with a result

here is my smb.conf file:


[global]
netbios name = xx
load printers = no
 workgroup = XXX
 encrypt passwords = Yes
 security = domain
 allow trusted domains = yes
 password server = 
time server = Yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=4096
SO_SNDBUF=4096
os level = 34
name resolve order = wins hosts bcast
write raw = yes
read raw = yes
 hide files =



/:2eDS_Store/resource.frk/TheFindByContentFolder/TheVolumeSettingsFolder/Des
ktopFolderDB/Network


Trash Folder/resource.frk/.*/
oplocks = yes
max xmit = 65535
level2oplocks = yes
dead time = 7
getwd cache = yes
nt acl support = no


[private]
comment = Private Storage for %U
path = %H/private
 create mode = 0600
 directory mode = 0700
 valid users = %U
follow symlinks = yes
writeable = yes

[public]
comment = Public Storage for %U
path = %H/public
 create mode = 0600
 directory mode = 0700
 valid users = %U
follow symlinks = yes
writeable = yes

[web]
comment = Web root for %U
path = %H/web



Thanks for any help

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






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



Re: [Samba] Odd problems with XP

2002-12-19 Thread Neal Lawson




I'm sorry i in trying to hide sentivitve infomation i deleted those
lines so there they are with out the ip's

remote announce = 123.123.123.123/DOMAIN
wins server = 123.123.123.123
remote browse sync = 123.123.123.123

sorry


Rashkae wrote:

  How does your Samba box know about the WINS server? (Unless, of course,
you neglected to post your *complete* smb.conf)


Dec 19  12:57pm


They hang the man and flog the woman
That steal the goose from off the common,
But let the greater villain loose
That steals the common from the goose.
  --English folk poem, circa 1764








On Thu, 19 Dec 2002, Neal Lawson wrote:

I Do have a central WINS server running and the PDC, BDC, the Samba box,
and the XP client know about the wins server


Marian Mlcoch, Ing wrote:

  
  
Your problem is complicated browsing with NT and samba.
Reason:
1. Use on your network on all machines and servers only one!! protocol
TCPIP.
2. Configure WINS server on NT PDC or BDC machine
3. In config tcpip on all clients set wins server to created IP.
4. In all samba server or clients set in smb.conf wins server = IP...

REM If need another protocol as netbeui or ipx on server or clients yuo must
disable browsing features for this protocols in regedit or confs...

Thats all.


- Original Message -
From: "Neal Lawson" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 9:33 PM
Subject: [Samba] Odd problems with XP






  I have one Samba server with my Raid 5 can on it, and a NT 4 PDC and
BDC, and im running samba 2.2.7, for most of my clients browsing the
shares is just fine, but on some browsing the shares hangs or takes a
long time to return with a result

here is my smb.conf file:


[global]
netbios name = xx
load printers = no
workgroup = XXX
encrypt passwords = Yes
security = domain
allow trusted domains = yes
password server = 
time server = Yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=4096
SO_SNDBUF=4096
os level = 34
name resolve order = wins hosts bcast
write raw = yes
read raw = yes
hide files =



  

/:2eDS_Store/resource.frk/TheFindByContentFolder/TheVolumeSettingsFolder/Des
ktopFolderDB/Network




  Trash Folder/resource.frk/.*/
oplocks = yes
max xmit = 65535
level2oplocks = yes
dead time = 7
getwd cache = yes
nt acl support = no


[private]
comment = Private Storage for %U
path = %H/private
create mode = 0600
directory mode = 0700
valid users = %U
follow symlinks = yes
writeable = yes

[public]
comment = Public Storage for %U
path = %H/public
create mode = 0600
directory mode = 0700
valid users = %U
follow symlinks = yes
writeable = yes

[web]
comment = Web root for %U
path = %H/web



Thanks for any help

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


  




  
  
  





[Samba] Failed to delete entry for share

2002-12-19 Thread Ken McDonald
Hi All,

I'm having some minor trouble with an obscure samba feature. I'm using
the remote administration Server Manager features of smb.conf.
Specifically the add share command change share command and delete
share command. I've written a small C program to do the text-processing
portion of smb.conf file needed for each operation. The C program just
does simple changes and returns 0. The actual commands are defined in my
smb.conf as:

# remote administration
add share command= /usr/sbin/smbchangeshare /etc/samba/smb.conf.add
change share command = /usr/sbin/smbchangeshare /etc/samba/smb.conf.add
delete share command = /usr/sbin/smbchangeshare -d

(the extra parameters are used by my C program to do different things)

Adding shares works fine and changing the comments in shares works too.
However, when I delete shares from ServerManager, I get this message in
the samba log file:

[2002/12/19 12:16:13, 0]
rpc_server/srv_srvsvc_nt.c:delete_share_security(277)
  delete_share_security: Failed to delete entry for share w98bin

The delete operation does work though and the share is removed from the
smb.conf and no longer appears in NetworkNeighborhood.

Also, when I do a change share operation in ServerManager where I change
the path of an existing share, I get the same message in the samba log
file, but the change operation does not fully complete. The smb.conf
file portion completes OK (the part my C program does), but the
NetworkNeighborhood view of the sharename shows the previous path. So It
would work (show the updated path) if the samba server were restarted,
but does not do it dynamically like the delete operation does.

I've tested and duplicated this problem on WindowsXP using the old Nt4
serverManager and on Windows98SE using the win9x serverManager. The
results are the same for both, so I do not think it is a client-side
issue. Also, I've tried various sharenames, paths and comments with no
difference found. And I've seen the same behavior on shares created with
either serverManager or text-based smb.conf editing.

The one effect I have observed is that if go into ServerManager and
modify the Permissions on the soon-to-be-deleted, newly-created,
share, then the delete/change-path works ok and there is no error
message in the samba log file.

The Permissions are initially set to Everyone--FullControl. I can
eliminate the error by either adding another permission settings or
simply deleting the default Everyone setting, saving it, and then
recreating the exact same setting.

The actual error message come from the following section in the source:

rpc_server/srv_srvsvc_nt.c

static BOOL delete_share_security(int snum)
{
TDB_DATA kbuf;
fstring key;

slprintf(key, sizeof(key)-1, SECDESC/%s,
lp_servicename(snum));
kbuf.dptr = key;
kbuf.dsize = strlen(key)+1;

if (tdb_delete(share_tdb, kbuf) != 0) {
DEBUG(0,(delete_share_security: Failed to delete entry
for share %s\n,
lp_servicename(snum) ));
return False;
}

return True;
}

So It appears to me that some security setting is not getting setup for
shares correctly. Before I dig further into the sources, I thought maybe
some of you kind readers could help me out with this one.

Ken McDonald
Computer Geek Extraordinaire


Here is my current smb.conf. It is a work-in-progress.

[global]
# main settings
workgroup = TGA
server string = 

#security settings
security  = user
admin users   = root
hosts allow   = 10.0.0.0/255.255.255.0 127.0.0.1 except
10.0.0.1
hosts deny= all
interfaces= eth0 10.0.0.0/255.255.255.0 127.0.0.1
bind interfaces only  = yes
encrypt passwords = yes
smb passwd file   = /etc/samba/sambapasswd
#invalid users = root @wheel
hide unreadable   = yes
browseable= yes
utmp  = yes
add user script   = /usr/sbin/smbaddmachine %m$
allow trusted domains = no

# debug settings
log level= 0
log file = /var/log/samba/samba.log.%m
max log size = 1000

# performance options
oplocks= yes
level2oplocks  = yes
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=8192
SO_RCVBUF=8192

# domain controller settings
domain logons= yes
domain master= yes
preferred master = yes
local master = yes
os level = 99
logon drive  = H:
logon home   = \\%h\%U\.profiles
logon path   = \\%h\profiles\%U
logon script = ms.bat
wins support = yes
dns proxy= no

# name mangling
mangling method = hash2
case sensitive  = no
default case= lower
preserve case   = yes
short preserve case = yes

# remote administration
add share command= /usr/sbin/smbchangeshare

Re: [Samba] Help adding Samba users on unix

2002-12-19 Thread Bradley W. Langhorst
On Thu, 2002-12-19 at 10:30, Bill Miller wrote:
  
 Could someone help me with this?
add a new unix user
(dunno your unix - probably use 'adduser username' or maybe 'useradd
username')
import that user to samba
'smbpasswd -a usename'
 
set their passwords if you were not prompted
passwd username
smbpasswd username

 My Unix Administrator no longer works here.
should be easy to find a new one in this market...

brad
 
-- 
Bradley W. Langhorst [EMAIL PROTECTED]

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



[Samba] Samba Password and Synchronization

2002-12-19 Thread Mike_Sullivan
Does anyone know the best way to Sync up the Samba and Linux password with
either Windows 2000 Active directory or Novell NDS?




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



[Samba] Add Win2kPro Workstation to new Linux PDC

2002-12-19 Thread Kenneth Illingsworth
I created a new virtual Linux server running the Red Hat v7.2 distribution. After 
getting a MySQL/PHP application running, the next step was to add a Win2kPro 
Workstation to a new Linux PDC. Towards that end I modified the smb.conf file as 
described below to turn the virtual Linux server into a stand alone PDC. A 
'MACHINE.SID' was created in the /usr/local/samba/private directory. Additionally, I 
created some Linux users and populated the smbpasswd file with them. When I now try to 
use the Network Identification tab of my workstations system properties to add it to 
the domain, I get an error dialog indicating that the computer cannot be added to the 
domain because 'the account used was a computer account. Use a 'global user or local 
user account to access this server'. How can I make one of the accounts that was used 
to populate the smbpasswd file a 'Global User' in SAMBA?


[global]
smb passwd file = /usr/local/samba/private/smbpasswd
wins server = 172.16.0.121
domain master = True
encrypt passwords = yes
max log size = 0
interfaces = 172.17.60.6/255.255.255.0
printer = BHRSHP1
comment = Treasury Printer
username map = /etc/samba/user.map
path = /var/spool/lpd/BHRSHP1
printing = lprng
update encrypted = Yes
postscript = yes
oplocks = no
valid users = @Treasury,@illingsk,@ehmann,@wheel
socket options = TCP_NODELAY
admin users = @wheel
logon script = %U.bat
writeable = yes
map to guest = Bad User
domain admin group = @wheel
domain logons = Yes
printer admin = @ntadmin
server string = Samba %v  PDC on (%L).
workgroup = COFRNY
delete readonly = Yes
netbios name = COFR3
log file = /var/log/samba/%m.log
load printers = No
logon drive = H:
os level = 64
locking = no




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



[Samba] Desperate Help Required Getting SAMBA back on line

2002-12-19 Thread Dan Tappin



I am running SAMBA on Red Hat 
7.0 and after a bad upgrade my SAMBA server is dead. I ended up 
re-installing from the source and now my server is not accessible to our Win9x 
clients. smbstatus show the server running but no one on the network can 
see the server.

I am still a bit of a newbie 
and I am having trouble troubleshooting this. I really am in a jam and I 
need some help ASAP.

I am not sure where to 
start.

Thanks,

Dan


Re: [Samba] Profiles and Win2000

2002-12-19 Thread John H Terpstra
On Thu, 19 Dec 2002, Arno Gramatke wrote:

 Hi,

 FB I still have a problem with Windows 2000 SP2 and Samba 2.2.7a:
 FB I set DeleteRoamingProfiles to 1 and deleted all old profiles.

 I think the correct registry key is DeleteRoamingCache. Take a look
 at http://www.winguides.com/registry/display.php/142/

Correct. I added a registry update file to the ~samba/docs/Registry
directory called Win-NT-2K-XP-DeleteRoamingProfile.reg to cause all cached
roaming profiles to be deleted in log-out. It will be in the documentation
tree for Samba-3.0.0 when it ships. Meanwhile, those who want it will find
it on the CVS server.

- John T.


 FB Now Windows sometimes creates/backups a local profile for every user
 FB *and* every login, e.g.:
 FB user.domain, user.domain.000, user.domain.001, user.domain.002...
 FB I thought they were deleted after setting csc policy = delete, but
 FB they aren't.

 I'm not sure, but i think that csc policy = ... has got nothing to
 do with the deletion of profiles on the clients.
 See http://de.samba.org/samba/docs/man/smb.conf.5.html#CSCPOLICY
 Apart from that you should set csc policy = disable for the profile
 share, to prevent windows client from offline(!) caching (this is not to be
 confused with saving the profile back to the server) the profiles. You
 might have noticed some entries in the event log, stating that there
 might be a problem with offline caching on the profile share).

 So, the only thing you need to do, is set the correct registry key and
 delete all old profile on the clients. Of course you have to make
 sure, that the profiles share is writable.

 Hope this helps.

 cu
  Arno




-- 
John H Terpstra
Email: [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] Desperate Help Required Getting SAMBA back on line

2002-12-19 Thread Troy.A Johnson
Dan,

First things first, read the troubleshooting chapter:

http://us6.samba.org/samba/ftp/docs/Samba24Hc13.pdf

of this Samba book. It should set you on the way to a 
working Samba installation immediately. Good luck,

Troy

 Dan Tappin [EMAIL PROTECTED] 12/19/02 03:04PM 
I am running SAMBA on Red Hat 7.0 and after a bad upgrade my SAMBA server
is dead.  I
ended up re-installing from the source and now my server is not accessible
to our Win9x
clients.  smbstatus show the server running but no one on the network can
see the server.

I am still a bit of a newbie and I am having trouble troubleshooting this.
 I really am in
a jam and I need some help ASAP.

I am not sure where to start.

Thanks,

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



[Samba] Re: Samba problems with Sco Openserver

2002-12-19 Thread Adrian Stokes




- Original Message - 
From: Adrian Stokes 
To: John H 
Terpstra 
Sent: Wednesday, December 18, 2002 1:43 PM
Subject: Samba problems with Sco Openserver

Hi John,
   I 
emailed that chap you suggested, just got an out of office reply.
   I 
think I'm halfway there though, I ran the following command

#smbclient -U% -L localhost

Added inetrface ip=192.168.x.x bcast= 192.168.x.x 
nmask=255.x.x.x
Session Setup Failed: ERRSRV - ERRbadpw (Bad password - 
name/password pair in a Tree Connect or Session Setup are Invalid.)

So I had a look in the /etc/inetd.conf file and added the 
following two lines

netbios-ssn stream tcp nowait root /usr/local/samba/bin/smbd 
smbd

netbios-ns dgram tcp nowait root /usr/local/samba/bin/nmbd 
nmbd

then ran kill -HUP id_no

re running the smbclient command above resulted in the same 
error message, I can connect to the share from a windows client by \\servername\sharename
it asks for password and accepts it this time. I'm still 
confused about the error message above but I seem to be making 
headway.
Any input you can give will be greatfully 
recieved.

regards
Adrian


Re: [Samba] Desperate Help Required Getting SAMBA back on line

2002-12-19 Thread Joel Hammer
For starters, I would find the file DIAGNOSIS.txt and walk through
it. It is a very good trouble shooting guide. In my source distribution,
it hangs out in /docs/text.

Joel

On Thu, Dec 19, 2002 at 02:04:09PM -0700, Dan Tappin wrote:
 I am running SAMBA on Red Hat 7.0 and after a bad upgrade my SAMBA server is dead.  I
 ended up re-installing from the source and now my server is not accessible to our 
Win9x
 clients.  smbstatus show the server running but no one on the network can see the 
server.
 
 I am still a bit of a newbie and I am having trouble troubleshooting this.  I really 
am in
 a jam and I need some help ASAP.
 
 I am not sure where to start.
 
 Thanks,
 
 Dan
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



RE: [Samba] Desperate Help Required Getting SAMBA back on line

2002-12-19 Thread Dan Tappin
I am looking at it right now... the problem is that smbd will not even
start.  I have tried re-installing and nothing is working.

I try starting smbd -d from the command line and I get no feed back and
SAMBA does not start.  It is not even logging at all.

I must have really messed things up.

Dan

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Joel Hammer
 Sent: Thursday, December 19, 2002 3:11 PM
 To: Dan Tappin; [EMAIL PROTECTED]
 Subject: Re: [Samba] Desperate Help Required Getting SAMBA back on line


 For starters, I would find the file DIAGNOSIS.txt and walk through
 it. It is a very good trouble shooting guide. In my source distribution,
 it hangs out in /docs/text.

 Joel

 On Thu, Dec 19, 2002 at 02:04:09PM -0700, Dan Tappin wrote:
  I am running SAMBA on Red Hat 7.0 and after a bad upgrade my
 SAMBA server is dead.  I
  ended up re-installing from the source and now my server is not
 accessible to our Win9x
  clients.  smbstatus show the server running but no one on the
 network can see the server.
 
  I am still a bit of a newbie and I am having trouble
 troubleshooting this.  I really am in
  a jam and I need some help ASAP.
 
  I am not sure where to start.
 
  Thanks,
 
  Dan
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  http://lists.samba.org/mailman/listinfo/samba

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



RE: [Samba] Desperate Help Required Getting SAMBA back on line

2002-12-19 Thread Tom . Williams

Run

netstat-a | more

and make sure the port smbd wants to use is NOT in use by some other
process. Just something to check.  Also, check syslog for log messages from
smbd.  Ports 137-139 are the ports you're interested in, I believe.

Peace

Tom



   
 
Dan Tappin   
 
dan.tappin@orourk   To: Joel Hammer 
[EMAIL PROTECTED], [EMAIL PROTECTED]  
e-eng.com   cc:   
 
Sent by: Subject: RE: [Samba] Desperate Help 
Required Getting SAMBA back on 
samba-admin@lists.line 
 
samba.org  
 
   
 
   
 
12/19/02 02:19 PM  
 
   
 
   
 


   Our mission is to help our clients achieve more cost-effective
data center operations.


I am looking at it right now... the problem is that smbd will not even
start.  I have tried re-installing and nothing is working.

I try starting smbd -d from the command line and I get no feed back and
SAMBA does not start.  It is not even logging at all.

I must have really messed things up.

Dan

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Joel Hammer
 Sent: Thursday, December 19, 2002 3:11 PM
 To: Dan Tappin; [EMAIL PROTECTED]
 Subject: Re: [Samba] Desperate Help Required Getting SAMBA back on line


 For starters, I would find the file DIAGNOSIS.txt and walk through
 it. It is a very good trouble shooting guide. In my source distribution,
 it hangs out in /docs/text.

 Joel

 On Thu, Dec 19, 2002 at 02:04:09PM -0700, Dan Tappin wrote:
  I am running SAMBA on Red Hat 7.0 and after a bad upgrade my
 SAMBA server is dead.  I
  ended up re-installing from the source and now my server is not
 accessible to our Win9x
  clients.  smbstatus show the server running but no one on the
 network can see the server.
 
  I am still a bit of a newbie and I am having trouble
 troubleshooting this.  I really am in
  a jam and I need some help ASAP.
 
  I am not sure where to start.
 
  Thanks,
 
  Dan
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  http://lists.samba.org/mailman/listinfo/samba

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




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



Re: [Samba] Re: Samba problems with Sco Openserver

2002-12-19 Thread John H Terpstra
On Thu, 19 Dec 2002, Adrian Stokes wrote:


 - Original Message -
 From: Adrian Stokes
 To: John H Terpstra
 Sent: Wednesday, December 18, 2002 1:43 PM
 Subject: Samba problems with Sco Openserver


 Hi John,
 I emailed that chap you suggested, just got an out of office reply.
 I think I'm halfway there though,  I ran the following command

 #smbclient -U% -L localhost

That command says:

List resources on 'localhost' as user null and password null. ie:
-Uusername%password, which are empty. ie: -U'nothing'%'nothing' == -U%.


 Added inetrface ip=192.168.x.x bcast= 192.168.x.x nmask=255.x.x.x
 Session Setup Failed: ERRSRV - ERRbadpw (Bad password - name/password
 pair in a Tree Connect or Session Setup are Invalid.)

This means that your system lacks an account for the unix user that should
be used to allow your clients to retrieve the browse list from the IPC$
share. Please refer to man smb.conf and search for 'guest account'.


 So I had a look in the /etc/inetd.conf file and added the following two
 lines

 netbios-ssn stream tcp nowait root /usr/local/samba/bin/smbd smbd
 netbios-ns dgram tcp nowait root /usr/local/samba/bin/nmbd nmbd


It is much better to run smbd and nmbd as Daemons, otherwise you may
experience browsing problems. Running through inetd is possible but bit
preferred.

 then ran kill -HUP id_no

 re running the smbclient command above resulted in the same error
 message, I can connect to the share from a windows client by
 \\servername\sharename it asks for password and accepts it this time.
 I'm still confused about the error message above but I seem to be making
 headway. Any input you can give will be greatfully recieved.

 regards
 Adrian


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



[Samba] Strange locking errors with LabView under Samba 2.2.7 and HP-UX 11.11

2002-12-19 Thread Windsor Dave (AdW/MOE2.1)
Hello All,

I recently upgraded one of my HP-UX servers from Samba 2.2.4 to 2.2.7.
Since that time, I have noticed that disk activity on the file system where
the Samba var directory is kept seems to be higher than I would expect.  We
have now begun to experience a problem with PC clients running National
Instruments' LabView software, installed on a Samba share.  When any PC
client tries to execute it, disk utilization goes to 100% according to HP's
Glance performance monitor, with nearly all activity being in the
aforementioned file system containing the Samba var files and being caused
by the smbd for the client running LabView.  Using Glance to look at open
files, I found that the only open file located in the Samba var file system
is the smbd log file, and it is filled with messages like this:

[2002/12/19 17:47:17, 0] locking/posix.c:(660)

  posix_fcntl_lock: WARNING: lock request at offset 0, length
9223372036854779000 returned

[2002/12/19 17:47:17, 0] locking/posix.c:(662)

  an Invalid argument error. This can happen when using 64 bit lock offsets

[2002/12/19 17:47:17, 0] locking/posix.c:(663)

  on 32 bit NFS mounted file systems.

[2002/12/19 17:47:17, 0] locking/posix.c:(677)

  Count greater than 31 bits - retrying with 31 bit truncated length.

[2002/12/19 17:47:17, 0] locking/posix.c:(660)

  posix_fcntl_lock: WARNING: lock request at offset 0, length
9223372036854779000 returned

[2002/12/19 17:47:17, 0] locking/posix.c:(662)

  an Invalid argument error. This can happen when using 64 bit lock offsets

[2002/12/19 17:47:17, 0] locking/posix.c:(663)

  on 32 bit NFS mounted file systems.

[2002/12/19 17:47:17, 0] locking/posix.c:(677)

over and over again.  I have log level set to 1, with a different log for
each client.  After several minutes, LabView finally loads and things settle
back down.  Any ideas as to what is happening?  The log mentions NFS, but
the directories containing LabView are local to my system and are exported
by Samba only, not NFS.

My copy of Samba was compiled here using HP's ANSI C compiler under HP-UX
11.11.  I ran configure with very few options, just to set the prefix and to
set --with-utmp.  None of these problems occurred under Samba 2.2.4, and I
haven't yet had a chance to try out 2.2.7a to see if there's any difference.
The problem occurs when running LabView with both NT4 and W2K clients.  With
our holiday shutdown almost here, I hope to get a chance to try 2.2.7a
sometime tomorrow.

Thanks in advance for any assistance!

Dave Windsor 
AdW/MOE2.12 
Team Leader, Test Systems Engineering 
Robert Bosch Corporation 
Anderson, SC, USA 
email: mailto:[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] Strange locking errors with LabView under Samba 2.2.7and HP-UX 1 1.11

2002-12-19 Thread John H Terpstra
Dave,

Samba-2.2.7a was released to fix 64bit file access issues. Strongly
suggest you update.

- John T.

On Thu, 19 Dec 2002, Windsor Dave (AdW/MOE2.1) wrote:

 Hello All,

 I recently upgraded one of my HP-UX servers from Samba 2.2.4 to 2.2.7.
 Since that time, I have noticed that disk activity on the file system where
 the Samba var directory is kept seems to be higher than I would expect.  We
 have now begun to experience a problem with PC clients running National
 Instruments' LabView software, installed on a Samba share.  When any PC
 client tries to execute it, disk utilization goes to 100% according to HP's
 Glance performance monitor, with nearly all activity being in the
 aforementioned file system containing the Samba var files and being caused
 by the smbd for the client running LabView.  Using Glance to look at open
 files, I found that the only open file located in the Samba var file system
 is the smbd log file, and it is filled with messages like this:

 [2002/12/19 17:47:17, 0] locking/posix.c:(660)

   posix_fcntl_lock: WARNING: lock request at offset 0, length
 9223372036854779000 returned

 [2002/12/19 17:47:17, 0] locking/posix.c:(662)

   an Invalid argument error. This can happen when using 64 bit lock offsets

 [2002/12/19 17:47:17, 0] locking/posix.c:(663)

   on 32 bit NFS mounted file systems.

 [2002/12/19 17:47:17, 0] locking/posix.c:(677)

   Count greater than 31 bits - retrying with 31 bit truncated length.

 [2002/12/19 17:47:17, 0] locking/posix.c:(660)

   posix_fcntl_lock: WARNING: lock request at offset 0, length
 9223372036854779000 returned

 [2002/12/19 17:47:17, 0] locking/posix.c:(662)

   an Invalid argument error. This can happen when using 64 bit lock offsets

 [2002/12/19 17:47:17, 0] locking/posix.c:(663)

   on 32 bit NFS mounted file systems.

 [2002/12/19 17:47:17, 0] locking/posix.c:(677)

 over and over again.  I have log level set to 1, with a different log for
 each client.  After several minutes, LabView finally loads and things settle
 back down.  Any ideas as to what is happening?  The log mentions NFS, but
 the directories containing LabView are local to my system and are exported
 by Samba only, not NFS.

 My copy of Samba was compiled here using HP's ANSI C compiler under HP-UX
 11.11.  I ran configure with very few options, just to set the prefix and to
 set --with-utmp.  None of these problems occurred under Samba 2.2.4, and I
 haven't yet had a chance to try out 2.2.7a to see if there's any difference.
 The problem occurs when running LabView with both NT4 and W2K clients.  With
 our holiday shutdown almost here, I hope to get a chance to try 2.2.7a
 sometime tomorrow.

 Thanks in advance for any assistance!

 Dave Windsor
 AdW/MOE2.12
 Team Leader, Test Systems Engineering
 Robert Bosch Corporation
 Anderson, SC, USA
 email: mailto:[EMAIL PROTECTED]




-- 
John H Terpstra
Email: [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] Strange locking errors with LabView under Samba 2.2.7 and HP-UX 1 1.11

2002-12-19 Thread Windsor Dave (AdW/MOE2.1)
Hthat sounds reasonable.  I have 2.2.7a compiled up and ready to
install as soon as our production test equipment shuts down, hopefully
tomorrow.  I'll post my results as soon as I get the chance.

Thanks!

Dave Windsor 
email: mailto:[EMAIL PROTECTED] 

-Original Message-
From: John H Terpstra [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 6:24 PM
To: Windsor Dave (AdW/MOE2.1)
Cc: '[EMAIL PROTECTED]'
Subject: Re: [Samba] Strange locking errors with LabView under Samba
2.2.7 and HP-UX 1 1.11


Dave,

Samba-2.2.7a was released to fix 64bit file access issues. Strongly
suggest you update.

- John T.

On Thu, 19 Dec 2002, Windsor Dave (AdW/MOE2.1) wrote:

 Hello All,

 I recently upgraded one of my HP-UX servers from Samba 2.2.4 to 2.2.7.
 Since that time, I have noticed that disk activity on the file system
where
 the Samba var directory is kept seems to be higher than I would expect.
We
 have now begun to experience a problem with PC clients running National
 Instruments' LabView software, installed on a Samba share.  When any PC
 client tries to execute it, disk utilization goes to 100% according to
HP's
 Glance performance monitor, with nearly all activity being in the
 aforementioned file system containing the Samba var files and being caused
 by the smbd for the client running LabView.  Using Glance to look at open
 files, I found that the only open file located in the Samba var file
system
 is the smbd log file, and it is filled with messages like this:

 [2002/12/19 17:47:17, 0] locking/posix.c:(660)

   posix_fcntl_lock: WARNING: lock request at offset 0, length
 9223372036854779000 returned

 [2002/12/19 17:47:17, 0] locking/posix.c:(662)

   an Invalid argument error. This can happen when using 64 bit lock
offsets

 [2002/12/19 17:47:17, 0] locking/posix.c:(663)

   on 32 bit NFS mounted file systems.

 [2002/12/19 17:47:17, 0] locking/posix.c:(677)

   Count greater than 31 bits - retrying with 31 bit truncated length.

 [2002/12/19 17:47:17, 0] locking/posix.c:(660)

   posix_fcntl_lock: WARNING: lock request at offset 0, length
 9223372036854779000 returned

 [2002/12/19 17:47:17, 0] locking/posix.c:(662)

   an Invalid argument error. This can happen when using 64 bit lock
offsets

 [2002/12/19 17:47:17, 0] locking/posix.c:(663)

   on 32 bit NFS mounted file systems.

 [2002/12/19 17:47:17, 0] locking/posix.c:(677)

 over and over again.  I have log level set to 1, with a different log for
 each client.  After several minutes, LabView finally loads and things
settle
 back down.  Any ideas as to what is happening?  The log mentions NFS, but
 the directories containing LabView are local to my system and are exported
 by Samba only, not NFS.

 My copy of Samba was compiled here using HP's ANSI C compiler under HP-UX
 11.11.  I ran configure with very few options, just to set the prefix and
to
 set --with-utmp.  None of these problems occurred under Samba 2.2.4, and
I
 haven't yet had a chance to try out 2.2.7a to see if there's any
difference.
 The problem occurs when running LabView with both NT4 and W2K clients.
With
 our holiday shutdown almost here, I hope to get a chance to try 2.2.7a
 sometime tomorrow.

 Thanks in advance for any assistance!

 Dave Windsor
 AdW/MOE2.12
 Team Leader, Test Systems Engineering
 Robert Bosch Corporation
 Anderson, SC, USA
 email: mailto:[EMAIL PROTECTED]




-- 
John H Terpstra
Email: [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] Desperate Help Required Getting SAMBA back on line

2002-12-19 Thread Joel Hammer
H..
You said the server was running in your first post.

OK. What happens when you type:
which smbd

If you get a response, then try smbd 
This should start the daemon. I don't get any feedback when it starts up.
Try:
ps ax | grep smbd
to see if it is running

Joel

On Thu, Dec 19, 2002 at 03:19:13PM -0700, Dan Tappin wrote:
 I am looking at it right now... the problem is that smbd will not even
 start.  I have tried re-installing and nothing is working.
 
 I try starting smbd -d from the command line and I get no feed back and
 SAMBA does not start.  It is not even logging at all.
 
 I must have really messed things up.
 
 Dan
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
  Behalf Of Joel Hammer
  Sent: Thursday, December 19, 2002 3:11 PM
  To: Dan Tappin; [EMAIL PROTECTED]
  Subject: Re: [Samba] Desperate Help Required Getting SAMBA back on line
 
 
  For starters, I would find the file DIAGNOSIS.txt and walk through
  it. It is a very good trouble shooting guide. In my source distribution,
  it hangs out in /docs/text.
 
  Joel
 
  On Thu, Dec 19, 2002 at 02:04:09PM -0700, Dan Tappin wrote:
   I am running SAMBA on Red Hat 7.0 and after a bad upgrade my
  SAMBA server is dead.  I
   ended up re-installing from the source and now my server is not
  accessible to our Win9x
   clients.  smbstatus show the server running but no one on the
  network can see the server.
  
   I am still a bit of a newbie and I am having trouble
  troubleshooting this.  I really am in
   a jam and I need some help ASAP.
  
   I am not sure where to start.
  
   Thanks,
  
   Dan
  --
  To unsubscribe from this list go to the following URL and read the
  instructions:  http://lists.samba.org/mailman/listinfo/samba
 
 -- 
 To unsubscribe from this list go to the following URL and read the
 instructions:  http://lists.samba.org/mailman/listinfo/samba
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] smbmount

2002-12-19 Thread Joel Hammer
What are you restarting?

Joel

On Thu, Dec 19, 2002 at 04:08:02PM -0800, George, John wrote:
 Hi,
 I have successfully mounted 2 directories using smbmount.  However, when I
 restart, they are no longer mounted. 
 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] smbmount

2002-12-19 Thread Joel Hammer
One way to is put the smbmount commands into your network startup script.

Remember that you don't need to be running nmbd or smbd to run smbmount.

So, in your network script, at the end of the start section, put in the
smbmount commmand.  This will run with root priviledge, so you might
want to read about the uid and gid options of smbmount.

I would also put an umount command in the shutdown part
of the script, so these mounts will be gracefully umounted when the network
goes down.

I use this script to kill all smbmounts when my network goes down:

mount | grep  type smbfs  | sed 's/^.*on *//' | sed 's/ *type.*//' \
  | sed 's/ /\\\ /g' | xargs -n1 -i{}  umount {}

I suspect there are simpler ways of getting this done, like killall
smbmount, but, this works, at least on my machine.

Joel 
On Thu, Dec 19, 2002 at 04:21:01PM -0800, George, John wrote:
 Sorry, I restarted the machine.
 
 -Original Message-
 From: Joel Hammer [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 19, 2002 4:17 PM
 To: George, John; [EMAIL PROTECTED]
 Subject: Re: [Samba] smbmount
 
 
 What are you restarting?
 
 Joel
 
 On Thu, Dec 19, 2002 at 04:08:02PM -0800, George, John wrote:
  Hi,
  I have successfully mounted 2 directories using smbmount.  However, when I
  restart, they are no longer mounted. 
  
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Has anybody got ACL to work w/ debian, winbindd in a w2k mixeddomain?

2002-12-19 Thread Jacob Malmberg
Hi again,
Can u give me the exact names of the packages you apt-getted? I need those 
because winbindd is acting strange and I need to find out what the problem 
is.

regads,
Jacob






From: Anthony J. Breeds-Taurima [EMAIL PROTECTED]
To: Jacob Malmberg [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [Samba] Has anybody got ACL to work w/ debian, winbindd in a 
w2k mixed domain?
Date: Tue, 10 Dec 2002 10:07:43 +0800 (WST)

On Mon, 9 Dec 2002, Jacob Malmberg wrote:

 Neat. How did you do that, any how-to or something? Im really stuck with
 this problem. Those sid packages you are talking about, what are those 
and
 where do I find them. I hope you help me out on this one as Im really
 bugged.

I can tell you roughly what I did.  If you need clarification then don't
hesitate to ask.

0) Install woody to your satisfaction.

1) Modified my /etc/apt/preferences file to:
   ---
   Package: *
   Pin: release l=Debian-Security
   Pin-Priority: 999

   Package: *
   Pin: release a=stable
   Pin-Priority: 600

   Package: *
   Pin: release a=unstable
   Pin-Priority: 500
   ---
   and add the appropriate unstable lines to /etc/apt/sources.list.
   The only reason I need the unstable lines and the apt preferences is to 
get
   the current acl/attr libraries prepackaged.  I don't see that I need to 
do
   extra work (especially when a nice DD has done it for me).

2) follow the instructions at: http://acl.bestbits.at/steps.html
   for a new install.  I only varied it by using the prepackaged .debs
   for acl/attr (including the -dev packages).

3) After booting into the new kernel (in my case 2.4.19, As set there 
aren't
   any patches for 2.4.20) and mounting /home with the acl option.
   I testing {set,get}facl and all was good.

4) I then build samba from source.   I was doing 2.2.6-pre1 but I've since
   upgraded to 2.2.7 with no issues.

5) From there I followed the instructions in man 8 winbindd to get the
   winbind daemon working and join the domain.  I then tested ssh and
   {set,get}facl with the DOMAIN_user accounts.  Once I had that working
   (actually there was nothing to do it just worked)  I tried
   setting/adding/removing ACLS from a win2k box.

   So far the only problem I've come across is the 8 (of 2000 odd) 
accounts
   don't have a an rid to convert name-sid.  This would be more of a 
problem
   if the accounts weren't going to be deleted in about 3 days.

I also have enabled quota support in the kernel and samba and that works
great!

Yours Tony

   Jan 22-25 2003   Linux.Conf.AUhttp://linux.conf.au/
		  The Australian Linux Technical Conference!


_
STOP MORE SPAM with the new MSN 8 and get 3 months FREE*. 
http://join.msn.com/?page=features/junkmailxAPID=42PS=47575PI=7324DI=7474SU= 
http://www.hotmail.msn.com/cgi-bin/getmsgHL=1216hotmailtaglines_stopmorespam_3mf

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


Re: [Samba] Re: max log size setting ignored

2002-12-19 Thread Andrew Furey
 It should be no-brainer, in the [global] section of smb.conf I have:

 log level = 1
 max log size = 0

 But, no matter what I set max log size to, be it 0 or a big number,
 it is always ignored and the log.smbd is always ended at 5 Meg.

Just a wild guess (I'm coming from a Linux background here, never used
Solaris), but is it ending based on the size, or the time? Do you
possibly have something like logrotate running from cron?

--
ANDREW FUREY [EMAIL PROTECTED] - Sysadmin/developer for Terminus.
Providing online networks of Australian lawyers (http://www.ilaw.com.au)
and Linux experts (http://www.linuxconsultants.com.au) for instant help!
Disclaimer: http://www.terminus.net.au/disclaimer.html. GCS L+++ P++ t++

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



[Samba] Strange behavior with samba mountpoint

2002-12-19 Thread Ted Kaczmarek
I have a Redhat 8.0 box with many external connections.
Several nfs and 3 samba.
Today I tried to reattach to one on my mounts and I am geting
Could not resolve mount point /mnt/dir.
If I do an ls -a I can see the dir, but when adding the l option to ls
it does not show up.

fuser returns for the dir,
Input/output error

I apologize if this has nothing to do with Samba, but I am perplexed as
to how to continue troubleshooting this, and came across the problem
when doing a mount -t smbfs.

kernel - 2.4.18-18.8.0smp
samba 2.2.7-2

If I create a new directory I am able to mount the NT box on it.
-- 
Ted K. tedkaz-no-at-spam-optonline.net

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



Re: [Samba] Has anybody got ACL to work w/ debian, winbindd in aw2k mixed domain?

2002-12-19 Thread Anthony J. Breeds-Taurima
On Fri, 20 Dec 2002, Jacob Malmberg wrote:

 Hi again,
 Can u give me the exact names of the packages you apt-getted? I need those 
 because winbindd is acting strange and I need to find out what the problem 
 is.

  acl attr fileutils libacl1 libattr1


Althought none of them will affect windbinndds behaviour.


Yours Tony

   Jan 22-25 2003   Linux.Conf.AUhttp://linux.conf.au/
  The Australian Linux Technical Conference!

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



[Samba] remember free

2002-12-19 Thread hotstuff

Show this line!

http://216.218.174.6/

it\'s  an switzerline 

all free

http://216.218.174.6/


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



Re: [Samba] slowness when using roaming profiles

2002-12-19 Thread Anthony Hologounis
Dariush Forouher wrote:


Am Die, 2002-12-17 um 20.19 schrieb John H Terpstra:
 

Just FYI - the user in question had an Outlook PST file that was nearly
1 Gigabyte in size. PST files are stored as part of the profile!! Any
   


Interessting, if I try to copy a profile 80mb back to samba, I doesn't
work (IIRC samba denies access to the profile share). Do you know if
this is a bug of my old samba 2.2.3 installation or something related to
Windows2K? I haven't looked further into it because this border is just
fine for me.

ciao
Dariush
 

Thanks all for the reply.
After further checking it seems the biggest culprits are the Desktop 
folder and the Application Data folder.
These are the porkers : ) The Application Data folder is 209M alone. How 
important is this folder?

Is there a way to edit what gets backed up when a user logs off? It 
would be nice to skip over these folders.( not sure if this would defeat 
the purpose of roaming profiles though)

I am not a windows person so the answer is not readily apparant.

--

Anthony Hologounis

Only two things in this world are infinite. 
The Universe and human stupidity.
And we're not even sure about the first one.

-Einstein


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


Re: [Samba] Strange behavior with samba mountpoint

2002-12-19 Thread Ted Kaczmarek
Thanks Joel,
that correlates exactly to my scenario. The network connection back to
the server is unreliable.I suspect their could be some tweaks done to
better handle these situations but that is beyond my present level of
knowledge to tackle.


On Thu, 2002-12-19 at 20:06, Joel Hammer wrote:
 I have this sort of problem a lot.
 
 I think this happens when there is  network connection
 lost. The smbfs mounts don't go away gracefully. In this situation,
 when I run mount I often see the share listed as mounted, although I
 cannot cd into the mount point. Attempts to umount the share fail, too.
 
 So, what to do? You could reboot. You could try killall smbmount. You could
 exit out of the xterm or tty that smbmounted the share. I really don't have
 a good way around this. My best results have been obtained by putting a
 command to umount all my smbfs connections in my network shutdown script.
 
 Joel
 
 
 
 
 
 
 On Thu, Dec 19, 2002 at 07:53:40PM -0500, Ted Kaczmarek wrote:
  I have a Redhat 8.0 box with many external connections.
  Several nfs and 3 samba.
  Today I tried to reattach to one on my mounts and I am geting
  Could not resolve mount point /mnt/dir.
  If I do an ls -a I can see the dir, but when adding the l option to ls
  it does not show up.
  
  fuser returns for the dir,
  Input/output error
  
  I apologize if this has nothing to do with Samba, but I am perplexed as
  to how to continue troubleshooting this, and came across the problem
  when doing a mount -t smbfs.
  
  kernel - 2.4.18-18.8.0smp
  samba 2.2.7-2
  
  If I create a new directory I am able to mount the NT box on it.
  -- 
  Ted K. tedkaz-no-at-spam-optonline.net
  
  -- 
  To unsubscribe from this list go to the following URL and read the
  instructions:  http://lists.samba.org/mailman/listinfo/samba

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



Re: [Samba] Profiles and Win2000

2002-12-19 Thread tin tinny
I found the same problem. I added parameter
[global]
nt acl support = no

for more information at http://zeck.netliberte.org/linux/howto/lecture.php?fic=samba
That problem was disappeared but I'm not sure about other problem may occur.

 John H Terpstra lt;[EMAIL PROTECTED]gt; wrote: 
On Thu, 19 Dec 2002, Arno Gramatke wrote: Hi, FB I still have a problem with Windows 2000 SP2 and Samba 2.2.7a: FB I set DeleteRoamingProfiles to 1 and deleted all old profiles. I think the correct registry key is "DeleteRoamingCache". Take a look at http://www.winguides.com/registry/display.php/142/Correct. I added a registry update file to the ~samba/docs/Registrydirectory called Win-NT-2K-XP-DeleteRoamingProfile.reg to cause all cachedroaming profiles to be deleted in log-out. It will be in the documentationtree for Samba-3.0.0 when it ships. Meanwhile, those who want it will findit on the CVS server.- John T. FB Now Windows sometimes creates/backups a local profile for every user FB *and* every login, e.g.: FB user.domain, user.domain.000, 
 user.domain.001, user.domain.002... FB I thought they were deleted after setting "csc policy = delete", but FB they aren't. I'm not sure, but i think that "csc policy = ..." has got nothing to do with the deletion of profiles on the clients. See http://de.samba.org/samba/docs/man/smb.conf.5.html#CSCPOLICY Apart from that you should set "csc policy = disable" for the profile share, to prevent windows client from offline(!) caching (this is not to be confused with saving the profile back to the server) the profiles. You might have noticed some entries in the event log, stating that there might be a problem with offline caching on the profile share). So, the only thing you need to do, is set the correct registry key and delete all old profile on the clients. Of course you have to make sure, that the profiles share is writable. Hope this
  helps. cu Arno-- John H TerpstraEmail: [EMAIL PROTECTED]-- To unsubscribe from this list go to the following URL and read theinstructions: http://lists.samba.org/mailman/listinfo/sambaWith Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs

[Samba] Oplocks...again...

2002-12-19 Thread William Jojo


I would like to know if like the [homes] section mapped to a single user
at login time (H: drive) would have any of the problems discussed in
previous emails.

Specifically the oplock break issue. Since one and only one user can have
this space mapped in our  implementation (because of credential conflicts
that windows does not allow), how could a user have a detrimental
experience with oplocks?

Since only that user can open the files whether .xls, .mdb or .doc (don't
mean to pick on M$-Office) there should be no issue, right?

I ask primarily because I've had oplocks off for some time now, but am
always wondering about performance increases - I'll take them where I can
get them.

My other question is regarding a read-only share. We serve *lots* of
software from what we call our M: drive. How will oplocks and/or level2
oplocks help there? I'm not sure I see how they will. I'm at the mercy of
the randomness of served software, right?

Any info on this will help.

Thanks Samba Team - You've done a great job so far - it is greatly
appreciated!


Bill

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



Re: [Samba] Oplocks...again...

2002-12-19 Thread John H Terpstra
On Thu, 19 Dec 2002, William Jojo wrote:



 I would like to know if like the [homes] section mapped to a single user
 at login time (H: drive) would have any of the problems discussed in
 previous emails.

 Specifically the oplock break issue. Since one and only one user can have
 this space mapped in our  implementation (because of credential conflicts
 that windows does not allow), how could a user have a detrimental
 experience with oplocks?

It is the MS Windows client that decides whether or not to use file
caching based on the server's ability to handle it. Only Samba allows this
to be controlled on a per share basis.

The performance difference is most noticible where the same file is
repetitively accessed by the same application, but can be very significant
also for MS Excel and MS Word files because of the way that they implement
file access.


 Since only that user can open the files whether .xls, .mdb or .doc (don't
 mean to pick on M$-Office) there should be no issue, right?

In single user access the issues are likely to be minor and I would enable
oplocks. If the same user logs in multiple times and opens the same file
on each machine then there is still a risk.


 I ask primarily because I've had oplocks off for some time now, but am
 always wondering about performance increases - I'll take them where I can
 get them.

Try it! Let us know what differences you notice.

 My other question is regarding a read-only share. We serve *lots* of
 software from what we call our M: drive. How will oplocks and/or level2
 oplocks help there? I'm not sure I see how they will. I'm at the mercy of
 the randomness of served software, right?

If hte file has been cached in workstation memory it will open much faster
on second and subsequent access.

- John T.

 Any info on this will help.

 Thanks Samba Team - You've done a great job so far - it is greatly
 appreciated!


 Bill



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



[Samba] smbmount

2002-12-19 Thread George, John
Hi,
I have successfully mounted 2 directories using smbmount.  However, when I
restart, they are no longer mounted. 

Is there any way to get a peristent connection using smbmount?

Thanks!

John R. George
Systems Support Analyst
Infrastructure Team
County of San Bernardino
Phone: (909) 388-5997
e-mail: [EMAIL PROTECTED]

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



[Samba] smbclient and large file support

2002-12-19 Thread Herb Lewis
smbclient (and smbtar) in version 2.2.7a (and prior) has problems with
large files ( 4GB). The following patch (against 2.2.7a) fixes all 
known problems with this. This code has been checked into the CVS tree
in all branches as well.

-- 
==
Herb Lewis   Silicon Graphics 
Networking Engineer  1600 Amphitheatre Pkwy MS-510
Strategic Software Organization  Mountain View, CA  94043-1351
[EMAIL PROTECTED] Tel: 650-933-2177
http://www.sgi.com   Fax: 650-932-2177  
PGP Key: 0x8408D65D
==
--- samba-2.2.7a/source/client/client.c Wed Dec  4 09:16:34 2002
+++ samba-2.2.7a-fixed/source/client/client.c   Thu Dec 19 15:41:51 2002
@@ -92,9 +92,9 @@
 
 /* timing globals */
 off_t get_total_size = 0;
-int get_total_time_ms = 0;
+unsigned int get_total_time_ms = 0;
 off_t put_total_size = 0;
-int put_total_time_ms = 0;
+unsigned int put_total_time_ms = 0;
 
 /* totals globals */
 static double dir_total;
--- samba-2.2.7a/source/client/clitar.c Tue Apr 30 06:26:18 2002
+++ samba-2.2.7a-fixed/source/client/clitar.c   Thu Dec 19 15:50:20 2002
@@ -45,10 +45,10 @@
 
 struct file_info_struct
 {
-  size_t size;
+  SMB_BIG_UINT size;
   uint16 mode;
-  int uid;
-  int gid;
+  uid_t uid;
+  gid_t gid;
   /* These times are normally kept in GMT */
   time_t mtime;
   time_t atime;
@@ -125,11 +125,11 @@
 int blocksize=20;
 int tarhandle;
 
-static void writetarheader(int f,  char *aname, int size, time_t mtime,
+static void writetarheader(int f,  char *aname, SMB_BIG_UINT size, time_t mtime,
   char *amode, unsigned char ftype);
 static void do_atar(char *rname,char *lname,file_info *finfo1);
 static void do_tar(file_info *finfo);
-static void oct_it(long value, int ndgs, char *p);
+static void oct_it(SMB_BIG_UINT value, int ndgs, char *p);
 static void fixtarname(char *tptr, char *fp, int l);
 static int dotarbuf(int f, char *b, int n);
 static void dozerobuf(int f, int n);
@@ -168,7 +168,7 @@
 /
 Write a tar header to buffer
 /
-static void writetarheader(int f,  char *aname, int size, time_t mtime,
+static void writetarheader(int f,  char *aname, SMB_BIG_UINT size, time_t mtime,
   char *amode, unsigned char ftype)
 {
   union hblock hb;
@@ -175,7 +175,7 @@
   int i, chk, l;
   char *jp;
 
-  DEBUG(5, (WriteTarHdr, Type = %c, Size= %i, Name = %s\n, ftype, size, aname));
+  DEBUG(5, (WriteTarHdr, Type = %c, Size= %.0f, Name = %s\n, ftype, (double)size, 
+aname));
 
   memset(hb.dummy, 0, sizeof(hb.dummy));
   
@@ -207,10 +207,10 @@
 
   hb.dbuf.name[NAMSIZ-1]='\0';
   safe_strcpy(hb.dbuf.mode, amode, strlen(amode));
-  oct_it(0L, 8, hb.dbuf.uid);
-  oct_it(0L, 8, hb.dbuf.gid);
-  oct_it((long) size, 13, hb.dbuf.size);
-  oct_it((long) mtime, 13, hb.dbuf.mtime);
+  oct_it((SMB_BIG_UINT)0, 8, hb.dbuf.uid);
+  oct_it((SMB_BIG_UINT)0, 8, hb.dbuf.gid);
+  oct_it((SMB_BIG_UINT) size, 13, hb.dbuf.size);
+  oct_it((SMB_BIG_UINT) mtime, 13, hb.dbuf.mtime);
   memcpy(hb.dbuf.chksum, , sizeof(hb.dbuf.chksum));
   memset(hb.dbuf.linkname, 0, NAMSIZ);
   hb.dbuf.linkflag=ftype;
@@ -217,7 +217,7 @@
   
   for (chk=0, i=sizeof(hb.dummy), jp=hb.dummy; --i=0;) chk+=(0xFF  *jp++);
 
-  oct_it((long) chk, 8, hb.dbuf.chksum);
+  oct_it((SMB_BIG_UINT) chk, 8, hb.dbuf.chksum);
   hb.dbuf.chksum[6] = '\0';
 
   (void) dotarbuf(f, hb.dummy, sizeof(hb.dummy));
@@ -450,7 +450,7 @@
 /
 Convert from decimal to octal string
 /
-static void oct_it (long value, int ndgs, char *p)
+static void oct_it (SMB_BIG_UINT value, int ndgs, char *p)
 {
   /* Converts long to octal string, pads with leading zeros */
 
@@ -621,7 +621,7 @@
 static void do_atar(char *rname,char *lname,file_info *finfo1)
 {
   int fnum;
-  uint32 nread=0;
+  SMB_BIG_UINT nread=0;
   char ftype;
   file_info2 finfo;
   BOOL close_done = False;
@@ -643,6 +643,7 @@
 finfo.mtime = finfo1 - mtime;
 finfo.atime = finfo1 - atime;
 finfo.ctime = finfo1 - ctime;
+finfo.name  = finfo1 - name;
   }
   else {
 finfo.size  = def_finfo.size;
@@ -652,13 +653,14 @@
 finfo.mtime = def_finfo.mtime;
 finfo.atime = def_finfo.atime;
 finfo.ctime = def_finfo.ctime;
+finfo.name  = def_finfo.name;
   }
 
   if (dry_run)
 {
-  DEBUG(3,(skipping file %s of size %d bytes\n,
+  DEBUG(3,(skipping file %s of size %12.0f bytes\n,
   finfo.name,
-  (int)finfo.size));
+  (double)finfo.size));
   shallitime=0;
   ttarf+=finfo.size + TBLOCK 

Re: [Samba] samba to samba via LDAP

2002-12-19 Thread Bradley W. Langhorst
On Thu, 2002-12-19 at 10:37, jeff wrote:
  Why not just have both servers authenticating against a common ldap
  store?
 
 That would be the same desired result. Know any way I could have a real-time 
 single LDAP store on a single machine and have everything auth against it?
 
just point all your samba machines at the same ldap server...
you can add tls security if needed.
I have ~10 machines authenticating against a single ldap server.

It took me a while to work out the security issues. Make sure to read
the latest ldap docs - even if you're using an older version. The newer
docs are clearer on the security stuff.

 I've thought about just doing a scp of the .gdbm files, but that's just 
 another point of failure.
I fear that idea (you have no way of knowing that the db files are
synced before you scp) - instead use slurpd for replication if you need
to distribute the load. I've not replicated my db yet...

brad

-- 
Bradley W. Langhorst [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] Samba 3alpha20 Bugs (FreeBSD 4.6)

2002-12-19 Thread Bradley W. Langhorst
On Thu, 2002-12-19 at 02:54, Laurent Hofmann wrote:
 hello,
 
 I would say that for Samba 3.0 alpha20 (and latter I suppose ) acting as PDC
 you must reenable use spnego=yes.
 I say it because it is not clear, and I had to search a lot before finding
 why i could not log on.
 (it work with spnego=no with alpha17 !)
 
i've got spnego=no in a21 and a20 as a PDC with XPSP2 clients

hostname:~# grep spnego /etc/samba/smb.conf
use spnego = No
hostname:~# smbd -V
Version 2.999+3.0.alpha21-0.nxp for Debian


 I've tried to set up add and delete scripts for everythings : add user
...

i've not tried to use the NT tools for user management.
(why would you want to?)
 
 I hope this can help ? I don't no if it is the right place for that... But
 i'm not sure all are bugs, it could be problems in my config, so I post
 here.
it's the right spot - it's hard to tell when to post to technical when
you're using a alpha.
I think for config questions samba is best.
-- 
Bradley W. Langhorst [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] quota support on AIX

2002-12-19 Thread Tsutomu Miyashita
Hellow, members
(B
(BIBM appreciated this problem as AIX bug, and they will release patches
(Bagainst this problem as APAR IY38330. This patches will be released
(Babout two months later.
(B
(BT, Miyashita
(B
(B -Original Message-
(B From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
(B Behalf Of Tsutomu Miyashita
(B Sent: Tuesday, November 19, 2002 10:51 AM
(B To: [EMAIL PROTECTED]
(B Subject: RE: [Samba] quota support on AIX
(B 
(B 
(B Hellow, members
(B 
(B I found this problem was probably caused by OS bug.
(B The reason why SAMBA could not get quota infomation was because
(B the quotactl system call used by smbd/quotas.c returned a error
(B of "operation not permitted".
(B AIX's quotactl returns error if uid and euid are not the same.
(B I reported this problem to IBM and the patch against this problem will
(B be released. I will report about this patch ID to this ML.
(B If you want to use SAMBA quota function on AIX, you can get this on
(B SAMBA 1.x. That is because both uid and euid are the user ID of file
(B access on SAMBA 1.x's smbd, not root.
(B 
(B Tsutomu Miyashita
(B 
(B  -Original Message-
(B  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
(B  Behalf Of Tsutomu Miyashita
(B  Sent: Thursday, October 31, 2002 1:40 PM
(B  To: [EMAIL PROTECTED]
(B  Subject: [Samba] quota support on AIX
(B  
(B  
(B  Hellow, members
(B  
(B  I want to use SAMBA with disk quota support on AIX machine,
(B   but have not succeeded yet. Are there any members who could
(B  succeeded setting up SAMBA on that environment?
(B  
(B  OS:AIX4.3.3
(B  SAMBA:2.2.5
(B  configure option:--with-quotas
(B  
(B  First, I configured AIX's quota environment, and confirmed quota
(B  worked fine. And I accessed to SAMBA, but disk size displayed
(B  on Windows explorer did not match with quota size. Imformed disk
(B  size is filesystem size of SAMBA server.
(B  I comfirmed this step on Redhat6.2, but informed disk size was 
(B  just quota size.
(B  I wonder SAMBA quota function does not support AIX. Is that true?
(B  
(B  
(B  Thanks
(B  Tsutomu Miyashita
(B  
(B  -- 
(B  To unsubscribe from this list go to the following URL and read the
(B  instructions:  http://lists.samba.org/mailman/listinfo/samba
(B 
(B -- 
(B To unsubscribe from this list go to the following URL and read the
(B instructions:  http://lists.samba.org/mailman/listinfo/samba
(B-- 
(BTo unsubscribe from this list go to the following URL and read the
(Binstructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Odd problems with XP

2002-12-19 Thread Marian Mlcoch, Ing



This is bad idea samba cannot browse sync with NT 
on another segment of network and if is in one segment
then sync is automatic not need remote sync and 
anounce.
Try you read doc BROWSING on samba 
docs...

  - Original Message - 
  From: 
  Neal Lawson 
  
  To: Samba List 
  Sent: Thursday, December 19, 2002 7:10 
  PM
  Subject: Re: [Samba] Odd problems with 
  XP
  I'm sorry i in trying to hide sentivitve infomation i deleted 
  those lines so there they are with out the ip'sremote announce = 
  123.123.123.123/DOMAINwins server = 123.123.123.123remote browse 
  sync = 123.123.123.123sorryRashkae wrote:
  How does your Samba box know about the WINS server? (Unless, of course,
you neglected to post your *complete* smb.conf)


Dec 19  12:57pm


They hang the man and flog the woman
That steal the goose from off the common,
But let the greater villain loose
That steals the common from the goose.
  --English folk poem, circa 1764








On Thu, 19 Dec 2002, Neal Lawson wrote:

I Do have a central WINS server running and the PDC, BDC, the Samba box,
and the XP client know about the wins server


Marian Mlcoch, Ing wrote:

  
Your problem is complicated browsing with NT and samba.
Reason:
1. Use on your network on all machines and servers only one!! protocol
TCPIP.
2. Configure WINS server on NT PDC or BDC machine
3. In config tcpip on all clients set wins server to created IP.
4. In all samba server or clients set in smb.conf wins server = IP...

REM If need another protocol as netbeui or ipx on server or clients yuo must
disable browsing features for this protocols in regedit or confs...

Thats all.


- Original Message -
From: "Neal Lawson" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 9:33 PM
Subject: [Samba] Odd problems with XP





  I have one Samba server with my Raid 5 can on it, and a NT 4 PDC and
BDC, and im running samba 2.2.7, for most of my clients browsing the
shares is just fine, but on some browsing the shares hangs or takes a
long time to return with a result

here is my smb.conf file:


[global]
netbios name = xx
load printers = no
workgroup = XXX
encrypt passwords = Yes
security = domain
allow trusted domains = yes
password server = 
time server = Yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=4096
SO_SNDBUF=4096
os level = 34
name resolve order = wins hosts bcast
write raw = yes
read raw = yes
hide files =



  /:2eDS_Store/resource.frk/TheFindByContentFolder/TheVolumeSettingsFolder/Des
ktopFolderDB/Network



  Trash Folder/resource.frk/.*/
oplocks = yes
max xmit = 65535
level2oplocks = yes
dead time = 7
getwd cache = yes
nt acl support = no


[private]
comment = Private Storage for %U
path = %H/private
create mode = 0600
directory mode = 0700
valid users = %U
follow symlinks = yes
writeable = yes

[public]
comment = Public Storage for %U
path = %H/public
create mode = 0600
directory mode = 0700
valid users = %U
follow symlinks = yes
writeable = yes

[web]
comment = Web root for %U
path = %H/web



Thanks for any help

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


  

  


Re: [Samba] How important are oplocks?

2002-12-19 Thread Marian Mlcoch, Ing
Yes yuo have right with idea that if hardware is bad then oplocks is bad but
my idea is that dbase aplications and engines must known about quality of
network hardware, client and status and must have system to repair or
disable oplocks if is bad ! Nothing another only dbase engine must realise
this operation. If not then this engine is bad and not for network use.

Then must exist list of this engines with realy dangerous level...

Secondary is that yuo write as more aplication open only one user ??? This
is  then why i need file server?
File servers is created primary for use with database aplications!
Yes sql is best but how many users of samba or NT uses realy network sql
apli?

Thats all folks.

- Original Message -
From: Jim Morris [EMAIL PROTECTED]
To: Marian Mlcoch, Ing [EMAIL PROTECTED]
Cc: Bob Puff@NLE [EMAIL PROTECTED]; Jean-Paul ARGUDO
[EMAIL PROTECTED]; Joel Hammer [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 3:22 PM
Subject: Re: [Samba] How important are oplocks?


 On Thu, 2002-12-19 at 03:56, Marian Mlcoch, Ing wrote:

  Thanks Jim for best report of oplock as i read.
  Super can be if you can add info or link about list of dangerous
database
  engines for oplocks...
  Btw.  Foxpro 2.6 = is ok.
Foxpro 7.. = bad.
Clipper=  dangerous...
  exist this list for off oplocks?

 Thanks. But unfortunately, its not that simple.I doubt for example that
 one version of FoxPro will be good with oplocks, while another is bad.
 The entire problem with oplocks and shared-file databases such as dBASE,
 FoxPro, Paradox, Access, etc, is with file caching on the client side
 (the OPLCOCK), and that client system not breaking the oplock when
 requested.  Even when the breaks do happen properly, the time to write
 the file back out to the server may be significant, causing a LONG
 delay on the 2nd client to open the file.

 When you see oplock problems, I guess you could say it is more client-OS
 and hardware dependant than it is on the software involve. It just so
 happens that the type of software that runs into oplock related issues
 most often is shared-file database software. Most other applications do
 not have 2 or more users opening the same file at the same time on a
 routine basis.
 --
 /---
 | Jim Morris  |  Email: [EMAIL PROTECTED]
 | |AIM: JFM2001
 \---

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

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



[Samba] =?gb18030?b?xvPStdDFz6K7r7e9sLijrDUwMNSqL8Tq?==?gb18030?b?vs2/ycq1z9ZERE7XqM/fxvPStbmmxNyjoQ==?=

2002-12-19 Thread nownet

ÆóÒµÐÅÏ¢»¯ÒѾ­³ÉΪÆóÒµÌá¸ßЧÂÊ¡¢ÔöÇ¿¾ºÕùµÄÖØÒªÊֶΣ¡µ±ÄãÉí´¦ÍâµØ£¬ÐèÒªÌáÈ¡¹«Ë¾ÄÚ²¿ÐÅÏ¢¡¢²ÆÎñÐÅϢʱ£¬Í¨¹ý»¥ÁªÍø¾ÍÄÜ·ÃÎʵ½¹«Ë¾·þÎñÆ÷»òÕß×Ô¼ºµÄµçÄÔʱ£¬µÇ½½øÈ¥¾Í¿ÉÒÔ»ñÈ¡ÀïÃæµÄÐÅÏ¢ÁË£¡


ÒÔǰҪʵÏÖÒÔÉϹ¦ÄÜ£¬¾ÍҪÿÄ껨·Ñ¾Þ´óµÄ·ÑÓÃÀ´À­ÆóÒµDDNרÏߣ¬²ÅÄÜʵÏÖͨ¹ý»¥ÁªÍø·ÃÎÊÆóÒµÄÚ²¿·þÎñÆ÷¡£ÏÖÔÚʱ´´ÍøÂçÐÂÍƳöµÄ¶¯Ì¬ÓòÃû£¬500Ôª/Äê¾Í¿ÉÒÔʵÏÖÒÔÉÏDDNÄÜ×öµÄ¹¦ÄÜ,»¹¿ÉÒÔ´æ·ÅÍøÒ³¡¢ÂÛ̳£¬×÷ΪÆóÒµÓʼþ·þÎñÆ÷µÈ£¬¸øÄãÒ»¸öÍêÃÀµÄÆóÒµÐÅÏ¢»¯·½°¸¡£¶¯Ì¬ÓòÃûÊÇʹµçÄÔËæʱ±ä»¯µÄIP±äΪ¹Ì¶¨µÄIP£¬ÀûÓÿí´øÓòÃûÓëµçÄԵĶÔÓ¦¹Øϵ£¬Í¨¹ýÓòÃû¾Í¿ÉÒÔËæʱÕÒµ½×Ô¼ºµÄµçÄÔ£¬Ëæʱ´æÈ¡ÀïÃæµÄ×ÊÁÏÁË£¡Õâ²úÆ·ÊÇרÃÅΪÆóÒµµÄÐÅÏ¢»¯ÐèÇó¶ø¿ª·¢µÄ£¬Ö÷Òª¹¦ÄÜÈçÏ£º


IP±ä»¯È«×Ô¶¯¼°Ê±¸üÐÂ(¼¶±ðA), ¾²Ì¬¼°ÀëÏßIPÖ¸Ïò
¶¥¼¶ÓòÃûÖ§³Ö, Ö§³Ö¶à¸öÓòÃû·¢²¼
Ö§³Ö WINDOWS ϵÁÐ Unix/linux ¼°ÆäËüƽ̨(¼¶±ðA) 
¶à×ÓÓòÃû×ÓÍøÕ¾Ö§³Ö(VDNS) ,·ºÓòÃû½âÎö (VDNS)
Óʼþ¼Ç¼MXÖ§³Ö (VDNS) ,Ö÷»ú¼Ç¼֧³Ö(VDNS)

ÅäºÏÓòÃûµÄʹÓãº×¢²áÓòÃûºó£¬ÔÚÄúËù×¢²áµÄÓòÃûÖмÓÈëµÄÒ»¸öCNAME(·ºÓòÃûÖ¸Ïò)ÌîÈëÐÎÈç 
IP.VDNS.ORGµÄ¶¯Ì¬IP 
¾Í¿ÉÒÔ½«Õâ¸öÓòÃû±ä³É¶¯Ì¬ÓòÃû,ÒÔºóÄãͨ¹ý·ÃÎÊÕâ¸öÓòÃû£¬¾Í¿ÉÒÔËæʱËæµØ·ÃÎÊÄãµÄµçÄÔÁË¡£

Èí¼þ°²×°¼òÒ×£¬¿ÉÃâ·ÑÊÔÓ㬼ûhttp://dtip.001isp.com
°²×°ºó£¬ÈçºÎÅäºÏÓòÃûʹÓ㬼û£ºhttp://dtym.001isp.com

ÏêÇ黶ӭ·ÃÎÊ£ºhttp://www.001isp.com
µç»°×Éѯ£º0756-2125583 2125536 2125563
QQ×Éѯ£º108786611 77248929
Óʼþ×Éѯ£º[EMAIL PROTECTED]



Re: Prevent winbind idmap corruption

2002-12-19 Thread Michael Steffens
Ooops, bug in patch: Duplicate deletion of mapping on
rollback. Corrected version is attached. Sorry!

Michael

Index: nsswitch/winbindd_idmap.c
===
RCS file: /cvsroot/samba/source/nsswitch/winbindd_idmap.c,v
retrieving revision 1.3.4.13
diff -u -r1.3.4.13 winbindd_idmap.c
--- nsswitch/winbindd_idmap.c   27 Apr 2002 03:04:08 -  1.3.4.13
+++ nsswitch/winbindd_idmap.c   19 Dec 2002 12:32:25 -
@@ -44,6 +44,8 @@
 
 if ((hwm = tdb_fetch_int32(idmap_tdb, 
  isgroup ? HWM_GROUP : HWM_USER)) == -1) {
+DEBUG(0, (Failed to fetch %s : %s\n, isgroup ? HWM_GROUP : HWM_USER,
+tdb_errorstr(idmap_tdb)));
 return False;
 }
 
@@ -63,7 +65,45 @@
 
 /* Store new high water mark */
 
-tdb_store_int32(idmap_tdb, isgroup ? HWM_GROUP : HWM_USER, hwm);
+if (tdb_store_int32(idmap_tdb, isgroup ? HWM_GROUP : HWM_USER, hwm)) {
+DEBUG(0, (Failed to store %s %d : %s\n, isgroup ? HWM_GROUP : HWM_USER,
+hwm, tdb_errorstr(idmap_tdb)));
+return False;
+}
+
+return True;
+}
+
+/* Deallocate either a user or group id, used for failure rollback */
+
+static BOOL deallocate_id(uid_t id, BOOL isgroup)
+{
+int hwm;
+
+/* Get current high water mark */
+
+if ((hwm = tdb_fetch_int32(idmap_tdb, 
+ isgroup ? HWM_GROUP : HWM_USER)) == -1) {
+DEBUG(0, (Failed to fetch %s : %s\n, isgroup ? HWM_GROUP : HWM_USER,
+tdb_errorstr(idmap_tdb)));
+return False;
+}
+
+if (hwm != id + 1) {
+/* Should actually never happen, internal redundancy... */
+DEBUG(0, (winbind %s mismatch on deallocation!\n, isgroup ? HWM_GROUP : 
+HWM_USER));
+return False;
+}
+
+hwm--;
+
+/* Store new high water mark */
+
+if (tdb_store_int32(idmap_tdb, isgroup ? HWM_GROUP : HWM_USER, hwm)) {
+DEBUG(0, (Failed to store %s %d : %s\n, isgroup ? HWM_GROUP : HWM_USER,
+   hwm, tdb_errorstr(idmap_tdb)));
+return False;
+}
 
 return True;
 }
@@ -109,16 +149,36 @@
 fstring keystr2;
 
 /* Store new id */
-
+
 slprintf(keystr2, sizeof(keystr2), %s %d, isgroup ? GID : UID, *id);
 
 data.dptr = keystr2;
 data.dsize = strlen(keystr2) + 1;
 
-tdb_store(idmap_tdb, key, data, TDB_REPLACE);
-tdb_store(idmap_tdb, data, key, TDB_REPLACE);
+/* If any of the following actions fails try to
+   revert modifications successfully made so far. */
 
 result = True;
+
+if (result  tdb_store(idmap_tdb, key, data, TDB_REPLACE)) {
+DEBUG(0, (Failed to store id mapping %s:%s : %s\n,
+  key.dptr, data.dptr, tdb_errorstr(idmap_tdb)));
+
+if (!deallocate_id(*id, isgroup))
+DEBUG(0, (Failed to rollback id mapping\n));
+
+result = False;
+}
+
+if (result  tdb_store(idmap_tdb, data, key, TDB_REPLACE)) {
+DEBUG(0, (Failed to store reverse id mapping %s:%s : %s\n,
+  data.dptr, key.dptr, tdb_errorstr(idmap_tdb)));
+
+if (!deallocate_id(*id, isgroup) || tdb_delete(idmap_tdb, key))
+DEBUG(0, (Failed to rollback id mapping\n));
+
+result = False;
+}
 }
 }
 



RE: Samba CPU Usage with large directories ...

2002-12-19 Thread Green, Paul
Scott Taylor [mailto:[EMAIL PROTECTED]] wrote:

 We have a samba server running version 2.2.5 on kernel 2.4.18 with the SGI
XFS patch.
 The shared volume consists of an XFS partition on a 3-ware raid5
controller. The
 network connection is via a 4 port bonded pipe to the switch.

 We notice that the samba CPU usage during write operations increases
dramatically
 once a directory contains more than a certian number of files - thought to
be
 somewhere around the 1500 to 2000 mark.

 We have tried allowing samba more memory, which did not seem to help - and
have
 had little or no success finding any information on the web, hence this
post.

My guess (and that's all it is) is that this is an operating system issue. I
presume you are using Linux 2.4.18 although you didn't say.  Try writing a
small C benchmark program that just does straight fopen/fread/frwrite/fclose
operations, and time them, and see how you fare.  I'll bet you find that the
system calls (esp. the open call) take a lot longer on the big directories.

Make sure your benchmark program uses the same file naming conventions as
your real code, in case the problem has something to do with the efficiency
of hashing or searching the specific names.

PG
--
Paul Green, Senior Technical Consultant, Stratus Technologies.
Day: +1 978-461-7557; FAX: +1 978-461-3610
Speaking from Stratus not for Stratus



Re: Bug and Fix - Follow Up

2002-12-19 Thread jra
On Tue, Dec 17, 2002 at 09:01:16PM -0600, Matt Roberts, GRDA wrote:
 
 In my search for the cause of the behavior seen in my earlier post,
 I traced the function call path to these two interesting functions,
 int source/lib/util.c at about line 133:
 
 BOOL set_global_scope(const char *scope)
 {
 SAFE_FREE(smb_scope);
 smb_scope = strdup(scope);
 if (!smb_scope)
 return False;
 strupper(smb_scope);
 return True;
 }
 
 const char *global_scope(void)
 {
 return smb_scope;
 }
 
 
 Since the latter function returns the string 'smb_scope', regardless
 of what is in it, wouldn't the first function protect against being
 set to a NULL value by rewriting it similar to this?
 
 BOOL set_global_scope(const char *scope)
 {
 SAFE_FREE(smb_scope);
 
 if (!smb_scope) {
 smb_scope = strdup();
 return False;
 }
 
 smb_scope = strdup(scope);
 strupper(smb_scope);
 return True;
 }

Already committed - thanks !

Jeremy.



smbclient and large file support

2002-12-19 Thread Herb Lewis
smbclient (and smbtar) in version 2.2.7a (and prior) has problems with
large files ( 4GB). The following patch (against 2.2.7a) fixes all 
known problems with this. This code has been checked into the CVS tree
in all branches as well.

-- 
==
Herb Lewis   Silicon Graphics 
Networking Engineer  1600 Amphitheatre Pkwy MS-510
Strategic Software Organization  Mountain View, CA  94043-1351
[EMAIL PROTECTED] Tel: 650-933-2177
http://www.sgi.com   Fax: 650-932-2177  
PGP Key: 0x8408D65D
==
--- samba-2.2.7a/source/client/client.c Wed Dec  4 09:16:34 2002
+++ samba-2.2.7a-fixed/source/client/client.c   Thu Dec 19 15:41:51 2002
@@ -92,9 +92,9 @@
 
 /* timing globals */
 off_t get_total_size = 0;
-int get_total_time_ms = 0;
+unsigned int get_total_time_ms = 0;
 off_t put_total_size = 0;
-int put_total_time_ms = 0;
+unsigned int put_total_time_ms = 0;
 
 /* totals globals */
 static double dir_total;
--- samba-2.2.7a/source/client/clitar.c Tue Apr 30 06:26:18 2002
+++ samba-2.2.7a-fixed/source/client/clitar.c   Thu Dec 19 15:50:20 2002
@@ -45,10 +45,10 @@
 
 struct file_info_struct
 {
-  size_t size;
+  SMB_BIG_UINT size;
   uint16 mode;
-  int uid;
-  int gid;
+  uid_t uid;
+  gid_t gid;
   /* These times are normally kept in GMT */
   time_t mtime;
   time_t atime;
@@ -125,11 +125,11 @@
 int blocksize=20;
 int tarhandle;
 
-static void writetarheader(int f,  char *aname, int size, time_t mtime,
+static void writetarheader(int f,  char *aname, SMB_BIG_UINT size, time_t mtime,
   char *amode, unsigned char ftype);
 static void do_atar(char *rname,char *lname,file_info *finfo1);
 static void do_tar(file_info *finfo);
-static void oct_it(long value, int ndgs, char *p);
+static void oct_it(SMB_BIG_UINT value, int ndgs, char *p);
 static void fixtarname(char *tptr, char *fp, int l);
 static int dotarbuf(int f, char *b, int n);
 static void dozerobuf(int f, int n);
@@ -168,7 +168,7 @@
 /
 Write a tar header to buffer
 /
-static void writetarheader(int f,  char *aname, int size, time_t mtime,
+static void writetarheader(int f,  char *aname, SMB_BIG_UINT size, time_t mtime,
   char *amode, unsigned char ftype)
 {
   union hblock hb;
@@ -175,7 +175,7 @@
   int i, chk, l;
   char *jp;
 
-  DEBUG(5, (WriteTarHdr, Type = %c, Size= %i, Name = %s\n, ftype, size, aname));
+  DEBUG(5, (WriteTarHdr, Type = %c, Size= %.0f, Name = %s\n, ftype, (double)size, 
+aname));
 
   memset(hb.dummy, 0, sizeof(hb.dummy));
   
@@ -207,10 +207,10 @@
 
   hb.dbuf.name[NAMSIZ-1]='\0';
   safe_strcpy(hb.dbuf.mode, amode, strlen(amode));
-  oct_it(0L, 8, hb.dbuf.uid);
-  oct_it(0L, 8, hb.dbuf.gid);
-  oct_it((long) size, 13, hb.dbuf.size);
-  oct_it((long) mtime, 13, hb.dbuf.mtime);
+  oct_it((SMB_BIG_UINT)0, 8, hb.dbuf.uid);
+  oct_it((SMB_BIG_UINT)0, 8, hb.dbuf.gid);
+  oct_it((SMB_BIG_UINT) size, 13, hb.dbuf.size);
+  oct_it((SMB_BIG_UINT) mtime, 13, hb.dbuf.mtime);
   memcpy(hb.dbuf.chksum, , sizeof(hb.dbuf.chksum));
   memset(hb.dbuf.linkname, 0, NAMSIZ);
   hb.dbuf.linkflag=ftype;
@@ -217,7 +217,7 @@
   
   for (chk=0, i=sizeof(hb.dummy), jp=hb.dummy; --i=0;) chk+=(0xFF  *jp++);
 
-  oct_it((long) chk, 8, hb.dbuf.chksum);
+  oct_it((SMB_BIG_UINT) chk, 8, hb.dbuf.chksum);
   hb.dbuf.chksum[6] = '\0';
 
   (void) dotarbuf(f, hb.dummy, sizeof(hb.dummy));
@@ -450,7 +450,7 @@
 /
 Convert from decimal to octal string
 /
-static void oct_it (long value, int ndgs, char *p)
+static void oct_it (SMB_BIG_UINT value, int ndgs, char *p)
 {
   /* Converts long to octal string, pads with leading zeros */
 
@@ -621,7 +621,7 @@
 static void do_atar(char *rname,char *lname,file_info *finfo1)
 {
   int fnum;
-  uint32 nread=0;
+  SMB_BIG_UINT nread=0;
   char ftype;
   file_info2 finfo;
   BOOL close_done = False;
@@ -643,6 +643,7 @@
 finfo.mtime = finfo1 - mtime;
 finfo.atime = finfo1 - atime;
 finfo.ctime = finfo1 - ctime;
+finfo.name  = finfo1 - name;
   }
   else {
 finfo.size  = def_finfo.size;
@@ -652,13 +653,14 @@
 finfo.mtime = def_finfo.mtime;
 finfo.atime = def_finfo.atime;
 finfo.ctime = def_finfo.ctime;
+finfo.name  = def_finfo.name;
   }
 
   if (dry_run)
 {
-  DEBUG(3,(skipping file %s of size %d bytes\n,
+  DEBUG(3,(skipping file %s of size %12.0f bytes\n,
   finfo.name,
-  (int)finfo.size));
+  (double)finfo.size));
   shallitime=0;
   ttarf+=finfo.size + TBLOCK 

Returning the size of the file to Clients

2002-12-19 Thread John E. Malmberg
This was just brought up on the samba-vms list.

Samba makes calls on behalf of the client to return a file size.

The problem for this on OpenVMS, is that some of the text file sizes
include the record information.

When these files are sent to the client they are converted to a byte
stream format like UNIX uses.

But this results in a file that is a slightly different size than the
physical size of the file, usually smaller.

Only some applications, such as wordpad seem to be sensitive to this, as
others use the amount of data transferred.  It has been reported that
wordpad adds garbage bytes to the end of the buffer for the difference.

The 2.2.4 port of Samba to OpenVMS solves this by reading the entire
file in order to give the correct size.  This of course creates a big
performance hit when displaying a directory.

Is there anyway to differentiate for when the Client is opening a file
for an application, and when a directory is being listed?

I am also going to look to see if there is a more optimal way to
calculate the size of these text files.

Thanks,
-John
[EMAIL PROTECTED]
Personal Opinion Only





Time to add blocking to the mailing list?

2002-12-19 Thread B. Z. Lederman

I assume others have also seen the junk from [EMAIL PROTECTED] and
 similar addresses advertising something from
 http://www.szbookshop.com (though I'm not sure what, since it's in
 8 bit characters).

I've reported this through SpamCop, but I'm not sure it will
 do any good.  The mail originates from a network in China, and
 according to SpamCop they ignore abuse reports, at least from
 SpamCop.  My experience is that they ignore abuse reports from
 everyone.

If the administrator of this mailing list can't get any
 response from them, or the system where the URL is, I propose
 that it's now time to block the source from submitting mail to to
 the mailing list.  It appears to be the only way to deal with
 these people.

(Unless someone can read the posts and says that they are in
 fact related to the SAMBA product we're discussing here.)

Bart.




NEW STOCK PICK: TWLO - AMCG UP 461%..................................................................................................................................................................................... ejes

2002-12-19 Thread jkywWALL STREET BULLETIN… . . 46350
html
head
/head
body
p align=centerfont style=font-size: 11pt face=CourierDid you miss out on 
AMCG, UP 461%?/font/p
p align=centerfont style=font-size: 11pt face=CourierHere's another pick - 
Another SHORT PLAY/font/p
p align=centerba 
href=http://www.tristarzeus.com/103816/wall_street_bulletin.htm;CLICK 
HERE/a/b/p
p align=centerimg border=0 
src=http://www.tristarzeus.com/103816/stopwatch01.gif;/p
p align=leftnbsp;/p
p align=leftnbsp;/p
p align=centerfont size=2A 
href=http://www.tristarzeus.com/remove/cstremove.htm;Click here to unsubscribe/A
/body
/html

tiqmaasjojaejtkxquoabpqsw



CVS update: samba/source/libsmb

2002-12-19 Thread herb

Date:   Thu Dec 19 16:12:41 2002
Author: herb

Update of /data/cvs/samba/source/libsmb
In directory dp.samba.org:/tmp/cvs-serv3661/libsmb

Modified Files:
  Tag: SAMBA_2_2
clireadwrite.c 
Log Message:
set OffsetHigh if offset is  32 bits


Revisions:
clireadwrite.c  1.2.4.8 = 1.2.4.9

http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/clireadwrite.c?r1=1.2.4.8r2=1.2.4.9



CVS update: samba/source/client

2002-12-19 Thread herb

Date:   Thu Dec 19 16:16:50 2002
Author: herb

Update of /data/cvs/samba/source/client
In directory dp.samba.org:/tmp/cvs-serv4145

Modified Files:
  Tag: SAMBA_2_2
clitar.c 
Log Message:
patch from Brian Poole [EMAIL PROTECTED] for some large file size
issues in smbclient tar.


Revisions:
clitar.c1.74.4.8 = 1.74.4.9

http://www.samba.org/cgi-bin/cvsweb/samba/source/client/clitar.c?r1=1.74.4.8r2=1.74.4.9



CVS update: samba/source/lib

2002-12-19 Thread herb

Date:   Thu Dec 19 16:59:08 2002
Author: herb

Update of /data/cvs/samba/source/lib
In directory dp.samba.org:/tmp/cvs-serv8619/lib

Modified Files:
  Tag: SAMBA_2_2
snprintf.c 
Log Message:
actually print values in %g and %e formats


Revisions:
snprintf.c  1.12.4.16 = 1.12.4.17

http://www.samba.org/cgi-bin/cvsweb/samba/source/lib/snprintf.c?r1=1.12.4.16r2=1.12.4.17



CVS update: samba/source/lib

2002-12-19 Thread jra

Date:   Thu Dec 19 17:56:21 2002
Author: jra

Update of /data/cvs/samba/source/lib
In directory dp.samba.org:/tmp/cvs-serv11801/lib

Modified Files:
  Tag: APPLIANCE_HEAD
adt_tree.c 
Log Message:
Allow dmalloc usage (rename free function pointers).
Jeremy.


Revisions:
adt_tree.c  1.4.2.1 = 1.4.2.2

http://www.samba.org/cgi-bin/cvsweb/samba/source/lib/adt_tree.c?r1=1.4.2.1r2=1.4.2.2



CVS update: samba/source/include

2002-12-19 Thread jra

Date:   Thu Dec 19 17:56:21 2002
Author: jra

Update of /data/cvs/samba/source/include
In directory dp.samba.org:/tmp/cvs-serv11801/include

Modified Files:
  Tag: APPLIANCE_HEAD
adt_tree.h includes.h smb.h 
Log Message:
Allow dmalloc usage (rename free function pointers).
Jeremy.


Revisions:
adt_tree.h  1.1.2.1 = 1.1.2.2

http://www.samba.org/cgi-bin/cvsweb/samba/source/include/adt_tree.h?r1=1.1.2.1r2=1.1.2.2
includes.h  1.189.2.22 = 1.189.2.23

http://www.samba.org/cgi-bin/cvsweb/samba/source/include/includes.h?r1=1.189.2.22r2=1.189.2.23
smb.h   1.323.2.42 = 1.323.2.43

http://www.samba.org/cgi-bin/cvsweb/samba/source/include/smb.h?r1=1.323.2.42r2=1.323.2.43



CVS update: samba/source/lib

2002-12-19 Thread herb

Date:   Thu Dec 19 19:57:37 2002
Author: herb

Update of /data/cvs/samba/source/lib
In directory dp.samba.org:/tmp/cvs-serv20087

Modified Files:
  Tag: SAMBA_3_0
snprintf.c 
Log Message:
merge from 2.2
actually print args for %g and %e


Revisions:
snprintf.c  1.25.2.1 = 1.25.2.2

http://www.samba.org/cgi-bin/cvsweb/samba/source/lib/snprintf.c?r1=1.25.2.1r2=1.25.2.2



CVS update: samba/source/lib

2002-12-19 Thread herb

Date:   Thu Dec 19 19:56:31 2002
Author: herb

Update of /data/cvs/samba/source/lib
In directory dp.samba.org:/tmp/cvs-serv19913

Modified Files:
snprintf.c 
Log Message:
merge from 2.2
actually print args for %g and %e


Revisions:
snprintf.c  1.31 = 1.32
http://www.samba.org/cgi-bin/cvsweb/samba/source/lib/snprintf.c?r1=1.31r2=1.32



CVS update: samba/source/libsmb

2002-12-19 Thread herb

Date:   Thu Dec 19 20:23:45 2002
Author: herb

Update of /data/cvs/samba/source/libsmb
In directory dp.samba.org:/tmp/cvs-serv21579

Modified Files:
clireadwrite.c 
Log Message:
merge from 2.2 fix for smbclient large files


Revisions:
clireadwrite.c  1.20 = 1.21

http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/clireadwrite.c?r1=1.20r2=1.21



CVS update: samba/source/libsmb

2002-12-19 Thread herb

Date:   Thu Dec 19 20:25:16 2002
Author: herb

Update of /data/cvs/samba/source/libsmb
In directory dp.samba.org:/tmp/cvs-serv21670

Modified Files:
  Tag: SAMBA_3_0
clireadwrite.c 
Log Message:
merge from 2.2 fix for smbclient large files


Revisions:
clireadwrite.c  1.16.2.3 = 1.16.2.4

http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/clireadwrite.c?r1=1.16.2.3r2=1.16.2.4



CVS update: samba/source/client

2002-12-19 Thread herb

Date:   Thu Dec 19 20:26:44 2002
Author: herb

Update of /data/cvs/samba/source/client
In directory dp.samba.org:/tmp/cvs-serv21839

Modified Files:
  Tag: SAMBA_3_0
clitar.c 
Log Message:
merge from 2.2 fix for smbclient large files


Revisions:
clitar.c1.88.2.3 = 1.88.2.4

http://www.samba.org/cgi-bin/cvsweb/samba/source/client/clitar.c?r1=1.88.2.3r2=1.88.2.4



CVS update: samba/source/lib

2002-12-19 Thread jerry

Date:   Thu Dec 19 20:30:44 2002
Author: jerry

Update of /data/cvs/samba/source/lib
In directory dp.samba.org:/tmp/cvs-serv22047/lib

Added Files:
  Tag: APPLIANCE_HEAD
dmallocmsg.c 
Log Message:
merging dmalloc support from HEAD in order to track down memory leaks

Revisions:
dmallocmsg.c1.1.2.2 = 1.1.2.3

http://www.samba.org/cgi-bin/cvsweb/samba/source/lib/dmallocmsg.c?r1=1.1.2.2r2=1.1.2.3



CVS update: samba/source/utils

2002-12-19 Thread jerry

Date:   Thu Dec 19 20:30:46 2002
Author: jerry

Update of /data/cvs/samba/source/utils
In directory dp.samba.org:/tmp/cvs-serv22047/utils

Modified Files:
  Tag: APPLIANCE_HEAD
smbcontrol.c 
Log Message:
merging dmalloc support from HEAD in order to track down memory leaks

Revisions:
smbcontrol.c1.7.2.21 = 1.7.2.22

http://www.samba.org/cgi-bin/cvsweb/samba/source/utils/smbcontrol.c?r1=1.7.2.21r2=1.7.2.22



CVS update: samba/source/smbd

2002-12-19 Thread jerry

Date:   Thu Dec 19 20:30:46 2002
Author: jerry

Update of /data/cvs/samba/source/smbd
In directory dp.samba.org:/tmp/cvs-serv22047/smbd

Modified Files:
  Tag: APPLIANCE_HEAD
server.c 
Log Message:
merging dmalloc support from HEAD in order to track down memory leaks

Revisions:
server.c1.304.2.28 = 1.304.2.29

http://www.samba.org/cgi-bin/cvsweb/samba/source/smbd/server.c?r1=1.304.2.28r2=1.304.2.29



CVS update: samba/source/nmbd

2002-12-19 Thread jra

Date:   Thu Dec 19 22:14:40 2002
Author: jra

Update of /data/cvs/samba/source/nmbd
In directory dp.samba.org:/tmp/cvs-serv29717/nmbd

Modified Files:
  Tag: SAMBA_3_0
nmbd_namequery.c 
Log Message:
Protect nmbd against malformed reply packets. Some reports on the lists showing
these. 
Jeremy.


Revisions:
nmbd_namequery.c1.18.2.1 = 1.18.2.2

http://www.samba.org/cgi-bin/cvsweb/samba/source/nmbd/nmbd_namequery.c?r1=1.18.2.1r2=1.18.2.2



CVS update: samba/source/nmbd

2002-12-19 Thread jra

Date:   Thu Dec 19 22:14:53 2002
Author: jra

Update of /data/cvs/samba/source/nmbd
In directory dp.samba.org:/tmp/cvs-serv29771/nmbd

Modified Files:
nmbd_namequery.c 
Log Message:
Protect nmbd against malformed reply packets. Some reports on the lists showing
these.
Jeremy.


Revisions:
nmbd_namequery.c1.19 = 1.20

http://www.samba.org/cgi-bin/cvsweb/samba/source/nmbd/nmbd_namequery.c?r1=1.19r2=1.20



CVS update: samba/source/nmbd

2002-12-19 Thread jra

Date:   Thu Dec 19 22:14:56 2002
Author: jra

Update of /data/cvs/samba/source/nmbd
In directory dp.samba.org:/tmp/cvs-serv28526/nmbd

Modified Files:
  Tag: APPLIANCE_HEAD
nmbd_namequery.c 
Log Message:
Protect nmbd against malformed reply packets. Some reports on the lists showing
these. No CR#.
Jeremy.


Revisions:
nmbd_namequery.c1.10.2.3 = 1.10.2.4

http://www.samba.org/cgi-bin/cvsweb/samba/source/nmbd/nmbd_namequery.c?r1=1.10.2.3r2=1.10.2.4



CVS update: samba/source/nmbd

2002-12-19 Thread herb

Date:   Thu Dec 19 22:30:22 2002
Author: herb

Update of /data/cvs/samba/source/nmbd
In directory dp.samba.org:/tmp/cvs-serv31512/nmbd

Modified Files:
  Tag: SAMBA_2_2
nmbd_namequery.c 
Log Message:
merge from head
Protect nmbd against malformed reply packets. Some reports on the lists showing
these. 


Revisions:
nmbd_namequery.c1.10.4.8 = 1.10.4.9

http://www.samba.org/cgi-bin/cvsweb/samba/source/nmbd/nmbd_namequery.c?r1=1.10.4.8r2=1.10.4.9



Re: CVS update: samba/source/nmbd

2002-12-19 Thread Christopher R. Hertel
On Thu, Dec 19, 2002 at 05:14:40PM -0500, [EMAIL PROTECTED] wrote:
 
 Date: Thu Dec 19 22:14:40 2002
 Author:   jra
 
 Update of /data/cvs/samba/source/nmbd
 In directory dp.samba.org:/tmp/cvs-serv29717/nmbd
 
 Modified Files:
   Tag: SAMBA_3_0
   nmbd_namequery.c 
 Log Message:
 Protect nmbd against malformed reply packets. Some reports on the lists
 showing these. 
 Jeremy.

Just curious... Are these the malformed replies from the W2K WINS server?
Mike Allen (jCIFS) noted these as well.

Chris -)-

-- 
Samba Team -- http://www.samba.org/ -)-   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/ -)-   [EMAIL PROTECTED]
OnLineBook -- http://ubiqx.org/cifs/-)-   [EMAIL PROTECTED]



Re: CVS update: samba/source/nmbd

2002-12-19 Thread jra
On Thu, Dec 19, 2002 at 04:33:39PM -0600, Christopher R. Hertel wrote:
 On Thu, Dec 19, 2002 at 05:14:40PM -0500, [EMAIL PROTECTED] wrote:
  
  Date:   Thu Dec 19 22:14:40 2002
  Author: jra
  
  Update of /data/cvs/samba/source/nmbd
  In directory dp.samba.org:/tmp/cvs-serv29717/nmbd
  
  Modified Files:
Tag: SAMBA_3_0
  nmbd_namequery.c 
  Log Message:
  Protect nmbd against malformed reply packets. Some reports on the lists
  showing these. 
  Jeremy.
 
 Just curious... Are these the malformed replies from the W2K WINS server?
 Mike Allen (jCIFS) noted these as well.

Dunno actually - I just got a stack backtrace showing where nmbd was
going down and it was dereferencing a pointer that should always be
valid in a valid reply packet. So I added a NULL check :-).

Happy Christmas !

Jeremy.



CVS update: samba/source/utils

2002-12-19 Thread jht

Date:   Thu Dec 19 22:55:35 2002
Author: jht

Update of /data/cvs/samba/source/utils
In directory dp.samba.org:/tmp/cvs-serv1020

Modified Files:
  Tag: SAMBA_2_2
pdbedit.c 
Log Message:
Changed -b option to -t to avoid conflict with Samba-3.0.0 and Samba-Head branches.


Revisions:
pdbedit.c   1.9.2.10 = 1.9.2.11

http://www.samba.org/cgi-bin/cvsweb/samba/source/utils/pdbedit.c?r1=1.9.2.10r2=1.9.2.11



CVS update: samba/source/python/examples/tdbpack

2002-12-19 Thread tpot

Date:   Fri Dec 20 01:16:07 2002
Author: tpot

Update of /data/cvs/samba/source/python/examples/tdbpack
In directory dp.samba.org:/tmp/cvs-serv15064/python/examples/tdbpack

Added Files:
  Tag: SAMBA_3_0
.cvsignore 
Log Message:
Ignore python compiled files.


Revisions:
.cvsignore  NONE = 1.1.2.1

http://www.samba.org/cgi-bin/cvsweb/samba/source/python/examples/tdbpack/.cvsignore?rev=1.1.2.1



CVS update: samba/source/python

2002-12-19 Thread tpot

Date:   Fri Dec 20 01:19:04 2002
Author: tpot

Update of /data/cvs/samba/source/python
In directory dp.samba.org:/tmp/cvs-serv15384/python

Modified Files:
  Tag: SAMBA_3_0
py_tdbpack.c 
Log Message:
Merge from HEAD:

CR1333: Fix memory leak when unpacking some structures.

* (pytdbunpack_item): PyList_Append creates an additional reference to
  the appended object.  Therefore, release the initial reference after
  it's added to the list.


Revisions:
py_tdbpack.c1.1.2.8 = 1.1.2.9

http://www.samba.org/cgi-bin/cvsweb/samba/source/python/py_tdbpack.c?r1=1.1.2.8r2=1.1.2.9



  1   2   >