Slashdot Mirror


Implementing CIFS

Bombcar writes "Anyone who has used Microsoft products in the last ten years has used the SMB protocol (now known as CIFS). Some have become experts in the usage of Windows file sharing, Samba, and more. We know that there can be a 15 minute delay before new machines appear in 'Network Neighborhood'. We've read the Official Samba 3 book, and follow the Samba mailing list once in a while, perhaps even answering questions. But there is a limit to the knowledge given by these sources." Read on for Bombcar's review of Implementing CIFS from Prentice Hall. Implementing CIFS author Christopher R. Hertel pages 642 publisher Prentice Hall rating 8 of 10 reviewer Tom Dickson ISBN 013047116X summary In-depth (but not too deep) coverage of the CIFS/SMB protocol

It is one thing to be able to use Samba, Windows, and the Common Internet File System (CIFS) protocol. It is another thing entirely to understand CIFS with sufficient depth to begin coding using it. This is where Christopher Hertel's Implementing CIFS begins.

This thick book (over 600 pages) begins with a history of NetBIOS in the DOS era. It quickly progresses to NetBIOS over TCP/IP (which evolved into the current CIFS protocol). Hertel documents the beginnings of quirks that will last throughout the life of the protocol. There is an RFC that was proposed in 1987, but many vendors have added extensions to this. (It might surprise you to learn that Samba has added extensions, which are covered in Chapter 24).

After the basic overview, he quickly dives into real coding of an actual (though simple) implementation. This will be his style for the rest of the book (except for humorous asides now and then). An aspect of the protocol, such as Name Resolution, will be explained in some detail, and then expounded in actual code (and in a few cases pseudocode).

The detail is good but not overwhelming. Some people (with names like Jerry Carter or Andrew Tridgell) will want more depth than this book provides, but for with a protocol as varied as CIFS, choices have to be made. As the Samba website mentions, this book is written in "Geekish." The book covers aspects of older and newer SMB/CIFS implementations, including a description of the NTLM2 challenge/auth system.

One thing that should be noted is that the code examples work, but as the author points out, they usually have little or no error handling. This is common to many books, but it is something to remember.

Now, should you get this book? If you're just a user, you probably don't need it. But if you've ever wished you could understand the Samba technical mailing list, or wanted to know why it takes up to 15 minutes to see a new machine, then you'll enjoy this book. If you want to utilize CIFS in any manner (even if just implementing Samba for clients), I'd highly recommend reading this. It will help you to understand what is going on on your network, even if you're not writing the code yourself. And if you want to be a Samba coder, it is required reading.

What didn't I like? I first read the book in an airport, and found that it relies heavily on having access to a computer. I would have preferred more explanations of code fragments than was given. However, this is a minor issue; most people who are implementing CIFS will be using a computer! I was also left with a desire for more information, but the large Appendix D along with many sources recommended provide for further study.

As a bonus, Appendix A tells you how to make a good cup of Earl Grey tea! That alone to some would be worth the price of admission.

You can purchase Implementing CIFS from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

199 comments

  1. Quote... by Anonymous Coward · · Score: 0, Funny

    or wanted to know why it takes up to 15 minutes to see a new machine, then you'll enjoy this book

    You insensitive clod, that 15 minutes is allocated to my coffee time!

  2. But who likes CIFS? by bbsguru · · Score: 3, Funny

    I know this is a difficult topic, but...Can't we just let CIFS to die, already?Alright, barring that, this really is a useful book. I wish I hadn't already learned it in the usual too-much-caffeine-for-rational-thought method.

    1. Re:But who likes CIFS? by smharr4 · · Score: 3, Insightful

      It's all very well saying 'let it die', but just what would you replace it with?

    2. Re:But who likes CIFS? by 110010001000 · · Score: 1

      No, because 95% of the computers on the planet use CIFS.

    3. Re:But who likes CIFS? by El · · Score: 4, Insightful

      Can't we just let CIFS to die, already? As long as people are still running Windows and Windows is still using CIFS, it will be necessary to support CIFS for Windows interoperability. No argument from me that it is a horrible protocol for file sharing; but then NFS isn't much better.

      --

      "Freedom means freedom for everybody" -- Dick Cheney

    4. Re:But who likes CIFS? by azzy · · Score: 3, Funny

      Easy, with the Posh Internet File System

    5. Re:But who likes CIFS? by smharr4 · · Score: 4, Insightful

      Exactly the point I was trying to make above.

      As much as the slashdot crowd would probably hate to admit that Microsoft got something right, SMB/CIFS is the 'killer app' for sharing files and printers over a LAN.

      If there's another application that does the same job as SMB/CIFS and is:

      • Free
      • easy to use client
      • easy to configure server
      • multiplatform - Windows, OS X, varying strains of Unix, and linux
      then bring it on. Until then, we're stuck with CIFS.
    6. Re:But who likes CIFS? by Anonymous Coward · · Score: 0
      "...As long as people are still running Windows..."

      I think that was the parent poster's point.

    7. Re:But who likes CIFS? by 110010001000 · · Score: 1

      Personally I think the an open protocol for this needs to be developed. I am the biggest MS supporter and also believe in closed source software, but I do believe in open protocols. The fact that the most heavily used LAN protocol is proprietary and requires reverse engineering is quite silly to me.

    8. Re:But who likes CIFS? by Anonymous Coward · · Score: 0

      And under EU law you can REverse engineer it legally to get interop.

    9. Re:But who likes CIFS? by Kethinov · · Score: 4, Interesting

      Replace it with nfs unix file sharing maybe? Oh I forgot. We're talking about Windows here. God forbid Microsoft should support nfs. It's not as if it's better than smb or anything and it's not as if Mac and the rest of the Unix world already support it

      --
      You're right, I wouldn't steal a car. But if it were possible, I sure as hell would download one!
    10. Re:But who likes CIFS? by Anonymous Coward · · Score: 0

      What should we use then? WebDAV? (MS integration already there, Linux has it too)

    11. Re:But who likes CIFS? by Anonymous Coward · · Score: 0

      God forbid Microsoft support a product that competes with its own.

    12. Re:But who likes CIFS? by Anonymous Coward · · Score: 3, Informative

      NFS is cool so long as you don't need passwords or authentication on your network resources. For other people that might be a little issue.

    13. Re:But who likes CIFS? by Anonymous Coward · · Score: 0
      Replace it with nfs unix file sharing maybe? Oh I forgot. We're talking about Windows here. God forbid Microsoft should support nfs.
      You can download the (now) free Windows Services for Unix from Microsoft, it supports nfs.
    14. Re:But who likes CIFS? by Laur · · Score: 4, Informative
      Replace it with nfs unix file sharing maybe? Oh I forgot. We're talking about Windows here. God forbid Microsoft should support nfs.

      Download Windows Services for UNIX for free from Microsoft, it contains a NFS client and server. I use this on my home network, no more Samba and its confusing config file (even with SWAT it is a nightmare). You can even choose to just install the nfs services and continue to use Cygwin for the rest of your Unix-on-Windows goodness.

      --
      When you lose something irreplaceable, you don't mourn for the thing you lost, you mourn for yourself. - Harpo Marx
    15. Re:But who likes CIFS? by Havokmon · · Score: 1
      Replace it with nfs unix file sharing maybe? Oh I forgot. We're talking about Windows here. God forbid Microsoft should support nfs. It's not as if it's better than smb or anything and it's not as if Mac and the rest of the Unix world already support it

      Wrongo! Just like Win2k (which finally met OS/2's standards from 1994), Win2k and WinXP are now modern OS's supporting NFS with the free Unix Services for Windows Addon (which of course is appropriately titled 'Windows Services for Unix')

      --
      "I can't give you a brain, so I'll give you a diploma" - The Great Oz (blatently stolen sig)
    16. Re:But who likes CIFS? by cscx · · Score: 2, Insightful

      NFS is the caveman of network file systems. Sorry, we've moved a bit beyond that, it's not 1994 anymore.

      Linus Torvalds himself said "Linux's NFS 'sucks rocks.'"

      It's not as if it's better than smb or anything

      Wow, you're right on the money!

    17. Re:But who likes CIFS? by Anonymous Coward · · Score: 0

      Except that the number of hoops you have to jump through to make it past their various forms and registration to get the free download make it not worth it. You might as well just use samba because that way you don't have to give MS your first born child.

    18. Re:But who likes CIFS? by Laur · · Score: 1

      I agree that it was pretty annoying to ge to the actual download. Just make up bogus information, it's not that hard.

      --
      When you lose something irreplaceable, you don't mourn for the thing you lost, you mourn for yourself. - Harpo Marx
    19. Re:But who likes CIFS? by yabos · · Score: 1

      222 megs for UNIX services?!?! WTF.

    20. Re:But who likes CIFS? by MCZapf · · Score: 2, Interesting

      NFSv4 looks promising to me. Of coure, that's what I thought two years ago as well. In any case, the goal for NFSv4 seems to be to take the best of NFS and AFS (and probably some other systems) and combine them.

    21. Re:But who likes CIFS? by Anonymous Coward · · Score: 0

      It is basically a full install of OpenBSD.

    22. Re:But who likes CIFS? by RevDobbs · · Score: 1

      ... it is actually Slackware running in a VM.

    23. Re:But who likes CIFS? by TwinkieStix · · Score: 1

      My problem with NFS is that it requires all machines on the network to have the same userID->userName mapping. With CIFS, even under Linux, everything is dynamic. I can take my Linux notebook between my company's linux based network and my homes linux based network, and everything just works.

    24. Re:But who likes CIFS? by Anonymous Coward · · Score: 0

      want speed?
      order some netware

    25. Re:But who likes CIFS? by Karl+Cocknozzle · · Score: 1
      no more Samba and its confusing config file (even with SWAT it is a nightmare).

      While I certainly agree that setting up the advanced features of Samba (Samba as Domain controller) can be a little hairy for the uninitiated, if you're doing a simple implementation it isn't hard at all assuming you understand the concept of files shares in Windows and how to abstract it using text instead of the little hand.

      In fact, samba was the first application I installed and configured on Linux and I am just as happy with my config today as I was two years ago when I set it up. Out of curiosity (and a little OT) did you seek help for whatever problems you had setting up Samba? Even though I didn't have many, I did find a need to consult a couple forums on one occasion... But I found the answer I needed easily enough.
      --
      Who did what now?
    26. Re:But who likes CIFS? by Anonymous Coward · · Score: 0

      Is it just me, or is

      "Windows Services for Unix"

      really

      "Unix services for Windows"

      ?

    27. Re:But who likes CIFS? by Anonymous Coward · · Score: 1, Interesting

      They didn't get anything right. It's a horrible protocol. Given that, the Samba team are the ones who got it as right as was possible. Which has turned out to be a mixed blessing in that SMB is now more used as a result. The world is pretty much aching for a well-designed, open, cross-platform network filesystem protocol. SMB is a stopgap until it arrives. And "Common Internet File System" is a laughable designation - particularly given how poorly suited SMB really is to use on the wider Internet.

    28. Re:But who likes CIFS? by caluml · · Score: 2, Informative

      I hate NFS. You have to have the same user ID on all boxes, and have the same group IDs on all the boxes. Pfffft. Far too much trouble. Samba - well, if you log in to Samba as foobar, then your smbd process runs as foobar, and hence has all the right IDs and group memberships that foobar has on the box running smbd. Samba has got tonnes of options. Bah. NFS? Do away with it, I say

    29. Re:But who likes CIFS? by k_head · · Score: 1

      There are other protocols you know. What about AFS?

      --
      The best way to support the US war effort is to continue buying American products.
    30. Re:But who likes CIFS? by Laur · · Score: 1

      You seem a bit contradictory, you say "if you're doing a simple implementation it isn't hard at all" and then you say you had to consult a forum for help. ;) Don't get me wrong, Samba is a great piece of software, but easy it ain't. Have you ever used NFS? A single line in my /etc/exports file, run "/etc/init.d/nfs-kernel-server start" (on Debian) and I've exported my home directory to my LAN! (You should also put a few lines in hosts.allow and hosts.deny for security). I didn't have any problems setting up Samba but it was nowhere near this easy. BTW, it's just anecdotal but it definitely seems that NFS is faster than SMB. Of course, YMMV.

      --
      When you lose something irreplaceable, you don't mourn for the thing you lost, you mourn for yourself. - Harpo Marx
    31. Re:But who likes CIFS? by harlows_monkeys · · Score: 1
      Replace it with nfs unix file sharing maybe?

      NFS isn't even good for Unix file sharing. Why would anyone want to use it on Windows?

      NFS is popular on Unix for exactly one reason: Sun gave it away for free, whereas AT&T wanted money for RFS (which, unlike NFS, actually supported Unix file system semantics).

    32. Re:But who likes CIFS? by Maserati · · Score: 1

      Appletalk would be a step up... Oh wait, Apple let that die. I'm only still using it at the office for 4 printers; LW 16/600s Will Not Die (especially for labels) and the Splashes are EFI products and consequently suck.

      --
      Veteran, Bermuda Triangle Expeditionary Force, 1992-1951
    33. Re:But who likes CIFS? by Anonymous Coward · · Score: 0

      Webdav

    34. Re:But who likes CIFS? by strobert · · Score: 2, Informative

      uh, actually Microsoft does support NFS, both client and server. see their services for unix. I think this is the correct URL:

      http://www.microsoft.com/windows/sfu

      It has sounded very promising. Still on the look into list (I am actually more going to be using the auth sharing features to have our unix boxes publish password changes to AD).

      I will say I'm not the biggest NFS fan -- mainly becuase of portmap (for some of the reasons, see Steven TCP/IP Illustrated Vol I comments in the dicussion on NFS) -- but to say you can't get NFS support under windows is not accurate.

  3. Samba in Linux vs Windows by mauriatm · · Score: 4, Interesting

    Maybe a bit offtopic, but on my network I notice that Windows machines in the Network Neighborhood are slower to access than samba shares on linux machines. Go figure.

    1. Re:Samba in Linux vs Windows by pilgrim23 · · Score: 2, Funny

      In my mixed platform (PC Mac, and more) network with PCMacLAN loaded, and Appletalk turned on for the PCs, I have found accessing a share and copying files to be far faster using that ancient protocol, even from Windows to Windows.

      --
      - Minutus cantorum, minutus balorum, minutus carborata descendum pantorum.
    2. Re:Samba in Linux vs Windows by SeederGOD · · Score: 1, Informative

      someone else did it, just check it out : samba faster

    3. Re:Samba in Linux vs Windows by Anonymous Coward · · Score: 1, Funny

      Maybe a bit offtopic, but on my network I notice that Windows machines in the Network Neighborhood are slower to access than samba shares on linux machines.

      Considering that the Windows machines are running upwards of 50 instances of netsky.d, this just shows the robustness of Windows Compared to Linux (which can't even run netsky.a)

  4. O'Reilly Safari by Erik_ · · Score: 4, Informative

    And best of all it's available on O'Reilly's Safari service.

  5. Read/Skimmed it by 0BoDy · · Score: 0, Flamebait

    I didn't really gain any practical knowldge from this book: I'd say that it would be best read by programmers wishing to understand how to implement an alternative. This book really show why SMB blows so bad

    --
    Can I be a Luddite too?
  6. Network Neighborhood by frenetic3 · · Score: 3, Interesting

    I've always wondered why on some machines it takes so damn long to browse the network on everything from 95 to XP -- most of the time I simply whimper and mumble incoherently waiting for it to eventually finish, but have never been able to diagnose the problem. Over the 'net it's even more agonizingly slow -- minute-long delays when pings are 30ms or less.

    The post suggests that this book tells the answer, but do any enlightened here know some typical causes of the ridiculously poor performance?

    -fren

    --
    "Where are we going, and why am I in this handbasket?"
    1. Re:Network Neighborhood by Bombcar · · Score: 5, Informative

      The usual cause is badly synced browse lists.

      If you add a samba server and tell it to run WINS (with wins=yes), and then tell EVERY windows machine that the wins server is at (IP address of Samba Server), things usually speed up considerably.

      Also, there is (I believe), a C:\winnt\system32\drivers\etc\lmhosts file that works as a hosts file for WINS).

    2. Re:Network Neighborhood by Anonymous Coward · · Score: 0

      It's not just browsing where lists might need to be refreshed, etc. Even if you know the exact IP of the machine, it can still take upwards of two minutes before you can access the files. During this period, the Windows UI is totally and completely unresponsive.

      What gives?

    3. Re:Network Neighborhood by MCZapf · · Score: 1

      I thought WINS was outdated. Am I wrong? (Assuming a domain master and not an ad-hoc Win9x network.)

    4. Re:Network Neighborhood by Vlad_the_Inhaler · · Score: 2, Informative

      Win2K only supports WINS in some 'compatability mode', don't know if XP supports it at all.

      WINS is dying.

      --
      Mielipiteet omiani - Opinions personal, facts suspect.
    5. Re:Network Neighborhood by gyp · · Score: 1

      You're doing ~WHAT~ over the net?

    6. Re:Network Neighborhood by droid_rage · · Score: 3, Informative

      Not true. 2k and XP both fully support WINS. It's generally configured in the DHCP scope, but it can be explicitly defined on the client.
      MS is trying to kill it off, but since 9x and NT boxes don't understand DNS for anything but internet name resolution, its demise is still a long way off.

    7. Re:Network Neighborhood by Anonymous Coward · · Score: 0

      The replacement for WINS is MS Dynamic DNS -- I dunno if any Unix servers support this.

    8. Re:Network Neighborhood by Anonymous Coward · · Score: 3, Informative

      Its hardly dying, in fact WINS is still very much alive and well in many Win2k networks. Those who don't use it get to enjoy wondering why nobody can see anything in network neighborhood and can lots of problems. That whole "WINS is dead" crap went out the window a few months after Windows 2000 came out.

      With 2k/2003 MS took a HUGE step back in networking. In a technical sense AD in better in every single way. But in terms of ditching old things like WINS its a total failure. Back in the old days networking 98 to NT was moron proof. Try connecting a 98 to XP box some time.

      Anyway based the fact that you didn't know that XP supports WINS I'll just assume your not an admin, but ask anyone who actually is a admin and works with Windows 2000 any they'll tell you WINS is far from dead.

    9. Re:Network Neighborhood by chmouel · · Score: 1

      It should be "RendezVous" (or zeroconf) that replace it on Linux.

      A litle of this is implement in Mandrake Linux.

    10. Re:Network Neighborhood by Anonymous Coward · · Score: 0

      If MS dynamic DNS is the same as rfc2136 then some Unix servers support it. I guess MS probably has some wacky extensions for AD and such (as opposed to using SRV), but the basics should be the same.

    11. Re:Network Neighborhood by Bombcar · · Score: 2, Informative

      In fact, that's why many times a Samba server added to the mix can help things. The samba server can act as an intermediary between the Win2k machines configured to speak DNS only, and the 98 machines that are howling for WINS information.

      WINS is only really dead in an all Win2k enviroment, and then only if you turn it off.

    12. Re:Network Neighborhood by Anonymous Coward · · Score: 0

      Not really -- Rendezvous is more like a NetBIOS replacement -- it lets the system broadcast for network services. Furthermore, it doesn't work across routers which makes it useless as a WINS/DDNS replacement.

    13. Re:Network Neighborhood by hitmark · · Score: 1

      err, wins does not work across routers unless you set up a server to talk to another server on the other side of the router. and ddns is in no way the same as a wins system.

      zeroconf is basicly a dhcp based network without a dhcp. it querys around to look for available ips inside a predefined scope (defined in the zeroconf standard i think) and get told about stuff like shared printers on top of that. after some initial boradcasting it should be able to do unicasts (i do belive that was the term) for most other traffic while netbios uses broadcast for allmost anything...

      --
      comment first, facts later. http://chem.tufts.edu/AnswersInScience/RelativityofWrong.htm
    14. Re:Network Neighborhood by operagost · · Score: 1

      Or, the stupid admin can just turn on the WINS service on a Windows domain controller and add it to the DHCP parameters.

      --

      Gamingmuseum.com: Give your 3D accelerator a rest.
    15. Re:Network Neighborhood by Anonymous Coward · · Score: 0

      Obviously WINS doesn't answer NB broadcasts across routers, but if the clients have the WINS server IP configured it works fine -- you just have some other machine doing master browser.

      > netbios uses broadcast for allmost anything

      Docs say that NBT caches the IP address once it's found it and uses unicast. If you have a WINS or DNS server, it doesn't normally broadcast at all.

    16. Re:Network Neighborhood by Anonymous Coward · · Score: 0

      Your mom.

  7. Just wondering by rsilvergun · · Score: 1

    what to replace it with for quick and dirty peer-to-peer. Not trying to troll, I genuinely don't know any alternatives. NFS isn't exactly easy to set up, and not much use when I go over to a friend's house to share files. Maybe FTP, but what if I want to share a printer? Plus you're still configuring an ftp server (I haven't done it yet, but it looks harder than adding a share to my smb.conf).

    --
    Hi! I make Firefox Plug-ins. Check 'em out @ https://addons.mozilla.org/en-US/firefox/addon/youtube-mp3-podcaster/
    1. Re:Just wondering by greed · · Score: 1

      Well, obviously the replacement will be WebDAV, over HTTP. That's much better than SMB.

    2. Re:Just wondering by Anonymous Coward · · Score: 0
      Plus you're still configuring an ftp server (I haven't done it yet, but it looks harder than adding a share to my smb.conf).
      For quick and dirty filesharing, ftp is very easy. On my linux laptop I use proftpd. Setting it up involved only changing "Servertype" from "inetd" to "standalone". To start sharing, I type "sudo proftpd -n" which runs it in nodaemon mode, so output appears on screen. When I'm done, I press Ctrl-C and it's gone. The beauty is that you don't need to muck with Workgroups or Network Places or whatever, just the IP address and IE or the command-line ftp client. On the Windows partition, I use SlimFTPd. Configuration is also easy, it involves changing one or two very obvious lines in a text configuration file. Just don't forget to kill the process when you're done.
  8. Most implementations will be in written in C... by tcopeland · · Score: 2, Insightful

    ...but is there any reason why a CIFS client (or server) couldn't be written in a higher level language like Ruby?

    Obviously there'd be a speed hit, but it seems like it'd be a lot faster to develop in, and time-critical bits could be written in C and accessed via Ruby/DL or whatever.

    Ditto for Python, of course... same sort of advantages/issues.

    1. Re:Most implementations will be in written in C... by 110010001000 · · Score: 4, Insightful

      For what purpose? Ruby is an esoteric language that hardly anyone uses and less people will use as the years goes on. This means that the code base will be unmaintainable.

      Now Java or C# is a real option. Microsofts next implementation will be written in C# as a matter of fact.

    2. Re:Most implementations will be in written in C... by tcopeland · · Score: 0, Offtopic

      > For what purpose?

      Oh, the usual scripting language reasons: easier to program, easier to debug, reduces dangers of stack smashing and suchlike... all that.

      > Ruby is an esoteric language that
      > hardly anyone uses and less people will
      > use as the years goes on

      Ruby is a general purpose language that lots of people use and it will continue to grow in popularity.

      There, now we've both made assertions. So where do we go from here?

    3. Re:Most implementations will be in written in C... by Anonymous Coward · · Score: 0

      jCIFS is a Java CIFS client (and the jCIFS project was founded by this book's author).

    4. Re:Most implementations will be in written in C... by ScaredSilly · · Score: 1

      There is a java client called jCIFS that is part of the Samba project.

    5. Re:Most implementations will be in written in C... by 110010001000 · · Score: 2, Insightful

      Well my assertions are based in fact. Do a poll of every software developer or programmer you know and ask them if they have ever written or seen a program written in Ruby. Then ask them if they have seen or written one five years (or three years) ago.

      The same principles apply to Eiffel, et al.

    6. Re:Most implementations will be in written in C... by tcopeland · · Score: 1

      > Do a poll of every software developer
      > or programmer you know and ask them if
      > they have ever written or seen a program
      > written in Ruby

      The 50 or so developers on my current project all find Ruby quite handy.

      > same principles apply to Eiffel, et al

      Yup, not much Eiffeling going on these days, to the best of my knowledge. I guess I feel that there's a bit of a difference btwn Ruby and say, Ada or Eiffel.

      Maybe we're the last project in the world to use Ruby... but I doubt it....

    7. Re:Most implementations will be in written in C... by Malc · · Score: 2, Insightful

      It seems to me that the bottleneck will be the network, not the application code. What's an extra fraction of a ms making a call in a high level language instead of C when the round trip time on the wire could one or two orders of magnitude longer?

    8. Re:Most implementations will be in written in C... by Cato · · Score: 1
      Why not use a very high level language that has performance as good as C? OCaml is one such language (see my OCaml page for links including benchmarks). OCaml is a functional language with good OO features and system API access, and would easily be capable of performing well for a CIFS implementation - no need to drop down into C for performance.

      Personally, I prefer programming in Perl - partly due to familiarity and the amazing CPAN (truly creates a very high level language where the primitives are things like SOAP, Amazon Web Services, DB access, parser generators, etc), but OCaml's performance is much better since it compiles to efficient machine code.

    9. Re:Most implementations will be in written in C... by tcopeland · · Score: 1

      > the bottleneck will be the network,
      > not the application code

      Right on. It's like working on a SOAP client - you can optimize the heck out of the client, but sending all that XML over the wire is where your performance hit is going to happen.

    10. Re:Most implementations will be in written in C... by 110010001000 · · Score: 1

      OK, I take it back. At least 50 people use Ruby. Millions use C. Which would you bet on sticking around?

      Ruby and Eiffel are different languages to be sure, but they both suffer the same fate.

    11. Re:Most implementations will be in written in C... by tcopeland · · Score: 1

      > At least 50 people use Ruby

      At least 50 people use C, too! :-)

      > Which would you bet on sticking around?

      Both.

      > they both suffer the same fate

      Nay, forsooth!

    12. Re:Most implementations will be in written in C... by alex_tibbles · · Score: 1

      To put it both ways: C has been going 30 years - it's gotta die some time! But C has been going 30 years - so it's gonna go forever.
      Fortran _is_ being used a lot less. I suspect C will decrease too. It is a big problem in the programmer: employer interface that recruitment agencies look for language 'skills' whereas programmers have programming skill. Some programmers are inflexible and won't learn new languages, but most will (and proportiately quickly to how good a programmer they are 'in general').

      Sorry for the rant. I don't see Ruby dieing out - it has niche/cult appeal. C will eventually be reduced to a niche too.

    13. Re:Most implementations will be in written in C... by tcopeland · · Score: 1

      Yup, sure, right on. And Ruby is written in C, after all, so if C dies Ruby won't be far behind.

      I guess it's hard to say much about the future of languages... seems like they sort of get revived now and then... the ebb and flow, as 'twere. But anyhow, I plan on using Ruby for the foreseeable future :-)

    14. Re:Most implementations will be in written in C... by Anonymous Coward · · Score: 0

      hava a look at jcifs at . Like the name suggests its a java implementation of the cifs protocol

      have fun
      Fry

  9. Not Andrew Tridgell by Anonymous Coward · · Score: 2, Informative

    This guy isn't Andrew Tridgell.

    He put on a pretense of being some other authoritatian figure ("John Nagle") in some other article (and got modded into oblivion there)

    http://slashdot.org/comments.pl?sid=91307&cid=7861 607

    Knock him down.

    1. Re:Not Andrew Tridgell by Anonymous Coward · · Score: 0

      Who cares? The post is on-topic, and at least the guy gave credit to the original author.

      Mods, use your points on stuff that matters, not this petty tripe.

    2. Re:Not Andrew Tridgell by dknj · · Score: 1

      The grandfather poster is a Theif. That was actually Andrew's post to amazon. We can all mod him to -1 now kthx

      -dk

    3. Re:Not Andrew Tridgell by Anonymous Coward · · Score: 0

      This is the first time I've ever heard that impersonating someone was a way of giving "credit to the original author" ...

      But I suppose I've been trolled. Meh.

    4. Re:Not Andrew Tridgell by Anonymous Coward · · Score: 0

      I've got split personalities, you insensitive clod!

      -- Andrew Tridgell / John Nagle

    5. Re:Not Andrew Tridgell by Anonymous Coward · · Score: 0

      Oh crap, it's worse now!

      -- Andrew Tridgell / John Nagle / Anonymous Coward

    6. Re:Not Andrew Tridgell by mamba-mamba · · Score: 1

      I don't see any reason to believe that the Amazon post you linked to is authentic. For all we know, it could have been written by the same guy as the post above.

      Who knows?

      MM
      --

      --
      By including this sig, the copyright holders of this work or collection unreservedly place it in the public domain.
  10. My Take by 110010001000 · · Score: 5, Interesting


    This book is simply the best reference available for CIFS. I only say that because I have spent $$$ getting everything on the subject I can. With the recent changes in Microsoft licensing every sensible IT professional should be exploring alternatives. A SAMBA server is a great alternative. This book is all you need to go from knowing next to nothing to knowing enough to impress your geeky Network Admin friends.

    This book is well written, clear and expansive. I didn't read it cover to cover (not at first anyway) I found pieces I needed, applied it, digested it, reviewed it and then went on to the next morsel I needed. If I missed something it was easy to find. By the way, it works with Win2K and WinXP neither of which is well documented by anyone anywhere.

  11. Book is open source as well by Anonymous Coward · · Score: 4, Informative

    The full text of the book is available online as well; I don't want to slashdot the site, but google for "implementing cifs".

    1. Re:Book is open source as well by Lifewish · · Score: 1

      Too late, it's been hammered.

      --
      For the love of God, please learn to spell "ridiculous"!!!
    2. Re:Book is open source as well by Thing+1 · · Score: 1
      Seems to be back up: Implementing CIFS.

      I see it's published under the Open Publication License but it appears I cannot download it and read it on my Palm on the train -- it's a web-only affair. Sure, I could spider the site but I haven't done that yet; I prefer entire books (I use MobiPocket).

      At any rate, enjoy the link!

      --
      I feel fantastic, and I'm still alive.
  12. What we *really* want to know is... by Anonymous Coward · · Score: 0

    Why the hell does windows leave ports 137-9 open all the time? There's nothing I *want* running on there, and I know that I'm not sharing any files/printers/etc. so why the hell is that left open?

    Moreover, is there any way to close it? Thanks!

  13. The book that Microsoft should have written by Anonymous Coward · · Score: 0, Redundant

    For years, developers and administrators have struggled to understand CIFS, Microsoft's poorly documented standard for Internet file sharing. Finally, there is an authoritative, cross-platform guide to CIFS capabilities and behavior. Implementing CIFS not only delivers the priceless knowledge of a Samba Team member dedicated to investigating the inner workings of CIFS, it also identifies and describes crucial specifications and supporting documents.

    - Provides essential information for designing and debugging large Windows(R) and/or Samba networks
    - Offers clear, in-depth introductions to Server Message Block (SMB), NetBIOS over TCP/IP (NBT), browser services, and authentication
    - Drills down into the internals of CIFS, exposing its behavior on the wire and at the desktop?and its strange quirks
    - Presents illustrative code examples throughout
    - Reflects years of work reviewing obscure documentation, packet traces, and sourcecode
    - Includes the SNIA CIFS Technical Reference

    Implementing CIFS will be indispensable to every developer who wants to provide CIFS compatibility?and every administrator or security specialist who needs an in-depth understanding of how it really works.

  14. MacOSX Samba by selderrr · · Score: 2, Interesting

    what never ceases to amaze me is that my 400Mhz iMac can pull files faster from my AMD 1800xp than my P4@3GHz can...

    Both PCs run XP pro, the iMac runs panther. Go figure.

    As far as those 15 minutes concern, I got one solution for ya : rende-vous/zeroconf. Since iTunes/win can find macs using this protocol, a win port is allready done, so we can only hope MS sees the light and uses it for network scanning one day.

    1. Re:MacOSX Samba by tupps · · Score: 3, Informative

      Actually Apple gives away (BSD Style license) a code sample for implementing rendevous services. That should mean that anyone can/should implement rendevous if they need network discovery.

      --
      Go out and get sailing!
    2. Re:MacOSX Samba by TwinkieStix · · Score: 1

      Also, I heared that UPnP and rendevous both use the same IETF draft. I believe that Windows XP already auto-detects CUPS printers. At least it does on my network.

    3. Re:MacOSX Samba by Anonymous Coward · · Score: 0

      this is off-topic but, that's a great link...people seem to have forgotten that gulf war 1 resulted in the death of tens of thousands of iraqi troops at the hands of 'coalition' forces...which should also be considered when accounting for the 'occupants' of at least some of the mass graves found in iraq...which also brings up the question, at least in my tiny mind, as to how Saddam can be prosecuted for crimes by the same people that supported him while he committed the alleged crimes.

      "Screwy, ain't it!?!"
      --Bugs Bunny

    4. Re:MacOSX Samba by CAIMLAS · · Score: 1

      I've noticed the same thing in linux when pulling/pushing files between win2k workstations and a linux machine. The workstations are 800MHz Durons - 1800Mhz AthlonXPs, and the samba (2.2)/linux (2.4) system is a Pentium 2 333MHz (!)

      When pulling/pushing (making requests) with a Win2k workstation: narry a problem. Works much better than a setup with windows windows interacting.

      When pulling/pushing (making requests) with the linux system on any of the workstations: quite often the Windows machine will choke up while pushing data to a windows machine, while I've not noticed anything pecular about pulling. Not sure if this is due to a poor implimentation of the samba client, or if it's due to windows choking on data/throughput, or what. (Anyone else experience this?)

      I've also brought my linux laptop in and done some file transfer: it works without a hitch, and file transfer is substantially faster from linux linux than any windows linux or windows windows setup I've seen.

      --
      ~/ssh slashdot.org ssh: connect to host slashdot.org port 22: too many beers
  15. Code examples? by gpinzone · · Score: 2, Interesting

    Could someone please explain what kind of code examples the book covers? I thought the whole point of modern OSes was to "abstract" everything for the user, including the method of networking.

    1. Re:Code examples? by Bombcar · · Score: 2, Informative

      The examples are of internal CIFS functions. As I said, if you just want to use CIFS, you may not need this book. This is if you want to write code that directly plays on a network using the CIFS protocol.

      jCIFS is one example, Samba is another.

      One code example is getting a browse list from another networked machine.

    2. Re:Code examples? by Anonymous Coward · · Score: 0

      CIFS is for developers, not users.

    3. Re:Code examples? by gpinzone · · Score: 1

      Okay, but what kinds of programs would you need to write that require intimate knowledge of the protocol that handles your OS' particular flavor of network shares? What I'm looking is for practical uses that a developer would be interested in or are these just code examples to illustrate how it works under the hood simply for educational purposes?

    4. Re:Code examples? by gpinzone · · Score: 1

      No kidding. So what kinds of programs would a developer need to use these code snippets for?

    5. Re:Code examples? by Bombcar · · Score: 1

      I dunno, maybe a simple version of WinNuke that lets you pick targets from a LAN? :)

      But, yeah, if you don't know what you'd do with the information, it probably won't be very useful.

      But if you want to work on the Samba project, for example, it'll be very useful.

    6. Re:Code examples? by Nexx · · Score: 1

      o/~ If you're writing printer firmware clap your hands *clap* *clap*. o/~

      Sorry, I couldn't resist :)

    7. Re:Code examples? by Anonymous Coward · · Score: 0

      * implementing remote KontrolPanel/GControlCentre/Whatever for managing your Windows boxen?

      * Security scanning any dynamic IPs on your network which nmap identifies as Winblows for open shares etc?

      * Usermode FTP-style GUI for file uploads/downloads from windows servers?

      * Interacting with a CIFS server? (Uh-duh!)

    8. Re:Code examples? by gpinzone · · Score: 1

      So in other words, hardly anyone.

    9. Re:Code examples? by Bombcar · · Score: 1

      Yup. Just like hardly anyone has any use for the Kernel source. But it can be useful as a reference. The smbfs and cifsfs projects, jCIFS, Samba, and maybe even Microsoft can benefit from it, but a standard developer would have use perhaps only as a cautionary tale. :)

      However, a Samba implementer can gain knowledge from it and begin to understand in more depth what the level 10 error logs are saying, which can help increase time-to-solve on new issues. That's where I place the value of this book. Helps a good deal, for me.

    10. Re:Code examples? by Tukla · · Score: 1

      Eh, everything doesn't have to have a practical side. I mean, look at the stories about case mods and people porting Linux to their Casio wristwatches or whatever.

  16. overgeneralisation by tverbeek · · Score: 2, Informative
    Anyone who has used Microsoft products in the last ten years has used the SMB protocol (now known as CIFS)

    Except for the people whose Windows boxes weren't hooked up to a network, or who instead used Netware for file/print sharing, or whose only loaded network components were TCP/IP and the adapter device. And even though it's installed by default, that doesn't mean everybody who failed to deinstall it actually used it.

    --
    http://alternatives.rzero.com/
    1. Re:overgeneralisation by HSpirit · · Score: 1

      ...And even though it's installed by default, that doesn't mean everybody who failed to deinstall it actually used it.
      Every time I do a
      nmblookup -A
      lookup on a machine which has not uninstalled NetBIOS over TCP (providing port 137 isn't firewalled) that box is using SMB whether its owner likes it or not :)
  17. Network Neighborhood.... by Sentosus · · Score: 0, Offtopic

    And networking technologies have proven to be a letdown to what I was taught in early years of school.

    I remember being told that we would have clusters of machines that form a large virtual machine that can multitask using the advantages of each machine. Then when processes needed it, the entire force of the machines could be used.

    It was essentially a Mainframe with Beowulf clustering as the power behind the mainframe. I listened to so many unique possibilities with this, but now we have reality and I guess that in the 90's, we could not have guessed what we would be doing just 5-8 years later with computers.

    I welcome books that give basics to how protocols evolved and how a person's vision of the future was modified over and over to come up with a new vision for the future to be modified again.

    Standing on the edge of Tribal's PowWow, who would have guessed that the vision then would take 5 years to be rerealized again by MSN and Yahoo chats?

    The neighborhood is not a neighborhood at all, but more like a grid where communication is not me walking next door to say hello, but me calling up my friend on the other side of town and attempting to move his house next to mine.

    SP --- Off Topic and Fine with it.

    1. Re:Network Neighborhood.... by awx · · Score: 1

      DEC had it with VMS on VAX, and later, Alpha. Multi-CPU clustering and seamless failover of all components in the system - software, CPUs, storage...

      RIP DEC.

      --
      Feel that power? That's mah MOUSING FINGER
  18. Re:my review... by Anonymous Coward · · Score: 0

    So really, this is a good book for any network administrator who regularly troubleshoots his/her Windows-Linux-Etc hybrid network? I'd like a book that covers common issues between Samba and native Windows hosts, and issues based solely on individual platforms. I sometimes notice CIFS problems that are specific to a platform, and a book that covers the why and the fixes would be really cool IMHO.

  19. This book is under an Open Source license by Bruce+Perens · · Score: 5, Informative
    1. Re:This book is under an Open Source license by 110010001000 · · Score: 2, Insightful

      Now here is a guy I can respect. One who believes in the Open Source spirit enough to actually make the content of a book available for free. Kudos to Bruce for not being a hypocrite like so many of the Open Source "community".

      It would be interesting to hear about how well the books sell after being made freely available on the net. My guess is not very well, but I am a fervent anti-open source guy. Please let us know.

      Thanks

    2. Re:This book is under an Open Source license by Bruce+Perens · · Score: 5, Informative
      Thanks. There are 10 books in the series now, all treated the same as this one - online source and PDF, Open Source license. As far as I can tell, all have at least broken even, and most have made money.

      But the fact is that technical book authors are generally writing for some other reason than to get direct income from the book. Most do it for the intangibles - promotion of their own careers or projects they support, etc.

      What I like about this series is that the books need never die, since anyone can edit and print them. They don't get into that state where the publisher sells a few hundred copies a year on order and doesn't revert the rights to the author for years. Authors hate that.

      But we are careful with timing. We make sure the "pipeline" between the publisher and bookstores is full before the electronic copy is available. So, clone publishers don't have much incentive, as the stores have already filled their orders.

      I have to admit that this would not work as well if people liked to curl up with e-books. If that day ever comes, we'll change the strategy, but the end product will still be Open Source books.

      If you are very anti-open-source, it's probably because you don't yet understand the ways that Open Source works well for business and business people. I have a paper on the economic basis of Open Source that I'm working on, that you will probably find of interest. It should be out in a week or two.

      Thanks

      Bruce

    3. Re:This book is under an Open Source license by 110010001000 · · Score: 2, Interesting

      I am interested in your paper on the economics of OS. I am personally convinced that the economics of Open Source are damaging to the software industry and to the software developer. Perhaps your paper will give me insight into this. I hope it will be available via your website.

    4. Re:This book is under an Open Source license by Bruce+Perens · · Score: 4, Insightful
      Yes, I will put it up on the web. I think I can show you that Open Source isn't damaging to individual software developers and is of benefit to business and the economy in general. But it is damaging to a Microsoft-style business. Home refrigerators were very damaging to the huge industry that harvested, stored, and transported ice.

      Thanks

      Bruce

    5. Re:This book is under an Open Source license by LetterJ · · Score: 2, Interesting

      Is there a timeline for the digital versions of "Rapid Application Development with Mozilla" and "C++ GUI Programming with Qt 3"? I noticed that neither has links for the digital downloads. Just curious if it's because those are new titles and it just hasn't happened yet. Not that it matters much, my copy of RAD with Mozilla should be delivered today and I can enjoy it on paper. I would just love to have a copy on my Zaurus instead of having to lug the paper copy around.

    6. Re:This book is under an Open Source license by Bruce+Perens · · Score: 2, Informative
      Usually it's 90 days after they have shipped through to the bookstore shelves. It might be time for the Mozilla book, I'll ask my editor the next time we chat. It's not yet time for the Qt book.

      Thanks

      Bruce

  20. Windows XP network problems: Underlying sloppiness by Futurepower(R) · · Score: 2, Informative


    MOD PARENT UP!

    I notice that, too. Also, Windows XP machines newly added to a Windows 98 peer-to-peer network have trouble seeing the Win 98 machines. Posting to official Microsoft newsgroups provides no answers to this quirky behavior. Of course, that may be because Chang, Li, Wu, Zhang and others have been told not to discuss it.

    I put some of the fixes for quirkiness together so that I could ask Microsoft if there was anything I am missing: Possible Solutions to Slow Network Browsing or Inability to Connect. Some of the problems mentioned are obviously not the fault of Windows XP directly, but the fact that they often occur seems sometimes to be the fault of underlying sloppiness in Windows OS code.

    Acronis TrueImage is a Linux-based Windows XP backup utility that never has any problem seeing all machines on a Windows peer-to-peer network.

    I've also never had problems with Linux itself.

  21. Re:Optimizations by Anonymous Coward · · Score: 0

    WARNING: Do not click that link!

  22. Apprentice Hell?... by SmackCrackandPot · · Score: 0

    For a moment, I thought this title read "Bombcar's review of Implementing CIFS from Apprentice Hell.'

  23. M$ hides other half of knowledge by superpulpsicle · · Score: 3, Funny

    As good as Samba is... you know M$ is always hiding something about their network neighborhood protocol. It wouldn't surprise me if the code reads "If Samba wait 5 minutes"

    1. Re:M$ hides other half of knowledge by MacDaffy · · Score: 3, Informative

      Don't be surprised; you're right! I was doing QA for a CIFS implementation when the engineer ran across a bug that he just couldn't corral. We checked the RFC. We checked the code. We checked installation. Couldn't pin anything down.

      He finally put a sniffer on the network and analyzed the traffic between a Windows server, a Windows workstation and a workstation running our implementation. Turns out that the RFC instructs implementers to NEVER place anything other than zero into a certain location (LONGINT). However, that field was almost always non-zero when it was passed between the two Windows machines.

      The engineer put the length of the data transfer in bytes into the field and it has worked ever since.

      That incident cemented my negative attitude toward Microsoft. They don't try to win by looking good; they try to win by making everyone else look bad--even if that includes themselves. If you're uncertain about something that Microsoft is doing, use that premise as a reference point and you can't go wrong.

  24. This is a great book for implementors by dslamguy · · Score: 4, Interesting
    I read this book on Chris's web site even before it was published (yes, I have bought a copy) and it was an invaluable guide for me as I wrote a CIFS implementation. The book is fairly easy to read, even though it is highly technical. What it does cover, it covers extremely well.

    However, I did need the sniffer method of reverse engineering for much of what the book did not cover. One complaint I had is that I needed more information on the higher level protocols such as LANMAN for handling printer queues and this information was either non-existent or schetchy in the book. Although the book is long, much of it is taken up by a CIFS document which you could download for free on the internet. So I do think that the description part of the book could be more extensive (Sorry Chris). Maybe in the next revision.

    You might ask why I was implementing CIFS from scratch? Its a valid question, since Samba would/should be anyone's implementation of choice. I did it because we are developing a printer which is not GPL (and unfortunately not based on Linux). We are not using any GPL code in it, and so this was really the only choice besides buying it from someone (but where's the fun in that). I am planning on releasing this code under a BSD license, but it's not ready for prime time yet and I need to get back to it (in a couple of months).

    So this was a really good book for CIFS implementors, but how many of those could there be?

    1. Re:This is a great book for implementors by 110010001000 · · Score: 2, Informative

      Not a troll, but curiosity: why did you buy a copy of the book when it is freely available on the net? I personally did because I prefer to read from a book rather than a computer screen.

    2. Re:This is a great book for implementors by dslamguy · · Score: 1

      Simple. Its the same reason I buy CDs when I like the music (not that I use filesharing anyway). Its the right thing to do.

  25. How come you have time to shill for your books... by Anonymous Coward · · Score: 2, Funny

    ... but don't have time to answer the Slashdot interview questions from last July?

  26. Re:Windows XP network problems: Underlying sloppin by Anonymous Coward · · Score: 4, Informative

    One thing that should be added to that document is that all the Win9x machines should have the ability to be a Master Browser disabled (so long as there's at least 1 NT machine on the net).

    Otherwise, eventually one of the 9x machines with think it's won the browse election even when that should be impossible. This screws the network neighborhood. Very longstanding bug going back to WfW. You can check the state of your network using the "browstat" tool that comes with the resource kit.

    (Also, yer correct that NetBIOS or IPX will be faster than NBT for whatever reason. Make sure to adjust the "binding order" so that these protocols come ahead of TCP/IP. Can't recall exactly how to do this, sorry.)

    This might not be realistic for a home net, but install WINS/DHCP if possible and put the clients into p-mode. (no NetBIOS broadcasts)

  27. huh? by unbiasedbystander · · Score: 0

    NOT-a-disease???

    Definetly not a cure either.

  28. Re:How come you have time to shill for your books. by Bruce+Perens · · Score: 4, Funny
    Oops. I thought I sent those off to roblimo. Are you sure?

    Bruce

  29. using cifs by exekewtable · · Score: 1

    people might be interested in my poorly written howto on getting cifs and debian to talk: http://lists.slug.org.au/archives/slug/2003/11/msg 00386.html

  30. Sure it has never been posted by Anonymous Coward · · Score: 0

    This doesn't show whether or not you ever sent them to roblimo, but they never got posted. On the right column, there is Ask Bruce Perens, but no answers.

    1. Re:Sure it has never been posted by Bruce+Perens · · Score: 2, Funny
      Oops. I'll ask roblimo.

      Thanks

      Bruce

  31. WS-Discovery by GunFodder · · Score: 1

    This is an excellent question. How about Web Services Dynamic Discovery? Sure, it's vaporware at this point and it was proposed by the Beast. OTOH it has a good chance to be an open standard and it isn't limited to file and print sharing.

  32. Actually windows does do NFS by Anonymous Coward · · Score: 0

    You just need a simple download lots of people already use nfs in a windows setup

  33. "Network Neighborhood" - what's that? by hey · · Score: 1

    Didn't Microsoft rename "Network Neighborhood" to "Computers Near Me" in XP. That kills me?
    Was "Network Neighborhood" too technical. Of course the computers might not be physically near you.

    1. Re:"Network Neighborhood" - what's that? by Malc · · Score: 1

      It saves them having to localise it for the rest of the English-speaking world.

    2. Re:"Network Neighborhood" - what's that? by SvendTofte · · Score: 1

      Mine is aptly named "The Idiots Around Me".

    3. Re:"Network Neighborhood" - what's that? by Anonymous Coward · · Score: 0
      From the book:

      Another thing that has changed since Windows2000 arrived is the name of the Network Neighborhood. These days, it is called "My Network Places". A discussion of the implications of the shift in metaphor from one relating the network environment to a cohesive and open community to one of self-centered virtual oligarchy is also way the heck beyond the scope of this book.

      (Page 339)
    4. Re:"Network Neighborhood" - what's that? by tverbeek · · Score: 1
      It became "My Network Places" with Windows Me.

      The "my" part was apparently intended to match the hard-to-refer-to-over-the-phone label "My Computer" ("OK, now double-click on your 'My Computer'...") The "network places" part can only be explained by an attempt to stick to phonetically-spelled words, no matter how odd a phrase that required.

      --
      http://alternatives.rzero.com/
  34. Why CIFS/Samba at all? by Brandybuck · · Score: 1

    I can understand wanting to use Samba in networks with a bunch of Windows shares. And I realize that the MCSE certification process involved a form of lobotomization. But beyond it's Microsoft-ness, what advantage does CIFS have over NFS and other network filesystems?

    I've heard of Linux-only networks that used Samba, and for the life of my I can't figure out why.

    --
    Don't blame me, I didn't vote for either of them!
    1. Re:Why CIFS/Samba at all? by MarcQuadra · · Score: 3, Informative

      Alright, I can give a good reason. NFS does NOT authenticate, it blindly trusts UIDs.

      So when I log into my friend's machine with his password, I'd be able to access my files on my machine as long as our UID is the same. Big trouble.

      CIFS, on the other hand, has authentication, so I can put my SAMBA server on the wide-open internet and be somewhat sure that someone would need my password to get my files. Try that with NFS and you'd be owned (or fileless) in minutes.

      Granted, there ARE ways to lock NFS down, and there are good arguments that maybe the modern file server SHOULDN'T authenticate, it should rely on another layer to handle that, but until it's easy as pie to get a Kerberos/PAM/NFS system working (no small task today), I'll stick to CIFS.

      --
      "Sometimes, I think Trent just needs a cup of hot chocolate and a blankie." -Tori Amos on Nine Inch Nails
    2. Re:Why CIFS/Samba at all? by Brandybuck · · Score: 1

      Okay, let me put this another way. I have a home network server with 160Gigs of unused harddrive space. So I decide to do automated backups of the clients to it. If everything on the network is either Linux or FreeBSD, why should I use Samba instead of NFS v4, when everything is local behind a firewall?

      --
      Don't blame me, I didn't vote for either of them!
    3. Re:Why CIFS/Samba at all? by Anonymous Coward · · Score: 0

      Historically, Linux's NFS code sucked so bad that it was conventional wisdom to use Samba instead, even on homogenous networks. YMMV.

    4. Re:Why CIFS/Samba at all? by Brandybuck · · Score: 1

      Historically, Linux's NFS code sucked so bad that it was conventional wisdom to use Samba instead

      Historically, Samba didn't even exist...

      --
      Don't blame me, I didn't vote for either of them!
    5. Re:Why CIFS/Samba at all? by Anonymous Coward · · Score: 0

      In that situation, there's no reason not to use NFS.

    6. Re:Why CIFS/Samba at all? by Anonymous Coward · · Score: 0

      > Historically, Samba didn't even exist...

      And neither did LInux. Samba and Linux are about the same age.

    7. Re:Why CIFS/Samba at all? by MarcQuadra · · Score: 1

      In that case you SHOULD use NFS, because it's easier to set up, fast, native, and 'clean'. I use NFS internally for my Linux and OSX boxes, but I run Samba as well on the port that connects to the 'outside'.

      --
      "Sometimes, I think Trent just needs a cup of hot chocolate and a blankie." -Tori Amos on Nine Inch Nails
  35. SAMBA name change? by Anonymous Coward · · Score: 0

    Anyone who has used Microsoft products in the last ten years has used the SMB protocol (now known as CIFS)

    Will SAMBA have to change its name to CIFILUS?

  36. What about patching? by emil · · Score: 3, Insightful

    There will be bugs in the M$ nfs server code. Will Windows Update patch them?

    The patch against SQL Slammer had been out for six months before Slammer took down South Korea and invaded a nuclear power plant. I don't want to install anything that requires special patching procedures.

    1. Re:What about patching? by TheRealSlimShady · · Score: 1
      So you want to use a web browser interface to patch your critical database server? Are you insane?

      When I patch my SQL server, I want to do it at a time I want, with a process that I can have a reasonable amount of control over. For me, this means downloading the patch executable and installing it manually, along with thorough testing afterwards.

      FWIW, SUS version 2.0 is going to be supporting things other than the operating system stuff.

    2. Re:What about patching? by emil · · Score: 1

      Of course, auto apply/reboot is not acceptable - but Windows Update ought to handle patches for all M$ products. It ought to automatically download patches for any installed products, and prompt to apply. RedHat up2date certainly could handle this.

      M$ was roundly criticised for "hiding" the Slammer patch so well. Why install software that a) will not be patched and b) is sure to be abused?

    3. Re:What about patching? by TheRealSlimShady · · Score: 1
      M$ was roundly criticised for "hiding" the Slammer patch so well


      What do you mean "hiding". There was a security bulletin released, marked as critical - what more do people want?

    4. Re:What about patching? by emil · · Score: 1

      I'm an Oracle man myself, so I don't know beans about SQL Server. However, I would think that these people would.

      According to the reports, plant computer engineers hadn't installed the patch for the MS-SQL vulnerability that Slammer exploited. In fact, they didn't know there was a patch, which Microsoft released six months before Slammer struck.
    5. Re:What about patching? by TheRealSlimShady · · Score: 1

      I would think they wouldn't. If they didn't know there was a patch, they either don't know about MS-SQL, or they're lazy. I'm picking it's the latter. With all the stuff about security these days, there's really no excuse not to know when patches are released - http://www.microsoft.com/security anyone?

    6. Re:What about patching? by Anonymous Coward · · Score: 0

      I don't want to install anything that requires special patching procedures.

      You mean like software?

  37. MOD PARENT DOWN by Anonymous Coward · · Score: 0

    Futurepower(R) is a KNOWN anti-MS TROLL. He is an idiot that knows little about Windows and trolls about how is sucks.

    1. Re:MOD PARENT DOWN by Anonymous Coward · · Score: 0

      Those who think that there are no problems don't have much experience with Windows.

      Bill, If you really want to be a philanthropist, and do some good in the world, fix the problems in Windows.

    2. Re:MOD PARENT DOWN by Anonymous Coward · · Score: 0

      Hey Futurepower(R), make sure you have RTFMed

  38. Keanu says: "Whoa!" by Anonymous Coward · · Score: 0

    dude you have a 3 digit UID. shouldn't you be dead or something?

  39. Samba is a snappy name but by LenE · · Score: 3, Funny

    I was hoping that 3.0 would have been renamed as CIFiliS.

    I mean, it would give the right impression about the Windows native file sharing protocol, and would be great for PHB's.

    PHB: "Did you get that Samba thingy working on the server?"

    IT Guy: "No, the server has CIFiliS"

    PHB: "Oh. I'm sorry. You should run one of those virus checker things."

    -- Len

  40. Re:Windows XP network problems: Underlying sloppin by TheRealSlimShady · · Score: 1
    And one of your recommendations is to install NetBEUI. Great suggestion - for yesterdays technology. If you've got issues that are affecting your network stack, NetBEUI is inlikely to be the solution. In fact, it's unlikely to be the solution for many problems.

    underlying sloppiness in Windows OS code

    How would you know? Have you seen the code?

  41. What to Replace CIFS With? by The+Raven · · Score: 0, Troll

    Let's pretend we have a Windows/Linux/BSD network. It needs to stay heterogenous, but backwards compatibility is not required... apps that 'only' run on >=Win2K or >=Linux2.6 are fine... heck, let's run the ragged edge and allow Beta software that requires >=2.7 or >=Longhorn.

    Is there any well performing and stable replacements for CIFS that allows Windows, Linux, and BSD boxes to all share files to each other? Sharing that only works one way is allowed too (such as when there is a Linux client/server, but only a Windows client).

    Everyone hates Samba... what's the alternative? I don't care if it's a compile-it-yourself distro on sourceforge, I wanna start USING the alternative so CIFS and Samba can die the ungraceful death their ancient cludge deserves. Currently, and I'm not joking, I'm using ftp2fs systems for shares with small files. They don't work for random access, so my larger files are literally duplicated on multiple machines. I irrationally refuse to run shares. I'm just tired of dealing with it.

    So give me an alternative.

    --
    "I will trust Google to 'do no evil' until the founders no longer run it." Hello Alphabet.
    1. Re:What to Replace CIFS With? by Anonymous Coward · · Score: 0
      I irrationally refuse to run shares. I'm just tired of dealing with it.

      So give me an alternative.

      The easiest thing to do is to change the requirements so that you can throw out Windows. Then use NFS.

      Windows is obsolete, and not worth the trouble. I mean, if "backwards compatibility is not required" then why have Windows around at all?

    2. Re:What to Replace CIFS With? by Anonymous Coward · · Score: 1, Interesting

      Maybe WebDAV. It's part of IE5+, and it's an open standard. In IE go File|Open|As Web Folder to open one and then it's available like a windows share. The main problem is that you can't map drives to it without 3rd party addons (WebDrive, etc.), but it's very fast.

    3. Re:What to Replace CIFS With? by Anonymous Coward · · Score: 0

      In my experience, opening files and apps over MS WebDAV doesn't work that well, which is sort of a deal breaker for most installations. You can also forget anything that requires record locking (Access, Notes, XBase, etc)).

      WinXP does allow you map WebDAV shares, BTW.

  42. I agree it is unfortunate... by Futurepower(R) · · Score: 1


    I certainly agree that it is unfortunate that installing NetBEUI or IPX sometimes solves Windows network problems. However, it is a solution that sometimes works, for whatever reason, and it is a solution that is sometimes suggested by Microsoft staff. There are some failures that are not easy to troubleshoot, so we just have to go with a kluge solution.

    In my experience, quirky behavior is generally caused by sloppy code; I'm only guessing when I say that is true in this case. I have not seen any Microsoft source code.

    1. Re:I agree it is unfortunate... by operagost · · Score: 1
      Installing IPX or NETBEUI is not a solution for network problems any more than chopping off your arm and replacing it with a prosthetic is a cure for your tennis elbow. Your TCPBEUI is not working, which means you have a name resolution problem. On Windows NT 4.0 domains, it's WINS, and on 2000/2003 it's DNS. If it's in a workgroup, well, that will never be rock solid but it helps if Windows 9x/WfW PCs are not allowed to participate in browser elections.

      I highly doubt that MS support techs are recommending you simply sidestep CIFS problems by using obsolete protocols. If they are, then I guess we know where all the techs who are too stupid to work for AOL or Dell (or don't want to move to India) work now.

      --

      Gamingmuseum.com: Give your 3D accelerator a rest.
  43. No, please don't do that! by juan+large+moose · · Score: 2, Informative
    One of the most common causes of network browsing problems is binding NetBIOS to multiple protocols. I have solved many, many such problems by going through all of the Windows workstations and servers and making sure that they are all configured to use the same single transport.

    If you use NetBEUI, then use *only* NetBEUI.
    If you use NWLINK, then use *only* NWLINK.
    etc.

    See the heading "Prolific Protocol Bindings" in Section 3.7.1 of the online version of the book.

  44. LIMEY FAGGOT ALERT by Anonymous Coward · · Score: 0

    Asshat.

  45. Re:Windows XP network problems: Underlying sloppin by k_head · · Score: 1

    Wow. I guess they are right when they say you don't need an expensive sysadmin to run windows networks!

    --
    The best way to support the US war effort is to continue buying American products.
  46. Think about this one facet... by SuperKendall · · Score: 1

    As you go from company to company, if you are not using OS (and many companies are not to any great extent) you are writing the same stuff over and over. Sometimes you are even doing that at the same company, where many groups are writing identical code!!

    Now the business has to pay for all this extra coding, coding that anyone can do - then they discover outsourcing.

    Had you been building things the business needed on top of robust OS packages, there would be no need to outsource you as productivity would be high. But with a department of people toiling away producing only a few things tangibly valuable to those outside the department - they are at risk.

    Using OS as a base lets you write at a higher level, without the approvial you normally have to go through to get budgets approved. It can make your job more secure, if in the end you are more productive and spend less time writing the same thing a million other people have written.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
    1. Re:Think about this one facet... by 110010001000 · · Score: 1

      That is illogical. Assuming the outsourced engineer is as competent and as productive as the inhouse engineer, outsourcing will always provide savings and you will be outsourced.

      Of course you have pointed out the biggest failing (from my perspective) of OSS economics: less code needs to be written since there is code out there available for zero cost. This means less engineers (inhouse or outsourced) are needed. Thats great for the corporations, but bad for you and I.

    2. Re:Think about this one facet... by deque_alpha · · Score: 1

      Here's a little devil's advocacy....

      Big Company X that used to have 50 engineers suddenly only needs 40 because of OSS, so they let 10 go. But Little Company Y wants to do a project they think will require 20 engineers, but can't afford to hire 20. Some OSS tool is discovered that will help with the project, making it feasible to do with only 15 engineers. So company Y, rather than bagging the project and hiring 0 engineers, hires 15. Net change for the "industry" is +5, and now Small Company Y is able to make a new offering and hopefully compete with Big Company X. The net result in Company X does not neccesarily reflect the net result industry wide. By lowering the cost of entry, you let more players into the game, and industry-wide there is growth, even if (or especially when?) there is some amount of contraction within "the big boys". Obviously this is not a complete analysis, but it is a logical way to look at the situation that seems to come to the oppositce conclusion yours does.

      I'm hardly an expert, but based on what I remember from my business classes, this seems to be based on the fundamental difference between the way that you and I view the situation at an economic level:abundance economics versus scarcity econmics. In other industries, abundance economics is generally the suggested way to view things, and is recognized (according to my business professors) the way things usually end up working out in the end and to are generally to everyone's benefit in the long run, all other things being relatively equal.

    3. Re:Think about this one facet... by jshare · · Score: 1
      Of course you have pointed out the biggest failing (from my perspective) of OSS economics: less code needs to be written since there is code out there available for zero cost. This means less engineers (inhouse or outsourced) are needed. Thats great for the corporations, but bad for you and I.
      I think you are totally missing the point. Even with some free software available, it will still be in companies' best interests to get the code they want, written right now, by paying someone to write it.

      The OP said that it lets you work at a higher level. That is, you use the code that is free, and then write more code on top of it.

      There's not less code that needs to be written, there is simply different code that needs to be written.

  47. Which is why... by Anonymous Coward · · Score: 0

    Historically, Samba didn't even exist...

    And that says just exactly how bad Linux NFS really is, that someone opted to write SAMBA rather than use it.

    1. Re:Which is why... by Brandybuck · · Score: 1

      And that says just exactly how bad Linux NFS really is, that someone opted to write SAMBA rather than use it.

      According to the Samba guys, they wrote it to interoperate with Window networks.

      --
      Don't blame me, I didn't vote for either of them!
  48. Re:Windows XP network problems: Underlying sloppin by Anonymous Coward · · Score: 0

    I wouldn't pay a lot to have a guy add 1 line to the group policy file, no. (Note: I did NT sysadmin back when it really was expensive :)

  49. Code needed is infinite, frameworks are not by SuperKendall · · Score: 1

    Of course you have pointed out the biggest failing (from my perspective) of OSS economics: less code needs to be written since there is code out there available for zero cost. This means less engineers (inhouse or outsourced) are needed. Thats great for the corporations, but bad for you and I

    What you are failing to realize is that corporations have an almost infinite thirst for code to be produced. The constraint? There are only so many developers to go around, and people to help explain what the developers should be developing. At work I have well over one hundred projects I could be working on, but they can't because there's only so many developers.

    The best case for a project would be a business owner, a guy to translate the business owners ideas into what we call Practical Thoughts, and three developers. If the developers can be efficient enough, I am convinced you could develop ANYTHING - that includes full CRM suites, reseller branded portal, Siebel style salesforce automation, anything you can imagine.

    But instead because each company does not want to use OS, they need developers to research platforms to buy (because they need to consider how the spend money), or they decide to build themselves because it is cheaper/faster. So now you have all this overhead of people working on this, removed a bit from the concerns of the business. Enough removal, enough work that does not relate to the business at hand, and as I said outsourcing takes on the appearance of being just as efficient - because outsourcing is no more terribly wasteful than what the company is doing already. If you've worked at a company of any size, have you not always though "with all the meetings and projects that go nowhere and lazy people that are never fired, how does this company make money"? Well that same waste can launch a thousand engineers, which looks on paper if nothing else far more impressive in terms of man hours available.

    Someday, some companies will wake to the hyper-efficient use of technical workers and gain a massive edge over the companies that have shifted one form of waste for another.

    I know I veered off course there, but to get back to my main point - if companies would use these small teams, they would still want a lot of developers because they have many ideas they want to implement. They would just be able to fuel many more ideas with the same dollars they use today. Such a world would be way better for you and I, because we'd be working on things that really mattered to the business, whole projects with much greater scope than most people get to be involved in now. Instead I'm at work writing another OR-Mapper or whatever I need in order to actually put together the final code that does what the business wants.

    You can see OS stuff creeping in everywhere in companies, exactly because it is so easy to put in - stuff like Hybernate, or JBoss, that people just drop in because they do not want to write this same stuff again and again. When the managers finally "get it" as it were and mandate the use of a lot of this stuff that the really good people know to track down, then everyone can get a lot more productive a lot quicker as the mediocre programmers get to start from a better base as well.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
    1. Re:Code needed is infinite, frameworks are not by 110010001000 · · Score: 1

      I have read all the comments on this, and although I disagree with them I think we should wait until Bruce publishes his paper on the topic. Hopefully slashdot will post a story on it and we can discuss it then.

  50. Contribute by Anonymous Coward · · Score: 0
    > people might be interested in my poorly written howto on getting cifs and debian to talk: http://lists.slug.org.au/archives/slug/2003/11/msg 00386.html

    I had a brief look at it and wonder why not submit this to The Linux Documentation Project?

    New entries are always welcome.

  51. Or... by SuperKendall · · Score: 1

    Perhaps I'll write up a paper, publish it somewhere, and try to get slashdot to publish that. I'm not sure exatly what Bruce is writing about but I feel it is at a tanget to my ideas on the matter.

    An interesting discussion anyway, hopefully we'll see some story on it soon to continue discussion.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  52. Troll? by The+Raven · · Score: 1

    Well that's depressing. I was serious.

    --
    "I will trust Google to 'do no evil' until the founders no longer run it." Hello Alphabet.