Hi James, One of the things that NT does different from WIN9x is that it attempts to 'browse' using a null session. This typically means that SAMBA is going to try to make the attachement for the 'null' username as SAMBA's guest account (by default 'nobody'). On a lot of HP systems the 'nobody' /etc/passwd entry is set as uid -2 and gid -2. These uid/gid values are invalid for samba, and you will get messages that look like the following in your samba log files: Username nobody is invalid on this system I don't know that this is YOUR problem, but it's worth a quick checkout... Hope this helps, Don
At 03:40 00-03-03 +1100, you wrote:>Subject: Re: WINS browse sync! >I have a somewhat similar setup with only a single WINS server: > >Samba server WINS server > \ / > \ / > router--------------router-------multiple Winxx desktops > / 111.111.10.0 111.111.2.0 > / >Samba server > >Here are relevant settings from smb.confs for the two Samba servers: > >[global] > workgroup = MOMENTUM > netbios name = JUPITER > name resolve order = lmhosts wins host bcast > os level = 65 > preferred master = Yes > domain master = Yes > wins server = 111.111.2.113 > remote announce = 111.111.2.255 111.111.2.113 > hosts allow = 111.111.10. 111.111.2. > >[global] > workgroup = MOMENTUM > netbios name = PLUTO > name resolve order = lmhosts wins host bcast > local master = No > wins server = 111.111.2.113 > remote announce = 111.111.2.255 111.111.2.113 > hosts allow = 111.111.10. 111.111.2. > >If you're using an NT PDC (I'm not) you probably don't want to use the >same OS level, preferred master, and domain master settings as I have. >I think the correct settings for use in conjunction with an NT PDC would >be: OS level=0, preferred master=no, domain master=no, local >master=yes/no (depending on which subnet PDC is on - 'no' if NT PDC is >on same subnet as Samba server, 'yes' otherwise). An NT PDC by default >acts as a browse master.Problem is in that I need TWO WINS serwer....... My networks is in TWO internet domains (and in WINDOWS domains too) - I have no NT PDC. Your solution for me is known (net b.b.b.b has over 10 subnets and remote browse sync works inside them correctly) but how make it to work thru a.a.a.a <-> b.b.b.b Best Regards **************************************************************** * Bartlomiej Solarz-Niesluchowski * * Administrator WSISiZ * * Motto - nie psuj Win'9x one i bez tego sie psuja.... * * Jak sobie poscielisz tak sie wyspisz * ****************************************************************
Re:> Date: Wed, 01 Mar 2000 11:09:50 -0800 > From: Jeremy Allison <jeremy@valinux.com> > To: giulioo@pobox.com > Subject: Re: SAMBA_2_0 (recent CVS): smbpasswd and utmp errors > > Orsero wrote: > > > > SAMBA_2_0 as of 1 mar 2000, 11:00 GMT > > rh61 kernel-2.2.14. > > > > [...] > > 2) ./configure --with-utmp: > > make all > > .. > > Compiling smbd/connection.c > > smbd/connection.c: In function `utmp_update': > > smbd/connection.c:349: structure has no member named `ut_syslen' > > make: *** [smbd/connection.o] Error 1 > > Thanks Giulio , I'm on it. > > Jeremy.As the person who began the utmp/utmpx functionality, I'm curious to know a little more detail about this problem. It suggests an OS that supports the utmpx format (as well as the earlier and ubiquitous UNIX format utmp), but whose utmpx fails to include a "ut_syslen" member. When I drafted it, the utmpx-enabled OSes to which I had access were Solaris 2.x and IRIX 6.x (admittedly a small sample size of 2), both of which had "ut_syslen". It sounds as though yours doesn't, posing an interesting build-time detection-problem. Perhaps you could send me the "utmp.h" and "utmpx.h" files from your system. Two related points for those preparing 2.0.7 for release: 1. Have you corrected the trivial declaration/definition discrepancy of "utmp_yield()" that crept into the pre-2.0.7 release? (Reported by a few poeple on this list.) 2. Have you examined the subsequent patch (on samba-technical) that, if "utmp directory" is not specified, tries to ensure that the default directory (i.e not "/") is used for utmp-like files? -- : David Lee I.T. Service : : Systems Programmer Computer Centre : : University of Durham : : http://www.dur.ac.uk/~dcl0tdl South Road : : Durham : : Phone: +44 191 374 2882 U.K. :
Re:> Date: Wed, 01 Mar 2000 11:09:50 -0800 > From: Jeremy Allison <jeremy@valinux.com> > To: giulioo@pobox.com > Subject: Re: SAMBA_2_0 (recent CVS): smbpasswd and utmp errors > Message-ID: <38BD6AFE.229EDE05@valinux.com> > MIME-Version: 1.0 > Content-Type: text/plain; charset=us-ascii > Content-Transfer-Encoding: 7bit > > Orsero wrote: > > > > [...] > > 2) ./configure --with-utmp: > > make all > > .. > > Compiling smbd/connection.c > > smbd/connection.c: In function `utmp_update': > > smbd/connection.c:349: structure has no member named `ut_syslen' > > make: *** [smbd/connection.o] Error 1 > > Thanks Giulio , I'm on it. > > Jeremy.Since then, I have had reports of other two or three other operating systems also lacking "ut_syslen". Perhaps the way to address this (and perhaps this is what you are doing anyway, Jeremy!) is to put an: AC_DEFUN(AC_UT_SYSLEN, ... (or similar) into aclocal.m4 so that "configure" can test this and pick it up. (And, of course, rebuild the "configure" script before shipping.) While on this subject, the very next line in connection.c is: pstrcpy(ux.ut_host, host); which is probably prone to overflow (though my knowledge of the "ptstr..." parts of Samba is zero). Might "safe_strcpy(...)" be better? I have seen "utmpx.h" files where ut_host declarations vary from 257 down to 64. Hope that helps. -- : David Lee I.T. Service : : Systems Programmer Computer Centre : : University of Durham : : http://www.dur.ac.uk/~dcl0tdl South Road : : Durham : : Phone: +44 191 374 2882 U.K. :
Hi, Samba server workstation was crashed down, and I had to reboot it. It seems now working fine. But, I can't print out from PCs which are clients. I ran 'nmbdclient' commands, but got a message 'connection to server failed'. It seems like a NetBios problem, but no idea how to fix it out. Please let me know how to fix this in details. I checked with web site, it seems quite detailed. But, since I am a Unix beginner, hard to follow it. Thanks much. * Yunjung *