Re: REPOST: Meaning of tdb_free: left read failed at ...?

2003-02-04 Thread Ralf G. R. Bergs
On Mon, 03 Feb 2003 17:20:26 -0600 (CST), Gerald (Jerry) Carter wrote:

[...]
Looks like the tdb went over the 4Gb line.  As a quick work around,
Stop nmbd; rm /var/run/samba/unexpected.tdb; and start nmbd back up.

No, this has never been a work-around. The problem comes up again VERY quickly.

It looks like an overflow in the tdb read offset.  I don't think tdb's 
support 64-bit file size (of the actual tdb itself) IIRC.  This is by 
design I believe.

What exactly does that mean? I compiled Samba with large file support. Was this 
an error? I absolutely NEED large-file support. (To recap, this is under 
Debian/GNU Linux/i386 3.0, running kernel 2.4.20.)

Thanks,

Ralf


-- 
   L I N U X   .~.
  The  Choice  /V\
   of a  GNU  /( )\
  Generation  ^^-^^





Re: A Union of two directories

2003-02-04 Thread Stefan (metze) Metzmacher
At 01:29 04.02.2003 +1100, Arthur Barrett wrote:

Hi All!

I am new to Samba and this group and I have a question...

My company wants to make a custom version of Samba which is capable of
creating a share which is actually a union of two directories.

ie: instead of the share \\samba\arthur being /home/arthur,
we want the share \\samba\arthur to be the union of the two directories
/home/common and /home/arthur

Why?  It's all to do with version control and limitations in other software.
The idea is to create a reserved checkout in a single directory.  ie: all
the read only code is in /home/common and the checked out code is in
/home/arthur, but the silly end product software wants all the files in 1
directory (\\samba\arthur).  Oh woe is me!

So my question is: which source code file is the one that actually opens
files in the unix file system ?

Additionally - is anyone else interested in the result ?


yep, it would be fine to have a readonly dir with the samba source tree
and for each machine I connect from a writeable dir where the *.o files and 
the binaries are stored.

so I can have one source tree and can compile it on different machines

and if I make changes to the source I didn't need to merge them each time 
to the dir
witch the other machine use.

...



metze
-
Stefan metze Metzmacher [EMAIL PROTECTED] 



Re: REPOST: Meaning of tdb_free: left read failed at ...?

2003-02-04 Thread Ralf G. R. Bergs
On Sun, 02 Feb 2003 15:44:18 +0100, Simo Sorce wrote:

 The system in question is a Debian i386 stable (3.0) system, kernel is 
 2.4.20 release (with some patches such as EVMS and XFS, but EVMS is NOT in 
use 
 for shares exported via Samba!!), Samba is 2.2.7a (a Debian package that I 
 created myself.)

I would try again with a standard ext2/3 file system.

Ok, now /var/run/samba is an ext3 filesystem -- and the problem is back again. 
:-(

So you could argue, Ok, it's EVMS then which is the culprit, because 
filesystem is on an EVMS logical volume.

But I simply cannot believe this.

Why should Samba be the ONLY (apparent) application that doesn't feel happy with 
XFS over EVMS?

Any thoughts?


-- 
   L I N U X   .~.
  The  Choice  /V\
   of a  GNU  /( )\
  Generation  ^^-^^





RE: Samba 3.0alpha21, Windows XP SP1 and Kerberos authentication

2003-02-04 Thread Antti Tikkanen
On Fri, 31 Jan 2003, P Ranjit Kumar wrote:

 I have been having this problem for a long time now. I have a few questions
 on how you have configured it.

 1) How did you create the service principal host/machine.domain.com@REALM in
 Windows 2000 KDC?

I created it with OpenLDAP's ldapmodify after I joined the machine to the
domain. An LDIF like this should work:

  dn: CN=machine_name,CN=Computers,DC=win,DC=hut,DC=fi
  changetype: modify
  add: servicePrincipalName
  servicePrincipalName: CIFS/machine.example.com

 2) Did the setup work with any Windows 2000 clients?

I did not have a chance to test this yet, all our clients are currently
XP. I will do this any day now.

 3) Do you have any other services, such as telnet etc., that want to use
 Kerberos on your Linux box?

Nope, not at this moment.

I will be doing some comparative traces, as was suggested in another post.
I'll post the results here as well, in case someone is interested.

Regards,
Antti





Re: A Union of two directories

2003-02-04 Thread Stefan (metze) Metzmacher
At 10:14 04.02.2003 +0100, Stefan (metze) Metzmacher wrote:

At 01:29 04.02.2003 +1100, Arthur Barrett wrote:

Hi All!

I am new to Samba and this group and I have a question...

My company wants to make a custom version of Samba which is capable of
creating a share which is actually a union of two directories.

ie: instead of the share \\samba\arthur being /home/arthur,
we want the share \\samba\arthur to be the union of the two directories
/home/common and /home/arthur

Why?  It's all to do with version control and limitations in other software.
The idea is to create a reserved checkout in a single directory.  ie: all
the read only code is in /home/common and the checked out code is in
/home/arthur, but the silly end product software wants all the files in 1
directory (\\samba\arthur).  Oh woe is me!

So my question is: which source code file is the one that actually opens
files in the unix file system ?

Additionally - is anyone else interested in the result ?


yep, it would be fine to have a readonly dir with the samba source tree
and for each machine I connect from a writeable dir where the *.o files 
and the binaries are stored.

so I can have one source tree and can compile it on different machines

and if I make changes to the source I didn't need to merge them each time 
to the dir
witch the other machine use.

It would be fine to have config options for match witch files should be 
taken from with
directory.

something like this:
dir1 path = /home/samba
dir1 mode = readonly
dir1 files = *.c,*.h,configure,Makefile
dir1 exclude files = *.o
dir2 path = /home/%m/samba
dir2 mode = write
dir2 files = *.o
dir2 exclude files = *.c,*.h

and something simular for directories


metze
-
Stefan metze Metzmacher [EMAIL PROTECTED] 



Re: REPOST: Meaning of tdb_free: left read failed at ...?

2003-02-04 Thread Alexander Bokovoy
On Tue, Feb 04, 2003 at 10:17:34AM +0100, Ralf G. R. Bergs wrote:
 Ok, now /var/run/samba is an ext3 filesystem -- and the problem is back again. 
 :-(
 
 So you could argue, Ok, it's EVMS then which is the culprit, because 
 filesystem is on an EVMS logical volume.
 
 But I simply cannot believe this.
We have here XFS+EVMS (1.2) combination running with Samba shares. Never
experienced the problem with tdb.

-- 
/ Alexander Bokovoy
---
The way of the world is to praise dead saints and prosecute live ones.
-- Nathaniel Howe



Re: REPOST: Meaning of tdb_free: left read failed at ...?

2003-02-04 Thread Volker Lendecke
On Tue, Feb 04, 2003 at 10:17:34AM +0100, Ralf G. R. Bergs wrote:
 Ok, now /var/run/samba is an ext3 filesystem -- and the problem is back
 again.  :-(

Thanks nevertheless. As one resort, could you try

use mmap = no

Volker



msg05756/pgp0.pgp
Description: PGP signature


Re: A Union of two directories

2003-02-04 Thread David Lee
On Tue, 4 Feb 2003, Stefan (metze) Metzmacher wrote:

 It would be fine to have config options for match witch files should be 
 taken from with
 directory.
 
 something like this:
 dir1 path = /home/samba
 dir1 mode = readonly
 dir1 files = *.c,*.h,configure,Makefile
 dir1 exclude files = *.o
 dir2 path = /home/%m/samba
 dir2 mode = write
 dir2 files = *.o
 dir2 exclude files = *.c,*.h
 
 and something simular for directories

But what about cases where a .c file is not readonly source but rather
the result of a write, such as from yacc/bison?  Similarly where Makefile
is written from a source Makefile.in ?  And so on. 

Way, way back in the days of SunOS 4.1.x, Sun had their translucent file
service: tfs.  (We never used this; I simply recall its existence.) 
Might this model be the sort of thing you are looking for?  I see that the
man pages for Sun's tfs are still around (I found a copy on the FreeBSD
WWW site).

See: 
   http://www.freebsd.org/
select SunOS 4.1.3 as the OS, and search for 'tfs'.

Hope that helps.

-- 

:  David LeeI.T. Service  :
:  Systems Programmer   Computer Centre   :
:   University of Durham  :
:  http://www.dur.ac.uk/t.d.lee/South Road:
:   Durham:
:  Phone: +44 191 374 2882  U.K.  :




RE: Samba 3.0alpha21, Windows XP SP1 and Kerberos authentication

2003-02-04 Thread Luke Howard

 I have been having this problem for a long time now. I have a few questions
 on how you have configured it.

 1) How did you create the service principal host/machine.domain.com@REALM in
 Windows 2000 KDC?

I created it with OpenLDAP's ldapmodify after I joined the machine to the
domain. An LDIF like this should work:

Interesting. According to Microsoft documentation, the servicePrincipalName
can never be modified over LDAP, only over RPC.

-- Luke

--
Luke Howard | PADL Software Pty Ltd | www.padl.com



Re: A Union of two directories

2003-02-04 Thread Simo Sorce
On Tue, 2003-02-04 at 11:03, David Lee wrote:
 On Tue, 4 Feb 2003, Stefan (metze) Metzmacher wrote:
 
  It would be fine to have config options for match witch files should be 
  taken from with
  directory.
  
  something like this:
  dir1 path = /home/samba
  dir1 mode = readonly
  dir1 files = *.c,*.h,configure,Makefile
  dir1 exclude files = *.o
  dir2 path = /home/%m/samba
  dir2 mode = write
  dir2 files = *.o
  dir2 exclude files = *.c,*.h
  
  and something simular for directories

I think the easiest thing is to have a background common read-only directory

only few parameter needed:

background path = /home/common
background write_over = yes|no

all the files present here will be seen as read-only by everyone.
if you open the file read-write you may choose to either fail the
open or copy over the file to the user directory and use that file
instead.
In this situation only files _not_ present in user directory are taken
from the background dir, so that user created one are in foreground.

Simo.


-- 
Simo Sorce - [EMAIL PROTECTED]
Xsec s.r.l.
via Durando 10 Ed. G - 20158 - Milano
tel. +39 02 2399 7130 - fax: +39 02 700 442 399



signature.asc
Description: This is a digitally signed message part


Printing server role in testparm

2003-02-04 Thread Volker Lendecke
Hi!

Trivial patch, but for me quite useful. It was a surprise to see that
simply saying 'domain logons = yes' (nothing in domain master) gives
us ROLE_DOMAIN_PDC...

Volker

Index: samba/source/utils/testparm.c
===
RCS file: /space/vl/cvstree/samba/source/utils/testparm.c,v
retrieving revision 1.60
diff -u -r1.60 testparm.c
--- samba/source/utils/testparm.c   13 Jan 2003 13:03:25 -  1.60
+++ samba/source/utils/testparm.c   31 Jan 2003 17:35:03 -
@@ -289,6 +289,26 @@
fflush(stdout);
getc(stdin);
}
+
+   printf(Server role: );
+   switch(lp_server_role()) {
+   case ROLE_STANDALONE:
+   printf(ROLE_STANDALONE\n);
+   break;
+   case ROLE_DOMAIN_MEMBER:
+   printf(ROLE_DOMAIN_MEMBER\n);
+   break;
+   case ROLE_DOMAIN_BDC:
+   printf(ROLE_DOMAIN_BDC\n);
+   break;
+   case ROLE_DOMAIN_PDC:
+   printf(ROLE_DOMAIN_PDC\n);
+   break;
+   default:
+   printf(Unknown -- internal error?\n);
+   break;
+   }
+   
lp_dump(stdout, show_defaults, lp_numservices());
}
 



[no subject]

2003-02-04 Thread mmessaoudi

Hi everybody,

We are experiencing strange problems
with shared printers on samba 2.2.7a (the same phenomenon was observed
in 2.2.5).

Printing from Win9x, WinNT, Win2k works.

But when we try openning the printer,
from Win9x and Win2K: ok

From WinNT, we receive an Access
denied Message.

Here is an excrept of the debeug level=4.
[2003/02/04 12:05:54, 3] rpc_server/srv_spoolss_nt.c:_spoolss_open_printer_ex(1181)
 access DENIED for printer open


regards

Re: Win9x, samba 3, user list

2003-02-04 Thread Dmitry Melekhov
hello!

Sorry for late reply :-(
Here it is.

Thank you!

Richard Sharpe wrote:

On Fri, 31 Jan 2003, Dmitry Melekhov wrote:



Hello!

I can't get users list on win 98 with current CVS, it says something 
like- try later.

And I see  this in log
2003/01/31 13:41:05, 1] smbd/ipc.c:api_fd_reply(284)
  api_fd_reply: INVALID PIPE HANDLE: 0

Certanly, I can provide log with level 10 :-)


Would probably be helpful if you provided a trace as well.

Regards
-
Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, 
sharpe[at]ethereal.com, http://www.richardsharpe.com





log.dm-win98.gz
Description: GNU Zip compressed data


RE: Samba 3.0alpha21, Windows XP SP1 and Kerberos authentication

2003-02-04 Thread Antti Tikkanen
On Tue, 4 Feb 2003, Luke Howard wrote:

 I created it with OpenLDAP's ldapmodify after I joined the machine to the
 domain. An LDIF like this should work:

 Interesting. According to Microsoft documentation, the servicePrincipalName
 can never be modified over LDAP, only over RPC.

Well, what can I say :) I did not actually modify an existing
servicePrincipalName, I just added a new one. Does that make a difference?
All the principal names Samba created are still there.

Antti

-- 

[EMAIL PROTECTED]
Helsinki University of Technology
Computing Centre




Bottleneck with Winbind and NT ACLs in 2.2.7a

2003-02-04 Thread Michael Steffens
Hi,

we are running a big Samba 2.2.7a server with Winbind (100 concurrent
users, 600 id mappings created since then) since last weekend.

It's running quite well! :)

However, users are complaining about Samba being very slow when
NT ACL support is enabled. I'm suspecting that winbindd is the
bottleneck.

In winbindd's log I can see that it has to serve [ug]id to sid
requests at a very high frequency. Most of them seem to be triggered
by smbd daemons working on POSIX ACLs, and the UIDs and GIDs
requested are almost always those of the user running a session.
Requests are keeping winbindd busy all the time. And when winbindd
is busy talking to DCs, user sessions have to wait for ACL settings
to complete.

As the ID mappings are static - as soon as they exist - wouldn't it
be a good idea to have smbd cache those it has come across in the
current session?

In the attached patch I have tried to implement such a local
mapping cache for smbd. What do you think about it?

Cheers!
Michael

Index: source/smbd/uid.c
===
RCS file: /cvsroot/samba/source/smbd/uid.c,v
retrieving revision 1.50.4.27
diff -u -r1.50.4.27 uid.c
--- source/smbd/uid.c   7 Jun 2002 03:49:15 -   1.50.4.27
+++ source/smbd/uid.c   4 Feb 2003 12:49:25 -
@@ -24,6 +24,164 @@
 /* what user is current? */
 extern struct current_user current_user;
 
+/* Id mapping cache.  This is to avoid Winbind mappings already
+   seen by smbd to be queried too frequently, keeping winbindd
+   busy, and blocking smbd while winbindd is busy with other
+   stuff. */
+
+#define UID_SID_CACHE_SIZE 256
+#define GID_SID_CACHE_SIZE 256
+
+static int n_uid_sid_cache = 0;
+static int n_gid_sid_cache = 0;
+
+static struct {uid_t uid; DOM_SID sid;} uid_sid_cache[UID_SID_CACHE_SIZE];
+static struct {gid_t gid; DOM_SID sid;} gid_sid_cache[GID_SID_CACHE_SIZE];
+
+
+/* convert uid to sid from cache */
+
+static BOOL fetch_sid_from_uid_cache(DOM_SID *psid, uid_t uid) {
+   int i;
+   fstring sid;
+
+   for (i = 0; i  n_uid_sid_cache; i++) {
+   if (uid_sid_cache[i].uid == uid) {
+   *psid = uid_sid_cache[i].sid;
+   DEBUG(3,(fetch sid from uid cache %u - %s\n,
+   (unsigned int)uid, sid_to_string(sid, psid)));
+   return TRUE;
+   }
+   }
+   return False;
+}
+
+
+/* convert sid to uid from cache */
+
+static BOOL fetch_uid_from_cache(uid_t *puid, DOM_SID *psid) {
+   int i;
+   fstring sid;
+
+   for (i = 0; i  n_uid_sid_cache; i++) {
+   if (sid_compare(uid_sid_cache[i].sid, psid) == 0) {
+   *puid = uid_sid_cache[i].uid;
+   DEBUG(3,(fetch uid from cache %u - %s\n,
+   (unsigned int)*puid, sid_to_string(sid, psid)));
+   return TRUE;
+   }
+   }
+   return False;
+}
+
+
+/* store uid mapping in cache */
+
+static void store_uid_sid_cache(DOM_SID *psid, uid_t uid) {
+   int i;
+   fstring sid;
+
+   /* first lookup whether cache entry already exists, */
+
+   for (i = 0; i  n_uid_sid_cache; i++) {
+   if (uid_sid_cache[i].uid == uid) {
+   if (sid_compare(psid, uid_sid_cache[i].sid)) {
+   DEBUG(0,(Warning: uid mapping has changed to %u - 
+%s\n,
+   (unsigned int)uid, sid_to_string(sid, psid)));
+   goto store;
+   }
+   return;
+   }
+   }
+   if (n_uid_sid_cache  UID_SID_CACHE_SIZE) {
+   i = n_uid_sid_cache++;
+   } else {
+   /* cache full, overwrite random old entry */
+   i = rand() % UID_SID_CACHE_SIZE;
+   DEBUG(3,(overwrite uid mapping [%d] in cache: %u - %s\n, i,
+   (unsigned int)uid_sid_cache[i].uid,
+   sid_to_string(sid, uid_sid_cache[i].sid)));
+   }
+
+ store:
+   uid_sid_cache[i].uid = uid;
+   uid_sid_cache[i].sid = *psid;
+   DEBUG(3,(store uid mapping in cache %u - %s\n,
+   (unsigned int)uid, sid_to_string(sid, psid)));
+}
+
+
+/* convert gid to sid from cache */
+
+static BOOL fetch_sid_from_gid_cache(DOM_SID *psid, gid_t gid) {
+   int i;
+   fstring sid;
+
+   for (i = 0; i  n_gid_sid_cache; i++) {
+   if (gid_sid_cache[i].gid == gid) {
+   *psid = gid_sid_cache[i].sid;
+   DEBUG(3,(fetch sid from gid cache %u - %s\n,
+   (unsigned int)gid, sid_to_string(sid, psid)));
+   return TRUE;
+   }
+   }
+   return False;
+}
+
+
+/* convert sid to gid from cache */
+
+static BOOL fetch_gid_from_cache(gid_t *pgid, DOM_SID *psid) {
+   int i;
+   fstring sid;
+
+   for (i = 

RE: Samba 3.0alpha21, Windows XP SP1 and Kerberos authentication

2003-02-04 Thread Luke Howard

On Tue, 4 Feb 2003, Luke Howard wrote:

 I created it with OpenLDAP's ldapmodify after I joined the machine to the
 domain. An LDIF like this should work:

 Interesting. According to Microsoft documentation, the servicePrincipalName
 can never be modified over LDAP, only over RPC.

Well, what can I say :) I did not actually modify an existing
servicePrincipalName, I just added a new one. Does that make a difference?
All the principal names Samba created are still there.

Well, I have never tried it :-)

I was going by the documentation at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netdir/ad/how_a_service_registers_its_spns.asp

-- Luke

--
Luke Howard | PADL Software Pty Ltd | www.padl.com



RE: 2.0.7-XP compability ?

2003-02-04 Thread Ulf Bertilsson
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On Thu, 30 Jan 2003, Ulf Bertilsson wrote:
 
  I wonder what this means ?:
  
  error packet at line 878 cmd=162 (SMBntcreateX) eclass=1 ecode=32
 
 You could grab the #defines from incluee/doserr.h
 
 /* Error classes */
 
 #define ERRDOS 0x01  /* Error is from the core DOS 
 operating system set. */
 
 
 /* SMB X/Open error codes for the ERRDOS error class */
 
 #define ERRbadshare 32 /* Share mode on file conflict with 
 open mode */

Jerry,

How can I best identify if this is in my os 
custiom posix wrapper, or an issue in the samba 2.0.7 core code ?

What is I disable file locking all together ?

My issue is basicly that any file I modify get locked.

Deleting /samba/var/locks/* and restart smbd seems to solve it.

My point is, that altho samba reports or think the file is locked,
it _not_ looked at local level.

Any input if this is a good way to trace this issue ?

Network traces, debug files etc will be available as soon
as I get more time on my hands.

Also let me know if anybody would work on this offlist
if they feel this is off topic.

--
Ulf



RE: 2.0.7-XP compability ?

2003-02-04 Thread Green, Paul
Ulf Bertilsson [mailto:[EMAIL PROTECTED]] asks:
 How can I best identify if this is in my os 
 custiom posix wrapper, or an issue in the samba 2.0.7 core code ?

I can give you a version of source/lib/system.c for 2.0.7 that has built-in
tracing capabilities. We don't have truss on our system, so I added
similar support directly into system.c.  Drop me a line if you think it
would help you out.

PG
--
Paul Green, Senior Technical Consultant, Stratus Technologies, Maynard, MA
USA
Voice: +1 978-461-7557; FAX: +1 978-461-3610
Speaking from Stratus not for Stratus



RE: A Union of two directories

2003-02-04 Thread Esh, Andrew
Nice description Simo. It caused me to think.

I can see two cases for the use of such a union. The first is where the user
wants to make a foreground overlay which they can edit, where files are made
read-write by copying from the background to the foreground. This appears
the same as a normal file system until the background share is unmounted.
Then, the skeleton of the tree and the user's edited files are all that
remains. Unless such a system is used under the control of a tool such as
ClearCase, I don't see what utility it would have in the general market.
(Consider the merges, or the fact that the changes would always be separate.
Neither case is both common and simple.) Perhaps there are software
engineering applications. It would take a software engineer to operate it.
;)

The second case is where Simo's option background write_over is turned
off. This effectively puts the background in the foreground, and prevents
writing. The user's read-write underlay then occupies any file namespace
not covered by the read-only overlay. This would be useful for system
directories such as network storage areas that contain organization-wide
applications. It would be mounted on the user's Program Files folder, for
example. Mounting their personal applications folder in the same place would
cause their own applications to appear to be installed side-by-side with the
shared ones. Any conflict would cause the read-only system version of the
file to show through. Writing a file into the combined folders would only be
allowed if the file doesn't already exist, or if it only exists in the
personal folder. This configuration would appeal to system administrators,
who want to make sure the users have access to centrally maintained
applications, without giving the users the ability to alter the
applications.

Opposite to the above, the user may want to be able to overlay their
personal folder on the shared one. Going back to the Program Files
example, this would allow one user to install an updated version of an
application over an older version of the same application in the shared
folder. This configuration would be useful in supporting a super-user who
takes responsibility for maintaining their own applications, who wants to
take advantage of the default installations.

Given my assumption that dir1 and dir2 (dir3? dir4?) are keywords
which can be used to determine the background-to-foreground order of the
overlay, and the inclusion of the read-only read-write controls which
are already available, the latter two configurations can be accomplished.
Perhaps a better way would be to introduce a meta-share, which names a
number of other shares, the order in which they should be overlaid, and
their write status. Other normal share keywords controlling user access
could also be applied. Here is an example of the second configuration
described above:

[accounting_apps]
path=/storage/shared
public = yes
writable = no
guest ok = yes

[john_doe_personal_apps]
path=/storage/home/john_doe/apps
public = no
writable = yes
guest ok = no
valid users = @CENTRAL+John Doe
write list = @CENTRAL+John Doe

[john_doe_apps]
meta share = accounting_apps, john_doe_personal_apps
write control = no, yes
public = no
valid users = @CENTRAL+John Doe
write list = @CENTRAL+John Doe

Note that shares named to the left in the meta share keyword are in the
foreground. The write control keyword arguments refer by order to the
shares named in the meta share keyword.

By changing the order of the meta share and the write control arguments,
this configuration becomes the super-user example.

In my opinion, this would be useful.

As was said earlier, this all belongs in a VFS layer.

 -Original Message-
 From: Simo Sorce [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 04, 2003 4:38 AM
 To: David Lee
 Cc: Stefan (metze) Metzmacher; '[EMAIL PROTECTED]'
 Subject: Re: A Union of two directories
 
 
 On Tue, 2003-02-04 at 11:03, David Lee wrote:
  On Tue, 4 Feb 2003, Stefan (metze) Metzmacher wrote:
  
   It would be fine to have config options for match witch 
 files should be 
   taken from with
   directory.
   
   something like this:
   dir1 path = /home/samba
   dir1 mode = readonly
   dir1 files = *.c,*.h,configure,Makefile
   dir1 exclude files = *.o
   dir2 path = /home/%m/samba
   dir2 mode = write
   dir2 files = *.o
   dir2 exclude files = *.c,*.h
   
   and something simular for directories
 
 I think the easiest thing is to have a background common 
 read-only directory
 
 only few parameter needed:
 
 background path = /home/common
 background write_over = yes|no
 
 all the files present here will be seen as read-only by everyone.
 if you open the file read-write you may choose to either fail the
 open or copy over the file to the user directory and use that file
 instead.
 In this situation only files _not_ 

Re: REPOST: Meaning of tdb_free: left read failed at ...?

2003-02-04 Thread Steve Langasek
On Tue, Feb 04, 2003 at 10:17:34AM +0100, Ralf G. R. Bergs wrote:
 On Sun, 02 Feb 2003 15:44:18 +0100, Simo Sorce wrote:
 
  The system in question is a Debian i386 stable (3.0) system, kernel is 
  2.4.20 release (with some patches such as EVMS and XFS, but EVMS is NOT in 
 use 
  for shares exported via Samba!!), Samba is 2.2.7a (a Debian package that I 
  created myself.)
 
 I would try again with a standard ext2/3 file system.

 Ok, now /var/run/samba is an ext3 filesystem -- and the problem is back again. 
 :-(

 So you could argue, Ok, it's EVMS then which is the culprit, because 
 filesystem is on an EVMS logical volume.

 But I simply cannot believe this.

 Why should Samba be the ONLY (apparent) application that doesn't feel happy with 
 XFS over EVMS?

I'm running Samba on XFS+EVMS (on Debian ;) with no problems.  Even on
buggy versions of XFS, I've never seen this error; I don't think the
filesystem is the cause.  OTOH, I haven't used 2.4.20 yet for this
environment.

When you say you compiled with large file support, does that mean you
made changes to the build scripts?  Samba should already build with LFS
support on Linux 2.4.

-- 
Steve Langasek
postmodern programmer



msg05769/pgp0.pgp
Description: PGP signature


Re: Patch for samba 2_2 for Stratus VOS

2003-02-04 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, 31 Jan 2003, Paul Green wrote:

 Attached is a patch for the 2_2 branch of samba that makes changes
 similar to the ones I recently submitted to the head and 3_0 branches. I
 have tested it locally on VOS and it works as expected.  I have also
 tested it on Solaris 2.8 and it looks ok there too.  I ran configure
 and then make everything; make wins.  Now, for the first time in
 months, I can build the stock Samba 2.2.x on VOS.

OK.  I'll get this checked in today.
 
 I had to make one change that will affect other platforms -- but only on
 the build farm. Today, the samba_2_2 build farm hook (make everything)  
 unconditionally builds nsswitch/lib_wins.so.  This screws us, because
 that's a shared library and we don't do shared libraries.  Oddly enough,
 make everything on samba_3_0 does not try to unconditionally build
 shared libraries.

 You have to say make wins in 3_0 to get this file built.  So that is
 the way I implemented it in 2_2.  

Sounds right.





cheers, jerry
 --
 Hewlett-Packard- http://www.hp.com
 SAMBA Team -- http://www.samba.org
 GnuPG Key   http://www.plainjoe.org/gpg_public.asc
 You can never go home again, Oatman, but I guess you can shop there.  
--John Cusack - Grosse Point Blank (1997)

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.0 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQE+P+YWIR7qMdg1EfYRAmGiAKDRKqiNm0mCE6Ehou4xaG0qvU5FNQCgiM55
XJgc47tk/yaH32NPo6mKYXM=
=dajH
-END PGP SIGNATURE-




Re: REPOST: Meaning of tdb_free: left read failed at ...?

2003-02-04 Thread Ralf G. R. Bergs
On Tue, 04 Feb 2003 09:37:17 -0600, Steve Langasek wrote:

[...]
 Why should Samba be the ONLY (apparent) application that doesn't feel hap=
py with=20
 XFS over EVMS?

I'm running Samba on XFS+EVMS (on Debian ;) with no problems.  Even on
buggy versions of XFS, I've never seen this error; I don't think the
filesystem is the cause.  OTOH, I haven't used 2.4.20 yet for this
environment.

As I wrote earlier I also can't believe it's a filesystem issue.

When you say you compiled with large file support, does that mean you
made changes to the build scripts?  Samba should already build with LFS
support on Linux 2.4.

Yup, I had to change the build scripts. If I remember correctly the Debian 
package comes with shrink-wrapped configure.cache files so that they would 
always overwrite certain changes I made to the configure statement inside 
debian/rules.

I think that there was a already a bug filed against the non-support of large 
files. The poster of this bug report also mentioned that you had to recompile 
it in order to get LFS.

OTOH everything I just wrote could be wrong. I'm currently working on a 
multitude of building areas so I could confuse something with something 
totally different. :-)


-- 
   L I N U X   .~.
  The  Choice  /V\
   of a  GNU  /( )\
  Generation  ^^-^^





RE: Drive already connected Error in Windows 2000

2003-02-04 Thread MCCALL,DON (HP-USA,ex1)
Hi Garry,
I missed that in the original post, thanks.
Do you do a lot of printing?  I seem to remember a problem
involving smbd's remaining open because of print status 
requests or something that Jeremy Allison was working on,
but I can't find it.  
Either way, I think upping your flocks table space should help
Don


 -Original Message-
 From: Grierson, Garry (UK07) [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 04, 2003 2:42
 To: MCCALL,DON (HP-USA,ex1)
 Cc: [EMAIL PROTECTED]
 Subject: RE: Drive already connected Error in Windows 2000
 
 
 I did mention in my original post that I think the systems 
 resource issues
 are coming from the fact that unused smbd deamon processes 
 are clogging up
 the system and wont die, rather than the other way round.
 
 So I'm not sure if upping the resource table sizes would 
 solve the problem
 or just delay it.
 
 I will try this and see if it makes a difference.
 
 Thank's for your response.
 Garry.
 -Original Message-
 From: MCCALL,DON (HP-USA,ex1) [mailto:[EMAIL PROTECTED]]
 Sent: 03 February 2003 19:20
 To: 'Grierson, Garry (UK07)'; [EMAIL PROTECTED]
 Subject: RE: Drive already connected Error in Windows 2000
 
 
 Samba 2.2.7 uses fcntl locks on a regular basis for internal
 locking, even if you have set strict locking and posix locks=no.
 The errors you are getting in your log indicate that you have 
 run out of the system resource controlling the size of the fcntl
 lock table.
 You will need to go into SAM (or have your hpux sysadm do this)
 and increase the kernel parameter (nflocks).
 
 Hope this helps,
 Don
 
  -Original Message-
  From: Grierson, Garry (UK07) [mailto:[EMAIL PROTECTED]]
  Sent: Monday, February 03, 2003 7:08
  To: [EMAIL PROTECTED]
  Subject: Drive already connected Error in Windows 2000
  
  
  The W2K client systems may be at different service pack 
  levels: most are
  probably at 2 or 3.
  Samba 2.2.7 is running on HP-UX 11.
  
  The last entries in the log.smbd before this happens are:
  [2003/02/03 10:59:40, 0] printing/nt_printing.c:(281)
  nt_printing_init: Failed to open nt forms database
  /usr/local/samba/locks/ntforms.tdb (No locks available) 
  [2003/02/03 10:59:40, 0] printing/nt_printing.c:(281)
  nt_printing_init: Failed to open nt forms database
  /usr/local/samba/locks/ntforms.tdb (No locks available)  
  [2003/02/03 10:59:54, 0] printing/nt_printing.c:(281)
  nt_printing_init: Failed to open nt forms database
  /usr/local/samba/locks/ntforms.tdb (No locks available)  
  [2003/02/03 10:59:54, 0] printing/nt_printing.c:(281)
  nt_printing_init: Failed to open nt forms database
  /usr/local/samba/locks/ntforms.tdb (No locks available)  
  [2003/02/03 11:00:19, 0] printing/nt_printing.c:(281)
  nt_printing_init: Failed to open nt forms database
  /usr/local/samba/locks/ntforms.tdb (No locks available)  
  [2003/02/03 11:00:19, 0] printing/nt_printing.c:(281)
  nt_printing_init: Failed to open nt forms database
  /usr/local/samba/locks/ntforms.tdb (No locks available)  
  [2003/02/03 11:00:32, 0] printing/nt_printing.c:(281)
  nt_printing_init: Failed to open nt forms database
  /usr/local/samba/locks/ntforms.tdb (No locks available)  
  [2003/02/03 11:00:32, 0] printing/nt_printing.c:(281)
  nt_printing_init: Failed to open nt forms database
  /usr/local/samba/locks/ntforms.tdb (No locks available)  
  [2003/02/03 11:02:55, 0] printing/nt_printing.c:(281)
  nt_printing_init: Failed to open nt forms database
  /usr/local/samba/locks/ntforms.tdb (No locks available)  
  [2003/02/03 11:02:55, 0] printing/nt_printing.c:(281)
  nt_printing_init: Failed to open nt forms database
  /usr/local/samba/locks/ntforms.tdb (No locks available)  
  
  There is nothing strictly reproducible as it seems like a 
  random thing!
  -Original Message-
  From: Green, Paul [mailto:[EMAIL PROTECTED]]
  Sent: 02 February 2003 15:46
  To: 'Grierson, Garry (UK07)'; [EMAIL PROTECTED]
  Subject: RE: Drive already connected Error in Windows 2000
  
  
  (please reply to list)
  
  Some standard questions...
  
  What service pack level for W2K?
  What operating system are you running under samba 2.2.7?
  Do you have a reproducible test case you can post?
  Anything out of the ordinary in your smb.conf file?
  
  Sounds like an operating system resource-limit issue...
  
  PG
  
   -Original Message-
   From: Grierson, Garry (UK07) [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, January 28, 2003 7:45 AM
   To: [EMAIL PROTECTED]
   Subject: FW: Drive already connected Error in Windows 2000
   
   
   The log.smbd file has lots of (No locks available) errors..
   
   Any help?
   
 -Original Message-
From:   Grierson, Garry (UK07)  
Sent:   28 January 2003 11:36
To: '[EMAIL PROTECTED]'
Subject:Drive already connected Error in Windows 2000

I have been successfully running with Samba 2.0.7 for more 

Re: Win9x, samba 3, user list

2003-02-04 Thread Richard Sharpe
On Tue, 4 Feb 2003, Dmitry Melekhov wrote:


hello!

Sorry for late reply :-(
Here it is.


OK, I wasn't precise enough. I was actually looking for a packet trace of 
the problem. You can obtain such with:

  tcpdump -i eth0 -s 1500 -w somefile.cap

started before you try to retrieve the userlist.

Regards
-
Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, 
sharpe[at]ethereal.com, http://www.richardsharpe.com


log.dm-win98.gz
Description: GNU Zip compressed data


Re: A Union of two directories

2003-02-04 Thread Michael Heironimus
On Tue, Feb 04, 2003 at 10:03:36AM +, David Lee wrote:
 Way, way back in the days of SunOS 4.1.x, Sun had their translucent file
 service: tfs.  (We never used this; I simply recall its existence.) 
 Might this model be the sort of thing you are looking for?  I see that the
 man pages for Sun's tfs are still around (I found a copy on the FreeBSD
 WWW site).

I think the BSDs still have something of this sort, called unionfs or
some such. I think the main time people actually use it is for mounting
a source tree from CD as /usr/src to avoid actually copying all of it
around.

-- 
Michael Heironimus



Debian configure problems

2003-02-04 Thread Volker Lendecke
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi!

Probably this is more of a debian than a Samba problem. To compile
Samba 2_2 CVS of today with acl support und Debian 3.0, I not only had
to apt-get acl-dev but also attr-dev. For me it was not possible to
compile acl-aware programs with -lacl due to link errors:

vlendec@delphin:~$ gcc -lacl  aclt.c  
/usr/lib/libacl.so: undefined reference to `fgetxattr'
/usr/lib/libacl.so: undefined reference to `removexattr'
/usr/lib/libacl.so: undefined reference to `setxattr'
/usr/lib/libacl.so: undefined reference to `fsetxattr'
/usr/lib/libacl.so: undefined reference to `getxattr'
collect2: ld returned 1 exit status

Installing attr-dev and adding -lattr fixed this. So, to me it seems
that acl-dev should have a dependency on attr-dev.

The Samba configure program only adds -lacl to the configure test. I
explicitly had to say LIBS=-lattr ./configure ...  to make it detect
posix acl support properly.

My problem now is: Where do I report this correctly???

Volker

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Key-ID D32186CF, Fingerprint available: phone +49 551 370

iD8DBQE+P+LBOmSXH9Mhhs8RAqGlAJ9jvz4lxIR739bFOg5+kY4cQ0HTxACdEi88
ti0YokOxJ++bjiY2wh72rcU=
=jnwI
-END PGP SIGNATURE-



Re: Solaris fcntl CPU/Lock update

2003-02-04 Thread jra
On Mon, Feb 03, 2003 at 07:38:31AM -0800, Jeff Mandel wrote:
 Here's gdb with bt from two processes 12279 and 12327
 
 root@reiger# gdb /usr/local/samba/bin/smbd 12279
 GNU gdb 5.0
 Copyright 2000 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you are
 welcome to change it and/or distribute copies of it under certain 
 conditions.
 Type show copying to see the conditions.
 There is absolutely no warranty for GDB.  Type show warranty for details.
 This GDB was configured as sparc-sun-solaris2.8...
 /tmp/12279 is not a core dump: File truncated
 Attaching to program `/usr/local/samba/bin/smbd', process 12279
 Reading symbols from /usr/lib/libsec.so.1...done.
 Loaded symbols for /usr/lib/libsec.so.1
 Reading symbols from /usr/lib/libgen.so.1...done.
 Loaded symbols for /usr/lib/libgen.so.1
 Reading symbols from /usr/lib/libsocket.so.1...done.
 Loaded symbols for /usr/lib/libsocket.so.1
 Reading symbols from /usr/lib/libnsl.so.1...done.
 Loaded symbols for /usr/lib/libnsl.so.1
 Reading symbols from /usr/lib/libdl.so.1...done.
 Loaded symbols for /usr/lib/libdl.so.1
 Reading symbols from /usr/lib/libpopt.so.0...done.
 Loaded symbols for /usr/lib/libpopt.so.0
 Reading symbols from /usr/lib/libc.so.1...done.
 Loaded symbols for /usr/lib/libc.so.1
 Reading symbols from /usr/lib/libmp.so.2...done.
 Loaded symbols for /usr/lib/libmp.so.2
 Reading symbols from 
 /usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1...done.
 Loaded symbols for /usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
 Reading symbols from /usr/lib/nss_files.so.1...done.
 Loaded symbols for /usr/lib/nss_files.so.1
 Reading symbols from /usr/lib/nss_ldap.so.1...done.
 Loaded symbols for /usr/lib/nss_ldap.so.1
 Reading symbols from /usr/lib/libpthread.so.1...done.
 Loaded symbols for /usr/lib/libpthread.so.1
 Reading symbols from /usr/local/ldapsdk5/lib/libldap50.so...done.
 Loaded symbols for /usr/local/ldapsdk5/lib/libldap50.so
 Reading symbols from /usr/local/ldapsdk5/lib/libssldap50.so...done.
 Loaded symbols for /usr/local/ldapsdk5/lib/libssldap50.so
 Reading symbols from /usr/local/ldapsdk5/lib/libssl3.so...done.
 Loaded symbols for /usr/local/ldapsdk5/lib/libssl3.so
 ---Type return to continue, or q return to quit---
 Reading symbols from /usr/local/ldapsdk5/lib/libnss3.so...done.
 Loaded symbols for /usr/local/ldapsdk5/lib/libnss3.so
 Reading symbols from /usr/local/ldapsdk5/lib/libnspr4.so...done.
 Loaded symbols for /usr/local/ldapsdk5/lib/libnspr4.so
 Reading symbols from /usr/local/ldapsdk5/lib/libprldap50.so...done.
 Loaded symbols for /usr/local/ldapsdk5/lib/libprldap50.so
 Reading symbols from /usr/local/ldapsdk5/lib/libplc4.so...done.
 Loaded symbols for /usr/local/ldapsdk5/lib/libplc4.so
 Reading symbols from /usr/local/ldapsdk5/lib/libplds4.so...done.
 Loaded symbols for /usr/local/ldapsdk5/lib/libplds4.so
 Reading symbols from /usr/lib/libdb-3.3.so...done.
 Loaded symbols for /usr/lib/libdb-3.3.so
 Reading symbols from /usr/lib/libresolv.so.2...done.
 Loaded symbols for /usr/lib/libresolv.so.2
 Reading symbols from /usr/lib/libthread.so.1...done.
 Loaded symbols for /usr/lib/libthread.so.1
 Reading symbols from /usr/lib/librt.so.1...done.
 Loaded symbols for /usr/lib/librt.so.1
 Reading symbols from /usr/lib/libaio.so.1...done.
 Loaded symbols for /usr/lib/libaio.so.1
 sol-thread active.
 Retry #1:
 Retry #2:
 Retry #3:
 Retry #4:
 [New LWP1]
 [New Thread 1 (LWP 1)]
 Symbols already loaded for /usr/lib/libsec.so.1
 Symbols already loaded for /usr/lib/libgen.so.1
 Symbols already loaded for /usr/lib/libsocket.so.1
 Symbols already loaded for /usr/lib/libnsl.so.1
 Symbols already loaded for /usr/lib/libdl.so.1
 Symbols already loaded for /usr/lib/libpopt.so.0
 Symbols already loaded for /usr/lib/libc.so.1
 Symbols already loaded for /usr/lib/libmp.so.2
 Symbols already loaded for 
 /usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
 Symbols already loaded for /usr/lib/nss_files.so.1
 Symbols already loaded for /usr/lib/nss_ldap.so.1
 Symbols already loaded for /usr/lib/libpthread.so.1
 Symbols already loaded for /usr/local/ldapsdk5/lib/libldap50.so
 Symbols already loaded for /usr/local/ldapsdk5/lib/libssldap50.so
 Symbols already loaded for /usr/local/ldapsdk5/lib/libssl3.so
 Symbols already loaded for /usr/local/ldapsdk5/lib/libnss3.so
 Symbols already loaded for /usr/local/ldapsdk5/lib/libnspr4.so
 Symbols already loaded for /usr/local/ldapsdk5/lib/libprldap50.so
 Symbols already loaded for /usr/local/ldapsdk5/lib/libplc4.so
 Symbols already loaded for /usr/local/ldapsdk5/lib/libplds4.so
 Symbols already loaded for /usr/lib/libdb-3.3.so
 Symbols already loaded for /usr/lib/libresolv.so.2
 Symbols already loaded for /usr/lib/libthread.so.1
 Symbols already loaded for /usr/lib/librt.so.1
 Symbols already loaded for /usr/lib/libaio.so.1
 [Switching to Thread 1 (LWP 1)]
 signal handler called
 (gdb) bt
 #0  signal handler called
 #1  0xfecd9794 in __sigprocmask () 

Re: Solaris fcntl CPU/Lock update

2003-02-04 Thread David Collier-Brown -- Customer Engineering
On Mon, Feb 03, 2003 at 07:38:31AM -0800, Jeff Mandel wrote:
  Reading symbols from /usr/lib/libpthread.so.1...done.
  Loaded symbols for /usr/lib/libpthread.so.1 


jra wrote: 
 This is a much more interesting backtrace than the
 other. Why is smbd linking in pthread libraries ?
 smbd is *NOT* a threaded program.

The library lsit on my Solaris 8 workstation is
much shorter:

$ pvs smbd
libsocket.so.1 (SISCD_2.3);
libnsl.so.1 (SUNW_0.7, SUNWprivate_1.1);
libdl.so.1 (SISCD_2.3);
libc.so.1 (SUNW_1.1);

No pthread at all!

--dave
-- 
David Collier-Brown,   | Always do right. This will gratify 
Sun Microsystems DCMO  | some people and astonish the rest.
Toronto, Ontario   |
(905) 415-2849 or x52849   | [EMAIL PROTECTED]



Re: Bottleneck with Winbind and NT ACLs in 2.2.7a

2003-02-04 Thread jra
On Tue, Feb 04, 2003 at 02:12:29PM +0100, Michael Steffens wrote:
 Hi,
 
 we are running a big Samba 2.2.7a server with Winbind (100 concurrent
 users, 600 id mappings created since then) since last weekend.
 
 It's running quite well! :)
 
 However, users are complaining about Samba being very slow when
 NT ACL support is enabled. I'm suspecting that winbindd is the
 bottleneck.
 
 In winbindd's log I can see that it has to serve [ug]id to sid
 requests at a very high frequency. Most of them seem to be triggered
 by smbd daemons working on POSIX ACLs, and the UIDs and GIDs
 requested are almost always those of the user running a session.
 Requests are keeping winbindd busy all the time. And when winbindd
 is busy talking to DCs, user sessions have to wait for ACL settings
 to complete.
 
 As the ID mappings are static - as soon as they exist - wouldn't it
 be a good idea to have smbd cache those it has come across in the
 current session?
 
 In the attached patch I have tried to implement such a local
 mapping cache for smbd. What do you think about it?

Damn good idea ! I think I'll look into applying some version
of this - thanks !

Jeremy.



Re: [Samba] deleting symlinks only

2003-02-04 Thread Herb Lewis
The problem is not in teaching samba anything. When you delete a
directory in windows explorer it doesn't just send a command to 
delete the directory. It recurses down the directory and first
sends commands to delete each individual file and then sends a 
command to delete the directory. Samba has no way of knowing when
it starts getting these delete commands that the user is trying
to delete the upper directory until all the files have already
been deleted.

Antonio Nikolic wrote:
 
 
 So: Is there not a way, to teach samba (maybe in a future-release) to
 first check on recieving a deletion request whether or not a directory
 possibly is a link and delete the link only? One could introduce an
 per-share-option which allows to switch on this feature. I doubt this
 could be that hard to realize, is it?
 

-- 
==
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
==



Winbind on HPUX 11, some small progress

2003-02-04 Thread Miles Roper
Hi All,

Well, i've managed to enable some debugging in syslog, I had to put in
/etc/syslog.conf

;*.debug

on the syslog line.

So at least I have an error which is being returned into syslog from
winbind.

This is what I get from winbind

Feb  4 21:13:17 coastdr pam_winbind[20753]: Verify user `lonnie'
Feb  4 21:13:18 coastdr pam_winbind[20753]: user 'lonnie' granted acces
Feb  4 21:13:18 coastdr pam_winbind[20753]: LOGIN: exiting with return code
13

This is what I get from pamsmb (ignore the dates, they are a bit funny for
some reason)

Feb  5 14:53:55 coastdr pamsmbd[20119]: server: remote auth user
unix:trainingus
er nt:traininguser NTDOM:WESTCOASTDHB PDC:COASTDB BDC:
Feb  5 14:53:55 coastdr pamsmbd[20119]: cache_add: inserted entry
Feb  4 20:53:55 coastdr : pamsmbd: Got something back... 0
Feb  4 20:53:55 coastdr : pam_smb: got back 0 username traininguser
Feb  4 20:53:55 coastdr : LOGIN: exiting with return code 13

So the error with pamsmb and winbind is the same.  I've done a man on login
and can only find a description of errors, not the error codes.  What is
error code 13?  If I can find that out it will make looking for it a bit
easier.  I thought it might be that the shell doens't exist, but I tried
making a user with a invalid shell and get back error code 1, so its not
that.

Ideas?

Cheers

Miles


-Original Message-
From: Miles Roper 
Sent: Monday, 3 February 2003 08:54 a.m.
To: 'MCCALL,DON (HP-USA,ex1)'
Cc: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'; Esh,
Andrew; Ronan Waide; STEFFENS,MICHAEL (HP-Germany,ex1); 'Richard
Sharpe'; 'John H Terpstra'
Subject: RE: [Samba] RE: Winbind on HPUX11, Totally Stuck, Please Help


Thanks for your help, still no luck though.  More info for you.

with no debug statements in my /etc/pam.conf I get in sys log the following.

Feb  2 14:43:02 coastdr pam_winbind[2832]: user 'traininguser' granted acces

with debug turned on I get

Feb  2 14:47:49 coastdr pam_winbind[2839]: Verify user `traininguser'
Feb  2 14:47:49 coastdr pam_winbind[2839]: user 'traininguser' granted acces

the user is still logging out.

incidentlally, when I log in as a unix user, rather than a win2k user I
don't get anything in sys log.  I've included my pam.conf below.

Also, I checked for /etc/shells, no such file, and I have set my smb.conf
shell line to

template shell = /sbin/sh

and also tried

template shell = /usr/bin/sh

both files exist.

#
# PAM configuration
#
# Authentication management
#
loginauth sufficient/usr/lib/security/libpam_unix.1 debug
loginauth sufficient/usr/lib/security/libpam_winbind.1
debug
#login   auth sufficient/usr/lib/security/libpam_smb.1 nolocal
debug
su   auth required  /usr/lib/security/libpam_unix.1 debug
dtlogin  auth required  /usr/lib/security/libpam_unix.1 debug
dtaction auth required  /usr/lib/security/libpam_unix.1 debug
ftp  auth required  /usr/lib/security/libpam_unix.1 debug
OTHERauth required  /usr/lib/security/libpam_unix.1 debug
#
# Account management
#
loginaccount sufficient /usr/lib/security/libpam_unix.1 debug
loginaccount sufficient /usr/lib/security/libpam_winbind.1
debug
su   account required   /usr/lib/security/libpam_unix.1 debug
dtlogin  account required   /usr/lib/security/libpam_unix.1 debug
dtaction account required   /usr/lib/security/libpam_unix.1 debug
ftp  account required   /usr/lib/security/libpam_unix.1 debug
#
OTHERaccount required   /usr/lib/security/libpam_unix.1 debug
#
# Session management
#
loginsession sufficient /usr/lib/security/libpam_unix.1 debug
loginsession sufficient /usr/lib/security/libpam_winbind.1
debug
dtlogin  session required   /usr/lib/security/libpam_unix.1 debug
dtaction session required   /usr/lib/security/libpam_unix.1 debug
OTHERsession required   /usr/lib/security/libpam_unix.1 debug
#
# Password management
#
loginpassword sufficient/usr/lib/security/libpam_unix.1 debug
loginpassword sufficient/usr/lib/security/libpam_winbind.1
debug
passwd   password required  /usr/lib/security/libpam_unix.1 debug
passwd   password required  /usr/lib/security/libpam_winbind.1
debug
dtlogin  password required  /usr/lib/security/libpam_unix.1 debug
dtaction password required  /usr/lib/security/libpam_unix.1 debug
OTHERpassword required  /usr/lib/security/libpam_unix.1 debug

Cheers

Miles

-Original Message-
From: MCCALL,DON (HP-USA,ex1) [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 1 February 2003 04:53 a.m.
To: 'John H Terpstra'; Miles Roper
Cc: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'; Esh,
Andrew; Ronan Waide; STEFFENS,MICHAEL (HP-Germany,ex1); MCCALL,DON
(HP-USA,ex1); 'Richard Sharpe'
Subject: RE: [Samba] RE: Winbind on HPUX11, Totally Stuck, Please Help


Hi, Miles,
Actually on HP-UX, you will need to add the word 'debug' at the end of each
of 
the lines in you /etc/pam.conf file, to enable more debugging to go into the


Dir with 900+ files look Empty

2003-02-04 Thread Greg Norris
Title: Dir with 900+  files look Empty






I am running Samba on Linux RedHat 7.3. 


It is OK most of the time.


We use it for our ViewCvs viewer. Problem is when there are files called cmd (god knows who created that one) and others with dot prefix the directory does silly things. With the cmd file it displayed duplicate versions. First I though it was ViewCvs but then when I checked the directory in the samba link there they were..

Wella fter removing the cmd file all was well - until lately when now we get an empty directory - only trouble is that I know I have 922 files in it. is there a magic number that stops samba from displaying files? 

Yes I am talking about cvs repository files. They are all there in win2K (thank god).


Any help greatly appreciated. cvs will appreciate it too as if I can't get this bug out the corp. will terminate the cvs trial.


Greg Norris

Development Database Administrator

Group Technology
Challenger International Limited


This email and any files transmitted with it are intended for the named recipient only. The information contained in this message may be confidential, legally privileged or commercially sensitive. If you are not the intended recipient you must not reproduce or distribute any part of the email, disclose its contents to any other party, or take any action in reliance on it. If you have received this email in error, please contact the sender immediately by return email and delete this message from your computer.



Re: Solaris fcntl CPU/Lock update

2003-02-04 Thread Pierre Belanger
Hello all,

Andrew, true GDB is thread aware but I think last time I used
it (back in ~ 1998) I was writing a multi-threaded application
and I really remember like if it was yesterday: GDB was not
thread aware at that time. I'm glad to hear it's now thread
aware!

I found the following if it can help us debug this thing
with Jeff Mandel (the original poster).

Debugging multi-threaded applications with GDB...

http://www-es.fernuni-hagen.de/cgi-bin/info2html?(gdb)Threads

Like Andrew suggested -- I ran nm on libthread.so. I almost
felt off my chair!

From libthread.so
[905]   |111016|  84|FUNC |GLOB |0|9  |usleep

There exists under Solaris a usleep in libthread.so !!!

Of course, as well in libc.so.

From libc.so :
usleep [3265]  |635736|  40|FUNC |WEAK |0|9  |usleep

This here :

#0  signal handler called
#1  0xfecd9794 in __sigprocmask () from /usr/lib/libthread.so.1
#2  0xfecce148 in _sigon () from /usr/lib/libthread.so.1
#3  0xfecd05bc in thr_sigsetmask () from /usr/lib/libthread.so.1
#3  0xfecd05bc in thr_sigsetmask () from /usr/lib/libthread.so.1
#4  signal handler called
#5  0x65646974 in ?? ()
#6  0xfecdb1f0 in usleep () from /usr/lib/libthread.so.1

The called signal handler of usleep *in* libpthread.so.1
uses thr_sigsetmask and the above funtions, for the only
reason that some LDAP library needs libthread.so???

I can't go any further now, ho yes I can just before I was
going to hit send ;-)  Here's what I did:

After Hello World ...

int main (int argc, char **argv){usleep(1);}

Compiled using gcc sleeping.c and after I compiled using
gcc sleeping.c -lthread. HAHA!!! Here's the results.


1) Without linking with libhread:


/1: execve(a.out, 0xFFBEFB0C, 0xFFBEFB14)  argc = 1
/1: mmap(0x, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, 
MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF3A
/1: resolvepath(/usr/lib/ld.so.1, /usr/lib/ld.so.1, 1023) = 16
/1: open(/var/ld/ld.config, O_RDONLY) Err#2 ENOENT
/1: stat(/usr/lib/libc.so.1, 0xFFBEF234)  = 0
/1: open(/usr/lib/libc.so.1, O_RDONLY)= 3
/1: fstat(3, 0xFFBEF234)= 0
/1: mmap(0x, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 
0xFF39
/1: mmap(0x, 802816, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) 
= 0xFF28
/1: mmap(0xFF33C000, 24748, PROT_READ|PROT_WRITE|PROT_EXEC, 
MAP_PRIVATE|MAP_FIXED, 3, 704512) = 0xFF33C000
/1: munmap(0xFF32C000, 65536)   = 0
/1: memcntl(0xFF28, 113448, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
/1: close(3)= 0
/1: stat(/usr/lib/libdl.so.1, 0xFFBEF234) = 0
/1: open(/usr/lib/libdl.so.1, O_RDONLY)   = 3
/1: fstat(3, 0xFFBEF234)= 0
/1: mmap(0xFF39, 8192, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF39
/1: close(3)= 0
/1: stat(/usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1, 0xFFBEF0C4) = 0
/1: open(/usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1, O_RDONLY) = 3
/1: fstat(3, 0xFFBEF0C4)= 0
/1: mmap(0x, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 
0xFF38
/1: mmap(0x, 16384, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) 
= 0xFF37
/1: close(3)= 0
/1: munmap(0xFF38, 8192)= 0
/1: alarm(0)= 0
/1: setitimer(ITIMER_REAL, 0xFFBEFA28, 0xFFBEFA18)  = 0
/1: sigaction(SIGALRM, 0xFFBEF928, 0xFFBEF9D8)  = 0
/1: sigfillset(0xFF3428B8)  = 0
/1: sigprocmask(SIG_BLOCK, 0xFFBEF9C8, 0xFFBEF9B8)  = 0
/1: setitimer(ITIMER_REAL, 0xFFBEFA28, 0x)  = 0
/1: Received signal #14, SIGALRM, in sigsuspend() [caught]
/1: sigsuspend(0xFFBEF9A8)  Err#4 EINTR
/1: setcontext(0xFFBEF690)
/1: sigaction(SIGALRM, 0xFFBEF928, 0x)  = 0
/1: sigprocmask(SIG_UNBLOCK, 0xFFBEF9C8, 0x) = 0
/1: setitimer(ITIMER_REAL, 0xFFBEFA18, 0x)  = 0
/1: llseek(0, 0, SEEK_CUR)  = 38123
/1: _exit(0)



2) Compiled with -lthread ... hard to beleive, 5 threads
   to make a simple usleep(1) system call!!!

/1: execve(ta.out, 0xFFBEFB0C, 0xFFBEFB14)  argc = 1
/1: mmap(0x, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, 
MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF3A
/1: resolvepath(/usr/lib/ld.so.1, /usr/lib/ld.so.1, 1023) = 16
/1: open(/var/ld/ld.config, O_RDONLY) Err#2 ENOENT
/1: stat(/usr/lib/libthread.so.1, 0xFFBEF234) = 0
/1: open(/usr/lib/libthread.so.1, O_RDONLY)   = 3
/1: fstat(3, 0xFFBEF234)= 0
/1: mmap(0x, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 
0xFF39
/1: mmap(0x, 245760, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) 

Re: Solaris fcntl CPU/Lock update

2003-02-04 Thread Pierre Belanger
Jeff,

Ok, you're using nss_ldap from PDAL to use /etc/nsswitch.conf
like

passwd: ldap files (or reverse)
group: ldap files
etc

Right? (From what I recall that's what nss_ldap is used for).

If you did not compile with Samba, it means that if you do ldd
on smbd it should not print libthread or libpthread. Is this
the result you get? If this is the result you get -- than I REALLY
don't understand how smbd process opens libthread and libpthread!

I get this @ home from 2.2.pre-8 (I CVS sync everyday every once
and a while).

libsec.so.1 =   /usr/lib/libsec.so.1
libgen.so.1 =   /usr/lib/libgen.so.1
libsocket.so.1 =/usr/lib/libsocket.so.1
libnsl.so.1 =   /usr/lib/libnsl.so.1
libdl.so.1 =/usr/lib/libdl.so.1
libpam.so.1 =   /usr/lib/libpam.so.1
libsendfile.so.1 =  /usr/lib/libsendfile.so.1
libc.so.1 = /usr/lib/libc.so.1
libmp.so.2 =/usr/lib/libmp.so.2
/usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1

If you don't have this problem on the other box, it can be
a Solaris bug introduced lately. The binaries you run on both
boxes don't differ, right? They are the same exact copy?

Pierre B.





[no subject]

2003-02-04 Thread stephan . theiler
Hi Together

I have a problem with initialise the locking database. When i send the
command the following command .
unx10015# ./smbstatus -d -L

I received the this message.

using configfile = /tools/samba/samba-2.2.7/lib/smb.conf
Opened /var/log/css/samba-2.2.7/locks/connections.tdb

Failed to open byte range locking database
ERROR: Failed to initialise locking database
Can't initialise locking module - exiting

 Has anyone a solution about this problem

thanks

Stephan
___

CSS Versicherung
Stephan Theiler FITCE
Systemtechnik Client/Server
Rösslimattstrasse 40
CH-6002 Luzern
Telefon  ++41 (0)41 369 1470
Telefax  ++41 (0)41 369 1266
[EMAIL PROTECTED]
www.css.ch





[no subject]

2003-02-04 Thread stephan . theiler
Hi Together

I have a problem with initialise the locking database. When i send the
command the following command .
unx10015# ./smbstatus -d -L

I received the this message.

using configfile = /tools/samba/samba-2.2.7/lib/smb.conf
Opened /var/log/css/samba-2.2.7/locks/connections.tdb

Failed to open byte range locking database
ERROR: Failed to initialise locking database
Can't initialise locking module - exiting

 Has anyone a solution about this problem

thanks

Stephan

___

CSS Versicherung
Stephan Theiler FITCE
Systemtechnik Client/Server
Rösslimattstrasse 40
CH-6002 Luzern
Telefon  ++41 (0)41 369 1470
Telefax  ++41 (0)41 369 1266
[EMAIL PROTECTED]
www.css.ch