SAMBA digest 2259

Bernhard Bruscha Bernhard.Bruscha at transtec.de
Tue Oct 5 01:50:38 GMT 1999


What is this???????????????????????????????????????


> -----Original Message-----
> From: samba at samba.org [mailto:samba at samba.org]
> Sent: Tuesday, October 05, 1999 3:06 AM
> To: Bernhard Bruscha
> Subject: SAMBA digest 2259
> 
> 
> 			    SAMBA Digest 2259
> 
> For information on unsubscribing see http://samba.org/listproc/
> Topics covered in this issue include:
> 
>   1) Tree connect failed: ERRSRV - ERRbadpw
> 	by   "Jens Rieck" <rieck at pixelconcept.de>
>   2) RE: Automatically locating domain controller
> 	by   Bjart Kvarme <bjart.kvarme at usit.uio.no>
>   3) slowness with smbclient's TAR mode
> 	by   vectro at pipeline.com
>   4) Re: Tree connect failed: ERRSRV - ERRbadpw
> 	by   Urban Widmark <urban at svenskatest.se>
>   5) Re: PLEASE help with printing problem
> 	by   <tridge at linuxcare.com>
>   6) Re: PLEASE help with printing problem
> 	by   <tridge at linuxcare.com>
>   7) Samba/MS Dos Client/ Autocad R12
> 	by   Ulrich Vornefeld <ulvo at comnets.rwth-aachen.de>
>   8) RE: Automatically locating domain controller
> 	by   "Towers, Tim (London)" <ttowers at MLE.CO.UK>
>   9) Re: How to start smb server when reboot?
> 	by   "Hieb, Michael" <Hieb at WESTPORT.MSMAIL.AIGFPC.COM>
>  10) Re:  How to measure performance?
> 	by   David Collier-Brown <davecb at canada.sun.com>
>  11) Re: SAMBA digest 2258
> 	by   "John E. Malmberg" <wb8tyw at qsl.net>
>  12) Re: How to measure performance?
> 	by   "Peter J. Holzer" <hjp at wsr.ac.at>
>  13) Re: SAMBA digest 2250 - Parameter is incorrect
> 	by   Matthew Vanecek <mev0003 at unt.edu>
>  14) Compiling Under IRIX
> 	by   Eric Songer <esonger at lads.is.lmco.com>
>  15) [Fwd: print queue problem]
> 	by   wmmvdwee <wmmvdwee at hawedo.com>
>  16) password synchronization
> 	by   Gerry maddock <gerrym at futuremetals.com>
>  17) Critital SMBMOUNT Error?
> 	by   Aaron Gray <agray at vsi.com>
>  18) HELP ! ERROR FILES > 30 IN CLIENT DOS FOR SAMBA 
> 	by   Carmo =?ISO-8859-1?Q?Cr=EAdiney?= de Melo 
> <carmo at fusoes.com.br>
>  19) smbclient tar restore problem (linkflag) from tape-drive
> 	by   Peter Wood <peter at irba.co.nz>
> 
> ----------------------------------------------------------------------
> 
> Date:   Mon, 4 Oct 1999 09:16:24 +0200
> From:   "Jens Rieck" <rieck at pixelconcept.de>
> To:     <samba at samba.org>
> Subject: Tree connect failed: ERRSRV - ERRbadpw
> Message-ID: <319C14BF8104D311B6CD008048C578F0013BD6 at PICOSBS>
> MIME-Version: 1.0
> Content-Type: text/plain;
> 	charset="iso-8859-1"
> Content-Transfer-Encoding: 8bit
> 
> Can anyone help me?
> 
> I have Samba 2.0.5a running on SuSE Linux 6.0 (2.0.36) and
> Windows NT Server 4.0 SP4 (PDC).
> 
> When I try to do a "smbclient -L MYUNIX" (according to the trouble
> shooting guide) I get the following message:
> 
> Addes interface ip=195.90.254.xxx bcast=195.90.254.255 
> nmask=255.255.255.0
> Password:
> Domain=[MYDOMAIN] OS=[Unix] Server=[Samba 2.0.5a]
> tree connect failed: ERRSRV - ERRbadpw (Bad password - 
> name/password pair in
> a Tree Connect or Session Setup are invalied.)
> 
> I added my Linux machine to the NT Domain, and even if I try
> to do "smbclient -L MYUNIX -U myuser" and enter the correct
> password, I get this error message. But if I do "smbclient
> -L MYWINNT -U myuser", I get the list of shares on the NT
> machine. "myuser" is a regular user in Linux.
> 
> What can be the reason of this? Any idea?
> 
> 
> Mit freundlichen Grüßen,
> das pixelconcept Team
> 
> i.A. Jens Rieck
> ________________________________________________________________
>  P I X E L C O N C E P T  GmbH * Königsplatz 36A * 34117 Kassel
>  Tel.: 0561/789845-0 * Fax 0561/789845-19 * www.pixelconcept.de
> 
> 
>  Global parameters
> [global]
> 	workgroup = MYDOMAIN
> 	netbios name = MYLINUX
> 	interfaces = 195.90.254.xxx/255.255.255.0
> 	security = DOMAIN
> 	password server = MYWINNT
> 	wins support = no
> 	wins server = 195.90.254.xxx
> 	guest account = nobody
> 
> [sicherung]
> 	comment = Sicherung
> 	path = /var/log
> 	read only = No
> 	writeable = Yes
> 	browseable = Yes
> 	public = Yes
> 	guest ok = Yes
> 
> 
> ------------------------------
> 
> Date:   Mon, 4 Oct 1999 10:03:20 +0200
> From:   Bjart Kvarme <bjart.kvarme at usit.uio.no>
> To:     jallison <jallison at cthulhu.engr.sgi.com>,
>         Multiple recipients of list SAMBA <samba at samba.org>
> Subject: RE: Automatically locating domain controller
> Message-ID: <NBBBLPHIOJJBLAHGIMCHAEBGFCAA.bjart.kvarme at usit.uio.no>
> MIME-Version: 1.0
> Content-Type: text/plain; charset="iso-8859-1"
> Content-Transfer-Encoding: 7bit
> 
> 
> 
> > -----Original Message-----
> > From: samba at samba.org [mailto:samba at samba.org]On Behalf Of Jeremy
> > Allison
> > Sent: Friday, October 01, 1999 9:42 PM
> > To: Multiple recipients of list SAMBA
> > Subject: Re: Automatically locating domain controller
> 
>  ...
> 
> > Also, this does mean that Samba will treat as a password
> > server any machine that can successfully register a 1C
> > name. I haven't done this yet as it bugs me that there is
> > no security in name registration. I know this is what NT
> > does, but what worries me is the following scenario.
> >
> > 1). Evil Hacker (tm) crashes the real NT PDC (quite easy I'm
> > afraid if it has a TCP port 139 open).
> >
> > 2). Evil Hacker (tm) sets their own laptop up as a logon
> > server and registers the 1C name for the domain (which they
> > can now do as the PDC is down).
> 
> This is actually doable without bringing the PDC down. When I found a
> machine called black registered as a BDC (1C name) in our NT 
> wins servers I
> was pretty sure Evil Hacker had visited us, but no... One of 
> our support
> people had installed samba 2.0x on a computer running Linux 
> and configured
> the server with wins server = our.wins.server and domain 
> logons=yes. The
> Linux box then registered 1c with the WINS server and the wins server
> returned our 6 logon servers + black to every computer asking 
> for the 1c
> name. If black was operated by Evil Hacker, then he/she could 
> expect to se
> some useful login attempts to black.
> 
> The only way I know of to make this secure is to make the 1C 
> (and probably
> 1B) names statically registered.
> 
> This does not prevent Evil Hacker from doing bad this if 
> he/she has access
> to your broadcast domain. Win9x and WinNT does an initial 
> broadcast to find
> login servers, and an Evil Host or a badly configured samba 
> server could
> cause a lot of trouble in this scenario. We have not seen any 
> Evil Hosts
> yet, but there has been a lot of private Linux boxes running a badly
> configured samba server. The moral of this is, do not use 
> broadcast to find
> 1C names...
> 
> > 3). Evil Hacker (tm) uses smbclient to connect as user "root"
> > to a Samba server, and sets his own laptop to allow any password
> > authentication for the user "root"......
> >
> > 4). Trouble follows........
> 
> Yes, we have seen some of it :)
> 
> > This is why I haven't added this feature yet. The current
> > password server code could be hacked this way if the name
> > resolution is set to use a NetBIOS name resolution (wins,
> > bcast) but cannot if it is set to use dns. This new feature
> > would *always* be hackable in this way.
> >
> > Any comments, thoughts ?
> 
> I think the feature would be nice to have, but the documentation could
> recommend using a static wins entry for the 1C name to stop 
> Evil Hacker.
> 
> 
> ------------------------------
> 
> Date:   Mon, 4 Oct 1999 01:42:36 -0700 (PDT)
> From:   vectro at pipeline.com
> To:     samba at samba.org
> Subject: slowness with smbclient's TAR mode
> Message-ID: <Pine.LNX.4.10.9910040140350.27490-100000 at crafter.house>
> MIME-Version: 1.0
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> 
> I noticed this mentionned in the archives but the issue was never
> resolved.
> 
> Evidently performing smbclient tar restores is excruciatingly slow. I
> noticed this while trying to restore my amanda backups to a 
> w95 machine
> over samba - well over 24 hours for 850 MB.
> 
> Does anyone have any idea why this is happening? Is there 
> anything I can
> tweak or change to fix this?
> Restores at this speed make my backups seem useless. :\
> 
> Thanks,
> 
> Ian Turner
> 
> -----BEGIN PGP PUBLIC KEY BLOCK-----
> Version: GnuPG v1.0.0 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
> 
> mQGiBDfkgYERBAC7vHU9ULWvDjKn/RzM7vdPwo1grC+rVzbKQ+TEX9kZL2KK7+oQ
> 0dufGbmCZBaja2Uqn65Qp/e8ZFwtgR3UJ/8aae1iGpi6svvYqJukHEEcoe3Ja3F9
> cmya1WoefSP1w+KTAsSvVM51SfBHSANum1sjY/cICFI9YoCdcRKYCk5XVwCg5w9G
> WjRELr/0pfL56sXmXG3KxnEEAIOkn189rToLi/VAq+ndPcPxI+iPz+bKO/CtHSku
> QB/nGeZl1SEzpaWI/vwLChrdtEKabkpQkfge6AHxeizhsxvfSee2EHjS5ZafEy/u
> TlSupQhbP4sCca8WwXnuCpObDu8wJYhtrukjtr1e9Y05FrAvpOBITpqGdhpdcWMy
> bTWrA/43MM1fjekgPol5Ket76Zzwv0E64BL/h2wAahPU5bl2yJ/7Os2S9hqAYPQz
> yEnvGS8mHTgZPEelyeBrpfwDvr3mxzI16eebLCVaJF8il/16vpqwuFf6Ybo3VRvc
> 5lzjIqf8pqEBlDVl8wv4vKtNZshSLlT3A0VWpJ34K23C5GadhLQgSWFuIFR1cm5l
> ciA8dmVjdHJvQHBpcGVsaW5lLmNvbT6IVQQTEQIAFQUCN+SBgQMLCgMDFQMCAxYC
> AQIXgAAKCRB+f25v1kTXGiMUAKCxQTUPFnJhvEhN8AD8p4Td3vkZwACgyplxK+c+
> pVbGHCRWdrhsDE4t+6eIRgQQEQIABgUCN+rf4wAKCRD4rtsK1HaXaD5yAJ49U2Zg
> TH9a9tRATmW8ttQm7Kj7KgCfYG352OZRB2YfSWEZYlt+MYrwDOqIRgQQEQIABgUC
> N/g/YQAKCRBOXEZM+RbMr7LLAJ4hdDcQhkGs4HSz5AP1WBeWcHZJiwCghu7hHZaq
> tDm0XtTt1ood/g4aKoO5AY0EN+SBnBAGAJiUIDNEJRBvhzBBaTIUE3/YCzNB3uIX
> aMYaTiXAXXA4a5hjEnuDxQ81s35LJhzHvHyPok4T+2OCoZZeRIiXTO1tCypVWRnZ
> +tKfgN7e1nbyyX+anzTeUmdkQe/ZnIy51WvOyNr6PF/Uv0MfIgIhlaYwydiCJadd
> uP9ioYadALqj56n2MYFthTXGYS949QuHQTboS2XfdTH/3RzfDtjyuz6GgosP3/5c
> MV/Gtf5TfwxgThJSaRsj2hxX+WLRPw4UJwADBQX+KB5lg6BhVCZnHdcBbohPhZSE
> A5yydXejAp5ZX6wg3np0ZQNPA98+4BKLDCkJ7ul/XisWohE2L7gjksWu6SpF98VM
> //S5WWKvYiB1qzx35M42jjzLtTW8AehkshFU+K1IppW+lfvonqdfCR7E41ayX8fT
> DJS3nEDZuKpSan0QfGKA9731Hky7cCr/QkYBbozoKcJBg6zNrIq9c7vJtYoPDlBa
> 78cEw696w6tM3bBovo0oyHykGmH7+hHSNhnE8lhhiEYEGBECAAYFAjfkgZwACgkQ
> fn9ub9ZE1xq6kACdH4EWYNdoMIFUZ4W0j9DQ7tpKkFgAnio422F423tRMDxYN8Xl
> 9Fz4Eh3X
> =kdPN
> -----END PGP PUBLIC KEY BLOCK-----
> 
> 
> ------------------------------
> 
> Date:   Mon, 4 Oct 1999 11:08:53 +0200 (CEST)
> From:   Urban Widmark <urban at svenskatest.se>
> To:     Jens Rieck <rieck at pixelconcept.de>
> Subject: Re: Tree connect failed: ERRSRV - ERRbadpw
> Message-ID: 
> <Pine.LNX.4.10.9910041059030.6733-100000 at cola.svenskatest.se>
> MIME-Version: 1.0
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> 
> On Mon, 4 Oct 1999, Jens Rieck wrote:
> 
> > I have Samba 2.0.5a running on SuSE Linux 6.0 (2.0.36) and
> > Windows NT Server 4.0 SP4 (PDC).
> > 
> > When I try to do a "smbclient -L MYUNIX" (according to the trouble
> > shooting guide) I get the following message:
> > 
> > Addes interface ip=195.90.254.xxx bcast=195.90.254.255 
> nmask=255.255.255.0
> > Password:
> > Domain=[MYDOMAIN] OS=[Unix] Server=[Samba 2.0.5a]
> > tree connect failed: ERRSRV - ERRbadpw (Bad password - 
> name/password pair in
> > a Tree Connect or Session Setup are invalied.)
> > 
> > I added my Linux machine to the NT Domain, and even if I try
> > to do "smbclient -L MYUNIX -U myuser" and enter the correct
> > password, I get this error message. But if I do "smbclient
> > -L MYWINNT -U myuser", I get the list of shares on the NT
> > machine. "myuser" is a regular user in Linux.
> > 
> > What can be the reason of this? Any idea?
> 
> Try: smbclient -L MYUNIX -N
> For me that always works when asking a samba server, and 
> almost never to a
> NT machine. I have no idea why (but when it becomes important 
> to me maybe
> I'll go find out why :)
> 
> 
> Samba uses the PDC to check valid usernames (& passwords) 
> when security is
> set to domain. At least that is what my little test shows:
> 
> cola:~/tmp>smbclient -L server -Ulocal_server_user
> Password: <local_password>
> session setup failed: ERRSRV - ERRbadpw
> cola:~/tmp>smbclient -L server -Uadministrator
> Password: <domain password>
> 
>         Sharename      Type      Comment
> ..
> 
> /Urban
> 
> 
> ------------------------------
> 
> Date:   Mon, 4 Oct 1999 19:47:13 +1000
> From:   <tridge at linuxcare.com>
> To:     mev0003 at unt.edu
> Subject: Re: PLEASE help with printing problem
> Message-ID: <19991004094718Z12811704-16204+8771 at samba.anu.edu.au>
> 
> > > Try printing to that printer via samba from linux and see 
> what happens.
> > > smbclient ''\\server\printer' -P
> > > print filename
> > > 
> > 
> > That works.  no problem.  Works on any of the printer definitions.
> 
> ok, good.
> 
> > There's got to be a reason why "The parameter is 
> incorrect".  Is there a
> > way to find this out?
> 
> that error message is a rather general one, and it does help to take
> it literally.
> 
> Probably the printer driver is trying to perform an unsupported option
> on the server and doesn't like the result. The most likely operation
> is an ioctl or a new IPC that we don't support yet. To fix it you
> would need to get a tcpdump sniff then look at what operations happen
> just before the error message. Looking at those may give a clue.
> 
> Cheers, Tridge
> 
> 
> 
> ------------------------------
> 
> Date:   Mon, 4 Oct 1999 19:57:23 +1000
> From:   <tridge at linuxcare.com>
> To:     samba at samba.org
> Subject: Re: PLEASE help with printing problem
> Message-ID: <19991004095726Z12863873-24228+8849 at samba.anu.edu.au>
> 
> > > There's got to be a reason why "The parameter is 
> incorrect".  Is there a
> > > way to find this out?
> > 
> > that error message is a rather general one, and it does help to take
> > it literally.
> 
> sorry I meant "it doesn't help to take it literally". That error is
> gievn for a huge range of errors, it generally indicates any form of
> unexpected reply from the server.
> 
> 
> ------------------------------
> 
> Date:   Mon, 4 Oct 1999 12:24:38 +0200
> From:   Ulrich Vornefeld <ulvo at comnets.rwth-aachen.de>
> To:     samba at samba.org
> Subject: Samba/MS Dos Client/ Autocad R12
> Message-ID: <199910041024.MAA02994 at bundy.comnets.rwth-aachen.de>
> Mime-Version: 1.0
> Content-Transfer-Encoding: 8bit
> Content-Type: text/plain; charset=ISO-8859-1
> 
> 
> Dear all,
> 
> we've a Linux/SAMBA server up and running. Everything works fine, 
> except the connection to 2 old DOS machines running MS DOS 6.22,
> MS Client and Autocad R12. 
> 
> Autocad R12 is not able to create and write files to the server,
> reading files works fine. The message of autocad is "Unsufficient
> disk space".
> 
> The DOS DIR-Command shows 0 bytes free, nevertheless there is
> plenty of space on the server and it is possible to create files
> manually.
> 
> In a Windows NT DOS Box on another machine the free space available 
> on the server is displayed correctly.
> 
> Any hints on that?
> 
> Thanks in advance
>         Ulrich
> 
> ---------------------------------------------------------------------
> Dipl.-Ing. Ulrich Vornefeld      |  Aachen University of Technology
> Research Assistant               |  Communication Networks (COMNETS)
> ulvo at comnets.RWTH-Aachen.DE      |  Prof. Dr.-Ing. B. Walke
> phone: ++49 (241) 80-7928        |  Kopernikusstr. 16
> Fax: ++49 (241) 8888-242         |  52074 Aachen, Germany
> 
> ------------------------------
> 
> Date:   Mon, 4 Oct 1999 12:53:29 +0100 
> From:   "Towers, Tim (London)" <ttowers at MLE.CO.UK>
> To:     "'Jeremy Allison'" <jallison at cthulhu.engr.sgi.com>,
>         "Towers, Tim (London)" <ttowers at MLE.CO.UK>
> Cc:     Multiple recipients of list SAMBA <samba at samba.org>,
>         samba-technical at samba.org
> Subject: RE: Automatically locating domain controller
> Message-ID: <199910041156.AA01414 at LONSF24318.MLE.CO.UK>
> Mime-Version: 1.0
> Content-Type: text/plain;
> 	charset="iso-8859-1"
> 
> Dear Jeremy,
> 
>    Thanks for your swift response, here's our
> (selfish) reply... :-)
> 
> > -----Original Message-----
> > From: Jeremy Allison [mailto:jallison at cthulhu.engr.sgi.com]
> > Subject: Re: Automatically locating domain controller
> > 
> > Towers, Tim (London) wrote:
> > 
> > Ok - this is doable by querying for a DOMAIN<1c> (group)
> > name and then attempting to use the list of IP addresses
> > returned in order as a password server.
> 
> I have tried locating our domain controllers using nmblookup
> but have failed. I can get a list of some of the machines in
> the domain by searching for the domain name, but suspect I'm
> running into a WINS problem (the list is FAR shorter than
> I would expect, 30 machines instead of maybe 1000). But I'll
> have a go at sorting that out as a seperate issue...
> 
> If I can get that working then I can build the process into
> the "samba.pkg" package file which we use under solaris.
> 
> > Hmmmmm. The question is, do we do this on smbd startup,
> > or should we do this on first client connect (better as
> > it allows flexlibility w.r.t smb.conf include files, but
> > potentially may cause timeouts on connect if the WINS server
> > is slow to respond) ?
> 
> As far as I can tell...
> 1) You can't go too wrong doing it when NT does it, on startup.
> 2) if one of the servers is down, how quickly can you notice and
>    how long will it take to change the authentication to a
>    backup server. This is a requirement for "enterprise"
>    software.
> 3) Can it use any clever tricks to connect to a server which
>    is "closer" in a network topological sense.
> 
> > Also, this does mean that Samba will treat as a password
> > server any machine that can successfully register a 1C
> > name. I haven't done this yet as it bugs me that there is
> > no security in name registration. I know this is what NT
> > does, but what worries me is the following scenario.
> 
> If the security hole is documented then the implementer
> can choose whether the risk is acceptible.
> 
> We're still using NIS, which has the same security hole,
> and as noted above, you can't go too wrong implementing
> something in the same way as the system you're emulating.
> 
> > Any comments, thoughts ?
> 
> Making the domain available to the smb.conf remapping would
> allow tricks to be played with DNS. That's the only way I
> can think of varying the "password server=" line with
> different domains. You can then handle the failover and
> security by putting "<ntdomain>.ntdc.company.com" in the
> file, and patching DNS to match. I wouldn't like to do it
> that way because there's an extra level of administration and
> DNS and NT may become out of syncronisation.
> 
> I prefer the simpler, NT way of doing things in spite of
> the security risk.
> 
> I've seen "password server = %m" put forward as a solution
> to this, regard it as a desperate security hole but need a
> viable alternative (the one machine you can guarentee is
> available is the client that is asking for authentication).
> 
>    Tim
> 
> ------------------------------
> 
> Date:   Mon, 4 Oct 1999 08:08:26 -0400 
> From:   "Hieb, Michael" <Hieb at WESTPORT.MSMAIL.AIGFPC.COM>
> To:     "'zhousenq at comp.nus.edu.sg'" <zhousenq at comp.nus.edu.sg>
> Cc:     "'samba at samba.org'" <samba at samba.org>
> Subject: Re: How to start smb server when reboot?
> Message-ID: <FC76B201C0C2D111AFEC00A02462169A0235AD57 at smtp.aigfpc.com>
> MIME-Version: 1.0
> Content-Type: text/plain;
> 	charset="iso-8859-1"
> 
> The file smb is for use in the sysvinit scheme. I would imagaine you
> start in either init mode 3 (console mode) or initi mode 5 
> (xdm). So cd
> in /etc/init/rc3.d and /etc/init/rc5.d and make the following links...
> 
> [hieb at lnxwp1 scripts]$ ls -la /etc/rc.d/rc3.d/*smb*
> lrwxrwxrwx   1 root     root           13 Sep  1 13:51
> /etc/rc.d/rc3.d/S99smb -> ../init.d/smb
> 
> [hieb at lnxwp1 scripts]$ ls -la /etc/rc.d/rc5.d/*smb*
> lrwxrwxrwx   1 root     root           13 Sep  1 13:51
> /etc/rc.d/rc5.d/S99smb -> ../init.d/smb
> 
> Note the 'S' means start, the 99 means the order the service will be
> started relative to the other servies in this init mode. I 
> typically add
> new services at a higher number than existing services so as to not
> introduce missing dependencies at boot time.
> 
> You can also put the service shutdown in init mode 6 (shutdown)
> 
> [hieb at lnxwp1 scripts]$ ls -la /etc/rc.d/rc6.d/*smb*
> lrwxrwxrwx   1 root     root           13 Sep  1 13:52
> /etc/rc.d/rc6.d/K001smb -> ../init.d/smb
> 
> Here the 'K' is for kill, the number 001 again specifies the order the
> servise will be shutdown relative to other services. Again I typically
> shutdown new services before I shutdown existing services so as to not
> introduce missing dependencies at shutdown.
> 
> HTH, Michael
> 
> 
> Date:	Sat, 2 Oct 1999 20:46:59 +0800
> From:	Zhou Senqiang <zhousenq at comp.nus.edu.sg
> <mailto:zhousenq at comp.nus.edu.sg> >
> To:	samba at samba.org <mailto:samba at samba.org> 
> Subject:	How to start smb server when reboot?
> 	Message-ID: <99100220523102.00237 at cf-dblab4
> <mailto:99100220523102.00237 at cf-dblab4> >
> 	Content-Type: text/plain
> 	MIME-Version: 1.0
> 	Content-Transfer-Encoding: 8bit
> 
> Hi,
> I installed Samba 2.0.3 on Linux 2.2.5.  Every time I reboot system I
> found the smb has not been started. But in the directory 
> /etc/rc.d,  the
> file "smb" exists.  When I run "smb restart",after a while, the samba
> server is ok. I wonder why the samba server is not up when system
> reboot. Thanks a lot.
> Followed is the content of the file "smb":
> [deleted...]
> 
> ------------------------------
> 
> Date:   Mon, 04 Oct 1999 08:39:05 -0400
> From:   David Collier-Brown <davecb at canada.sun.com>
> To:     "Peter J. Holzer" <hjp at wsr.ac.at>,
>         Multiple recipients of list SAMBA <samba at samba.org>,
>         Danila Vologdin <thbsamara at mail.radiant.ru>
> Subject: Re:  How to measure performance?
> Message-ID: <37F89FE9.82B232D7 at canada.sun.com>
> MIME-Version: 1.0
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> 
> Peter J. Holzer  wrote:
> | This is not enough. Many applications do not read and write files
> | sequentially. 
> 
> 	Yes, but that's probably too much to ask Ms. Vologdin
> 	to do on the first go-round... 
> 
> | his is evident for MS-Access (which reads and writes
> | single records), 
> 
> 	I'm on the record as recommending one never try to run
> 	a multi-user database against a remote filesystem: search
> 	for "free sample of crack cocaine" in the archives (;-))
> 
> | 	and also for MS-Word (which only ever loads the part
> | you are currently editing), but also for MS-Excel which does load
> and
> | save a whole spread-sheet at once, but reads and writes the file in
> some
> | seemingly random order (which is much slower).
> 
> | There are test suites like the BapCo suite which run the actual
> | applications (but we couldn't find much difference between a local
> disc
> | and one shared over 10 Mbit ethernet, so at least Bapco is probably
> more
> | CPU-bound).
> 
> 	Actually, oplocks cause local caching of the files,
> 	so the non-sequential accesses are mostly to local disk.
> 	That's possibly what fools bapco.
> 
> 	[Andrew has a newish load-generation suite, specifically for
> 	SMB: I expect folks will eventually start using and reporting
> 	based on it...]
> 
> 	Simple models and simple benchmarks aren't good for comparison,
> 	but in the presence of oplocks, can do a good job solving simple
> 	customer problems.
> 
> --dave
> -- 
> David Collier-Brown,  | Always do right. This will gratify some people
> 185 Ellerslie Ave.,   | and astonish the rest.        -- Mark Twain
> Willowdale, Ontario   | http://java.science.yorku.ca/~davecb
> Work: (905) 415-2849 Home: (416) 223-8968 Email: davecb at canada.sun.com
> 
> ------------------------------
> 
> Date:   Mon, 4 Oct 1999 09:24:57 -0500
> From:   "John E. Malmberg" <wb8tyw at qsl.net>
> To:     <samba at samba.org>
> Subject: Re: SAMBA digest 2258
> Message-ID: <9d7801bf0e74$3d7adac0$020a0a0a at wizard.xile.realm>
> MIME-Version: 1.0
> Content-Type: text/plain;
> 	charset="iso-8859-1"
> Content-Transfer-Encoding: 7bit
> 
> "Venkatesh, Muthukrishnan M2 (CONTRACTOR)"
> >        <VENKATM2#sesrcx1.src.se.bp.com> wrote:
> 
> >
> >  Can Samba ( OpenVMS)  map to a WinNT Shared service so that it will
> >  appear as a VMS logical ( we know "smbclient" able to connect to a
> >  WinNT shared as "interactive" session , which work like FTP)   .
> >  I want to work with  the VMS logical, for example
> >
> > $COPY abc.doc  SRC$NTSHARE:*.*
> >
> >  which will copy the VMS document to the logical (through 
> samba onto NT
> > share disk).
> >
> 
> 
> There are no known versions of SMBMOUNT or equivalent that 
> have been ported
> to OpenVMS.  This would be a significant project.
> 
> 
> The information for the OpenVMS port can be found at
> 
> http://ifn03.ifn.ing.tu-bs.de/ifn/sonst/samba-vms.html
> 
> There is also a mailing list specifically for that port.
> 
> A more recent, but experimental and entirely unsupported 
> version can be
> found at
> 
> ftp://ftp.qsl.net/pub/wb8tyw/
> 
> -John
> 
> 
> ------------------------------
> 
> Date:   Mon, 4 Oct 1999 17:19:18 +0200
> From:   "Peter J. Holzer" <hjp at wsr.ac.at>
> To:     Multiple recipients of list SAMBA <samba at samba.org>
> Subject: Re: How to measure performance?
> Message-ID: <19991004171918.Q18692 at wsr.ac.at>
> Mime-Version: 1.0
> Content-Type: multipart/signed; boundary=H14uD12u8nekTETJ; 
> micalg=pgp-md5;
> 	protocol="application/pgp-signature"
> 
> 
> --H14uD12u8nekTETJ
> Content-Type: text/plain; charset=us-ascii
> 
> On 1999-10-04 08:39:05 -0400, David Collier-Brown wrote:
> > Peter J. Holzer  wrote:
> > | This is not enough. Many applications do not read and write files
> > | sequentially. 
> > 
> > 	Yes, but that's probably too much to ask Ms. Vologdin
> > 	to do on the first go-round... 
> 
> Ok, maybe not for a first go-round, but one should be prepared to see
> significantly lower performance in real life than in simplistic
> benchmarks. The recipy given sounds like it could build good 
> traces for
> a benchmark, but I seriously doubt it does.
> 
> > | his is evident for MS-Access (which reads and writes
> > | single records), 
> > 
> > 	I'm on the record as recommending one never try to run
> > 	a multi-user database against a remote filesystem: search
> > 	for "free sample of crack cocaine" in the archives (;-))
> 
> I agree completely, but our users don't :-(
> 
> > | There are test suites like the BapCo suite which run the actual
> > | applications (but we couldn't find much difference between a local
> > | disc and one shared over 10 Mbit ethernet, so at least Bapco is
> > | probably more CPU-bound).
> > 
> > 	Actually, oplocks cause local caching of the files,
> > 	so the non-sequential accesses are mostly to local disk.
> > 	That's possibly what fools bapco.
> 
> Actually, the tests we did were against 1.9.16, which didn't support
> oplocks (Don't ask why we haven't upgraded to a newer version 
> yet - it's
> complicated).
> 
> > 	[Andrew has a newish load-generation suite, specifically for
> > 	SMB: I expect folks will eventually start using and reporting
> > 	based on it...]
> 
> Sounds interesting. Is it on the samba web site? I couldn't find it.
> 
> 	hp
> 
> -- 
>    _  | Peter J. Holzer             | Nobody should ever have to be
> |_|_) | Sysadmin WSR / Obmann LUGA  | ashamed if they have a 
> secret love
> | |   | hjp at wsr.ac.at               | for writing computer 
> programs that
> __/   | http://wsrx.wsr.ac.at/~hjp/ | actually work.  -- 
> Donald E. Knuth
> 
> --H14uD12u8nekTETJ
> Content-Type: application/pgp-signature
> 
> -----BEGIN PGP SIGNATURE-----
> Version: 2.6.3ia
> 
> iQDQAwUBN/jFdlLjemazOuKpAQG2+AXUCEAq/1ndOH1DFJqXykwWXPmbAeOyEr8A
> bkKvABA7sUSRhaLiQCbaToQFhCJmsyKrbk6ZWJyVAfW+qd6XbP5mAfDB1+/9SjyM
> hWTPz/qgOVrWORh5A4w0J2eEQgya8PqdTY6XNXaLDN6K0ll8vz7IKfBks38g/9AX
> 4iHoHt6GAytjnqhP9/dwzaj6PDD09Y4hS/pp57xTBIp9PWJWZT+w4b+JSjqVR23F
> HUvlBC5zQSel9K1SKIOKkeCCLw==
> =QDks
> -----END PGP SIGNATURE-----
> 
> --H14uD12u8nekTETJ--
> 
> ------------------------------
> 
> Date:   Mon, 04 Oct 1999 10:31:19 -0500
> From:   Matthew Vanecek <mev0003 at unt.edu>
> To:     Andrew.Patterson at infotech.monash.edu.au
> Subject: Re: SAMBA digest 2250 - Parameter is incorrect
> Message-ID: <37F8C847.7F3ADA16 at unt.edu>
> MIME-Version: 1.0
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> 
> Andrew Patterson wrote:
> > 
> > > Matthew Vanecek wrote:
> > >
> > > >NT lets me install the printers via samba, but not print 
> to them.  It
> > > >always returns a message that "The parameter is 
> incorrect".  Is there
> > > >any way to find out what parameter it's barfing on, and 
> how to fix it?
> > 
> > I think I started encountering the same problem recently.. I'm sure
> > I used to be able to print but somewhere along the line 
> something broke it
> > (the change to 2.0 maybe).. anyhow, somewhere I saw a post about
> > a knowledgebase article regarding printing from NT to windows 95
> > machines with a password. Basically it turns out that NT 
> gets confused if
> > it needs to prompt for a password when printing which causes the
> > "parameter is incorrect" message. The KB article says to try the
> > following
> > 
> 
> If that's the case, is there a way to set it up where NT 
> doesn't need to
> prompt for a password? 
> 
> > net use lpt1 \\sambaserver\printer password /persistent:yes
> > 
> > I tried this and then set up a printer to print on lpt1 and 
> everything
> > works fine now.. not an ideal solution but one that might fix your
> > problem.
> > 
> 
> Definitely not an ideal solution, but it works a little.  Are you
> supposed to be able to attach more than one printer to lpt1?  
> Right now
> I've got the 720dpi printer attached to it, but many times I 
> just want a
> quick printout at 360dpi, and occasionally one at 1440dpi.
> 
> -- 
> Matthew Vanecek
> Course of Study: http://www.unt.edu/bcis
> Visit my Website at http://people.unt.edu/~mev0003
> For answers type: perl -e 'print
> $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
> *****************************************************************
> For 93 million miles, there is nothing between the sun and my shadow
> except me. I'm always getting in the way of something...
> 
> ------------------------------
> 
> Date:   Mon, 04 Oct 1999 08:51:04 -0700
> From:   Eric Songer <esonger at lads.is.lmco.com>
> To:     samba at samba.org
> Subject: Compiling Under IRIX
> Message-ID: <4.1.19991004084540.00a10ba0 at strat>
> MIME-version: 1.0
> Content-type: text/plain; charset=us-ascii
> Content-transfer-encoding: 7BIT
> 
> Hello,
> 
> 	I am trying to compile 2.0.5a on IRIX 6.4.  I received 
> the following error
> repeatedly in the config.log:
> 
> configure: failed program was:
> #line 1884 "configure"
> #include "confdefs.h"
> 
> Pardon my ignorance, but could someone shed some light on this error?
> 
> Eric
> 
> ------------------------------
> 
> Date:   Mon, 04 Oct 1999 19:50:16 +0200
> From:   wmmvdwee <wmmvdwee at hawedo.com>
> To:     William Knox <wknox at mitre.org>, Samba Mailinglist 
> <samba at samba.org>
> Subject: [Fwd: print queue problem]
> Message-ID: <37F8E8D8.74CDBF2E at hawedo.com>
> MIME-Version: 1.0
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> 
> William,
> 
> Thanks for your reply. I'am running SuSe Linux 6.0 with samba
> version 1.9.18p10. I have installed my HP cdeskjet printer with
> YAST (SuSe) as a samba printer. SuSe use the apsfilter as print
> filter. I have a file /etc/apsfilterrc.cdeskjet. In this file
> there is a line:
> 
>   REMOTE_PRINTER="/usr/bin/samba_print //kinderen/hp -U 
> kinderen -N -P"
> 
> where kinderen= win98 client on which the HP printer is connected.
> 
> The samba_print file comes with the SuSe distributions. 
> If you like I can send you this file as attachment.
> 
> The printcommand I use are:
> "lpr text.file"
> or
> "lpr -Plp1 text.file"
> 
> Is there a way to solve the problem, as mentioned in my 
> earlier e-mail.
> 
> I would be gratefull in case you could help me, thanks in
> advance.
> 
> Rgds
> 
> Wil
> 
> William Knox wrote:
> >Wil,
> >What is the print command which you are using? smbclient, or some
> >homegrown script, or did you install the printer via the Linux 
> >printtool (assuming you are using a Linux that has a smb printer
> >option and the printtool)?
> 
> 
> 
> wmmvdwee wrote:
> > 
> > I'am running Linux as server.My printer is conected to an 
> win98 client.
> > It works fine, at least when the client and the printer are online.
> > When I print from my Linux machine and the win98 not connected,
> > the printcommand just disapear. "lpq"  gives "no entries".
> > Where does the printcommand go then?
> > 
> > My problem is that in case I print from the Linux server and the
> > win98 client is not connected, or the printer is offline the print
> > command is not queued for later printing when the win98 client
> > and/or the printer is online again. The reason is that my Linux
> > server act as faxserver, and incoming faxes are automaticly
> > printed.
> > 
> > Is this possible with Linux ans SMB, or do I have to configure a
> > remote printer?
> > 
> > Any suggestion(s) are welcome.
> > In case somebody can help me, and need some more info about printcap
> > etc. please let me know.
> > 
> > Thanks
> > 
> > Wil
> 
> 
> ------------------------------
> 
> Date:   Mon, 04 Oct 1999 15:44:16 -0400
> From:   Gerry maddock <gerrym at futuremetals.com>
> To:     samba at samba.org
> Subject: password synchronization
> Message-ID: <37F90390.E10ACECF at futuremetals.com>
> MIME-Version: 1.0
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> 
> I'm having a problem with encypted passwords. The only way I could
> finally get samba working was to enable plain text passwords 
> in regedit,
> then in smb conifuration write the following:
> encrypt passwords = no
> update passwords = yes
> 
> Once I was able to login to the Linux box from winblows network
> neighborhood I changed the smb.conf bacck to encrypt passwords = yes,
> etc... That works now. My question is is there an easier way 
> to do this,
> so I dont have to go thru all of that when I add a new user? I also
> tried: [ cat /etc/passwd | mksmbpasswd.sh >
> /usr/local/samba/private/smbpasswd ] for adding new users and 
> that would
> not work either. Is there anything else I can try?????? PLEASE HELP!
> 
> 
> ------------------------------
> 
> Date:   Mon, 4 Oct 1999 15:17:19 -0700 
> From:   Aaron Gray <agray at vsi.com>
> To:     "'samba at samba.org'" <samba at samba.org>
> Subject: Critital SMBMOUNT Error?
> Message-ID: <807E1C18A44ED311B72500902746407F1906BC at epicenter.vsi.com>
> MIME-Version: 1.0
> Content-Type: text/plain;
> 	charset="iso-8859-1"
> 
> I receive this error when trying to use smbmount
> from samba 2.0.5a
> 
> # smbmount //agro/shiz /shiz
> Added interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0
> mount error: No such device
> Please refer to the smbmnt(8) manual page
> mount failed
> 
> WHY do I get this error?
> 
> When I run JUST smbmnt (this is ran by smbmount normally) I receive
> the message.
> 
> # smbmnt 
> Segmentation fault
> 
> If I use the smbmnt that is from the Binary Package for 
> Slackware, then I do
> not
> get the segfault error, but I still get the "mount error: No 
> such device"
> error.
> 
> This is a Slackware 4.0 box w/ the updated samba to 2.0.5a
> Are my libraries hosed?  What IS causing this?
> 
> Please Help!
> 
> ------------------------------
> 
> Date:   Mon, 04 Oct 1999 21:00:59 -0300
> From:   Carmo =?ISO-8859-1?Q?Cr=EAdiney?= de Melo 
> <carmo at fusoes.com.br>
> To:     samba at samba.org
> Subject: HELP ! ERROR FILES > 30 IN CLIENT DOS FOR SAMBA 
> Message-ID: <37F93FBB.53F9 at fusoes.com.br>
> MIME-Version: 1.0
> Content-Type: text/plain; charset=iso-8859-1
> Content-Transfer-Encoding: 8bit
> 
> Please, Help me ! 
>   
> I am using SAMBA for Linux  with an image MSDOS 6.22 diskless
> for the drive CLIENT MICROSOFT, non i get to open more than 100 files 
> in the same application, already try the max open files of 
> the smb.conf 
> and it didn't work, it will be that you he/she knows some 
> command of the
> SAMBA to increase the files opened by CLIENT MICROSOFT.  
>   
> Attention: In Windows 98 it works very well but if I go for 
> the DOS 6.22
> the system it doesn't consider the files = 200 of the config.sys.  
>   
> Thanks   
> Carmo Crêdiney de Melo
> carmo at fusoes.com.br
> 
> ------------------------------
> 
> Date:   Tue, 05 Oct 1999 13:33:44 +1300
> From:   Peter Wood <peter at irba.co.nz>
> To:     samba at samba.org
> Subject: smbclient tar restore problem (linkflag) from tape-drive
> Message-ID: <199910050033.NAA05113 at pallando.irba.co.nz>
> 
> Greetings,
> 
> I am currently having a problem using smbclient (Samba v2.05a) 
> running on Solaris 2.5.1 to restore a tar file from a tape drive
> onto a Win NT share.
> 
> smbclient works successfully when using a tar file on disk, 
> but is skipping the tar file (created by a third party) 
> on the tape drive.
> 
> The command used is as follows:
> 
> smbclient //celeborn/test -U peter -T x /dev/rmt/0
> 
> The problem seems to be that the linkflag obtained from the 
> tape drive is not handled and the file is skipped. The 
> linkflag appears to be NULL - the code wonders whether it 
> could be a "gnu tar archive?". 
> 
> >From reading the code in "clitar.c" the current linkflag 
> values that are currently handled are: '0', '5', and 'L'.  
> If the linkflag is any other value (eg NULL) the file is skipped.
> 
> I have exprimented with substituting the code for linkflag case '0'
> for the default case and removing the "skip_file" - the restore then 
> works, but as I do not know the details of what the tar linkflag is, 
> I am unsure how safe this is to do.
> 
> Any hints or comments gratefully accepted.
> 
> Peter
> 
> 
> 
> 
> 
> 
> The relevant debug messages, and code follow:
> -----------------------------------------------
> 
> 
> (1) DEBUG MESSAGES
> 
> ..
> Reading the next header ...
> checksum totals chk=5786 fchk=5786 chksum= 13232
> firstb=805D9, secondb=A3E80, len=40
> Warning: NULL link flag (gnu tar archive ?) \a\508_c_rle.ps.gz
> Skip = 0, cliplist=<NULL>, file=\a\508_c_rle.ps.gz
> Skiping file. Size = 2231512
> Advancing to next block: a3e80
> ..
> 
> 
> (2) CODE SNIPPETS from "clitar.c"
> 
> 
> In clitar.c the problem appears to be due to the linkflag:
> 
>   /* can't handle some links at present */
>   if ((hb->dbuf.linkflag != '0') && (hb -> dbuf.linkflag != '5')) {
>     if (hb->dbuf.linkflag == 0) {
>       DEBUG(6, ("Warning: NULL link flag (gnu tar archive ?) %s\n",
> 		finfo->name));
> 
> ..
> 
> In the following code, since linkflag is NULL, it switches to 
> the "default" case, 
> which is to skip the file.
> 
>   linkflag = ((union hblock *)buffer_p) -> dbuf.linkflag;
> 
>     switch (linkflag) {
> 
>     case '0':  /* Should use symbolic names--FIXME */
> 
>       /* 
>        * Skip to the next block first, so we can get the 
> file, FIXME, should
>        * be in get_file ...
>        * The 'finfo.size != 0' fix is from Bob Boehmer 
> <boehmer at worldnet.att.net>
>        * Fixes bug where file size in tarfile is zero.
>        */
> 
>       if ((finfo.size != 0) && next_block(tarbuf, &buffer_p, 
> tbufsiz) <=0) {
> 	DEBUG(0, ("Short file, bailing out...\n"));
> 	return;
>       }
>       if (!get_file(finfo)) {
> 	DEBUG(0, ("Abandoning restore\n"));
> 	return;
> 
>       }
>       break;
> 
>     case '5':
>       if (!get_dir(finfo)) {
> 	DEBUG(0, ("Abandoning restore \n"));
> 	return;
>       }
>       break;
> 
>     case 'L':
>       longfilename = get_longfilename(finfo);
>       if (!longfilename) {
> 	DEBUG(0, ("abandoning restore\n"));
> 	return;
> 
>       }
>       DEBUG(5, ("Long file name: %s\n", longfilename));
>       break;
> 
>     default:
> 
>       skip_file(finfo.size);  /* Don't handle these yet */
>       break;
> 
>     }
> 
>   }
> 
> 
> 
> 
> ------------------------------
> 
> End of SAMBA Digest 2259
> ************************
> 


More information about the samba mailing list