Slashdot Mirror


Samba 3 By Example

ALecs writes "When I first discovered Samba, I was in heaven! I could serve my Linux filesystems to my Windows 95 desktop and life was good. Between then and now, though, Samba has gotten a lot more capabilities, and I've been struggling to keep up with the cryptic voodoo that is Windows networking. While 'The Official Samba-3 HOWTO and Resource Guide' has been a great resource, Samba seems to just be once of those packages that you just need to see in action to understand. Hearing my cries, and those of countless others, John H. Terpstra has bestowed upon the Samba community the tome of ancient knowledge sought by all: Samba 3 By Example: Practical Exercises to Successful Deployment ." Read on for the rest of Malone's review. Samba 3 By Example: Practical Exercises to Successful Deployment author John H. Terpstra pages 340 publisher Prentice Hall PTR rating 10 reviewer Joshua Malone ISBN 0131472216 summary Working examples to use Samba 3 in small or large office

Samba 3 By Example begins on a very friendly note by explaining how to get the most out of it any what you'll need to complete the exercises in the rest of the book. The beginning also includes a Windows networking primer, complete with packet captures (using the popular tool 'ethereal') showing how network browsing really works, under the hood.

This book follows the evolution of a fictitious company, "Abmas", through an impossible growth from a 9-person office to a 2000-person network with multiple sites around the world. You assume the role of the IT guy: charged with growing the company's network infrastructure, planning for change and, above all, keeping the users happy.

Some of the major challenges tackled in this book are:

  • Using Samba-3 as an NT-4 style PDC
  • Using Samba-3 as an domain member server
  • Using the various authentication backends as alternatives to the traditional 'smbpasswd' backend
  • Using LDAP to implement a Samba-3 PDC with backup domain controllers
  • Authentication using winbindd
  • Migrating from NT-4 to Samba-3 for a PDC
  • Using kerberos to integrate Samba-3 into a Microsoft Active Directory domain (as a domain member server)

I am extremely impressed by Terpstra's book. It addresses the complete spectrum of Samba deployments, from the 10-person office to the 2000-seat, multi-site enterprise while explaining not just what to do, but how to do it and, most importantly, why. The examples are practical and you can really imagine some poor sap^H^H^H^H^H^H^H^H unfortunate systems administrator finding him/herself in these very positions. This book says that these scenarios are hypothetical aggregations of real-world situations, but could swear I've worked for this company before.

One of the nicest things about this book is that each situation is followed by a Q&A section - almost like a textbook - that addresses both the important points of the exercise, as well as some of the trivial details that were left out for the sake of brevity. Don't be tempted to skip them thinking that it's just a rehash.

It's worth noting that this book is not a replacement for TOSHARG and defers to it for technical details in multiple cases. These two books should be sidearms for any IT administrator that has to deal with Windows clients on a daily basis.

I'm also very impressed with Terpstra's candor about Samba's features, weaknesses and road map. Nowhere in this book is Windows put down as inferior or is Samba touted as the "be-all, end-all" of Desktop and client management solutions. The relative flexibility of Active Directory and Samba is discussed only briefly and the choice to use Samba over Windows is ultimately left to the reader. Since you've gone to the trouble of purchasing this book, Terpstra assumes you've already made up your mind and require no further convincing.

Continuing to be mindful of office politics, Terpstra devotes a section in each chapter to the political implications of replacing Windows with an open source product, and an entire chapter to the issues inherent in bringing Samba into a traditionally Windows-based shop. Even though he refers to this chapter as a "shameless self-promotion of Samba-3", I found it to be an even-handed discussion of the issues you will most likely encounter from anti-Unix advocates and IT managers who have bought into the anti-Linux FUD. These are real issues that Systems Administrators need to know how to deal with effectively but too many of us simply dismiss because we feel they are uninformed.

In addition to examples of Samba configuration, examples are provided to integrate Samba with other useful servers such as the squid web proxy, OpenLDAP, bind and dhcpd. The configuration files for Samba as well as these additional pieces of software are also conveniently located on the included CD-ROM, along with Samba 3.0.2 packages for Red Hat Fedora Core 1 and SuSE Linux (Enterprise server 8 for x86 and s390 and SuSE Linux 9).

I think my biggest complaint with this book is that the "case study"-like format of this book tends to lump a large number of new features into a single example. This can make it hard to isolate the particular feature that you're interested in.

For instance, the example that illustrates automatic printer driver downloads to Windows clients is lumped into a chapter that is primarily concerned with using LDAP to implement a BDC. Automatic driver installation is a great feature that many sites far too small to consider implementing LDAP would likely be interested in.

In all, though, I'm extremely pleased with Samba 3 by Example - perhaps even more than TOSHARG. In it, you'll find plenty of tips, working examples and honest admissions of bugs (and their workarounds) that will keep you from losing your sanity. You could almost call this book a 300 page Samba and Windows networking consultant with over 8 years of experience. Terpstra has been incredibly kind to the Samba community by imparting so much wisdom to us all in this book.

Josh Malone has been a FreeBSD and Windows system administrator for three and a half years working in development shops and hosting companies, and currently works as a Linux engineer for an embedded systems company. You can purchase Samba 3 By Example from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page

195 comments

  1. Samba by example? by Deraj+DeZine · · Score: 4, Funny

    Cool, I've always wanted to learn how to samba.

    --
    True story.
    1. Re:Samba by example? by 74nova · · Score: 3, Funny

      holy crap, after seeing those picture, me too!

      --
      use your turn signal! you people act like it's divulging information to the enemy
    2. Re:Samba by example? by OzPeter · · Score: 3

      As someone who has been invoved in latin dance in various forms (salsa, meringue, cha-cha, argentine tango, samba, rhumba, bolero etc) over the last few years I can attest to the fact that learning to dance is fun thing to do and that you can meet lots of cute and friendly people of the opposite sex. Which is how I met my current gf.

      Whats even better is that in order to dance these dances well, you NEED to hold your partner in a close embrace. And you can't complain about that.

      Another plus is that social latin dancing is done in places like public bars, but the atmosphere of the dance set is not 'meat market'. Thus it gives you a solid framework to get out in public that is not confrontationist. In my job where I do a bit of world travel, I always try and find the local dance places for some non work social life, and as a result have had some really fun times away from home.

      On a final note, Samba is a Brazilian dance, and I can attest that all the Brazilians I have met have been fun loving people, and that the country is a great one to go and visit :-)

      --
      I am Slashdot. Are you Slashdot as well?
    3. Re:Samba by example? by StarfishOne · · Score: 0

      Samba unleashed.. Samba in a nutshell.. hmm.. combined with a few of those pictures I do see a new market here :D

  2. samba rocks by jacquesm · · Score: 4, Insightful

    Samba is probably one of the largest driving forces enabling people to migrate away from windows servers. It's a cornerstone of lots of offices that I have visited.

  3. Kerberos Authentication by jmulvey · · Score: 4, Interesting

    So does Samba-3 support the "trade secret" PAC information that Microsoft inserted into their Kerberos tickets (to great consternation of the Kerberos community)?

    1. Re:Kerberos Authentication by ALecs · · Score: 4, Informative

      The most recent Samba-3 code now supports 'schannel' and "digital sign'n'seal" for joining an active directory domain. It cannot act as an ADS domain controller - only a member server

    2. Re:Kerberos Authentication by lkaos · · Score: 3, Informative

      Samba can decode the PAC. I don't believe it actually using the information yet.

      This is because before using the information, you have to verify the signatures (to ensure the data hasn't been forged). Making use of the information in the PAC is on the TODO list though as it will result in a nice performance increase in some areas.

      And the PAC certainly doesn't violate any of the kerberos standards. Placing implementation specific information in the authorization data is what it's there for.

      --
      int func(int a);
      func((b += 3, b));
    3. Re:Kerberos Authentication by ALecs · · Score: 4, Informative

      I should also clarify that samba-3 can join as a Win2K member server and not just a legacy NT-4 server. The difference is in how you join the samba server to the domain.

      Use 'net ads join' to join as a Win2K member. If you use the older 'net rpc join' command, you're just doing NT-4 domain membership. Chapter 9 in the book covers Active Directory interoperation. The interoperability code is in Samba, not Kerberos.

    4. Re:Kerberos Authentication by Anonymous Coward · · Score: 1, Insightful
      And the PAC certainly doesn't violate any of the kerberos standards. Placing implementation specific information in the authorization data is what it's there for.

      Very true, but I think the issue many people have is with Microsoft using this field and then not telling anyone how to interpret it (well, at first anyway).

    5. Re:Kerberos Authentication by Etyenne · · Score: 2, Informative

      According to Jeremy Allison, documentation for the PAC have been released by Microsoft, except the license to said documentation was too restrictive to be used by the Samba team.

      See http://linuxtoday.com/news_story.php3?ltsn=2000-05 -01-005-04-NW

      --
      :wq
    6. Re:Kerberos Authentication by lkaos · · Score: 1

      Well, the first time, yes, the did license the documentation too restrictively. But they then rereleased it with no restrictions.

      Not that it really mattered. It's pretty easy to decode on its own.

      --
      int func(int a);
      func((b += 3, b));
  4. Re:Question: by jmays · · Score: 4, Informative

    It's a free, robust, easy to admin file server and DC with impeccable reliability.

    --
    KARMA TAG! You're it.
  5. excellent! i have been looking for this by iwein · · Score: 4, Interesting

    after my first experience with samba (opposed to windows 2k server) i was highly enthousiastic but being one of the lesser linux geeks around i had some difficulty setting it up.

    overall my impression is that in total i suppose you would need less time to set up and maintain a nice samba server than a w2k server, even if it is your first time installing linux.

    with the help of this book it will become even simpler....

    yay.

    --
    Show a man some news, distract him for an hour. Show a man some mod points, distract him for the rest of his life.
    1. Re:excellent! i have been looking for this by Smallpond · · Score: 5, Funny

      I don't know what you're talking about. smb.conf is almost as easy as sendmail.cf. It has helpful comments like:

      ; 7: Look at the "hosts allow" option, unless you want everyone on the internet
      ; to be able to access your files.

      Well, I looked at it and they could still access my files.

    2. Re:excellent! i have been looking for this by gfhilton · · Score: 0, Troll
      overall my impression is that in total i suppose you would need less time to set up and maintain a nice samba server than a w2k server, even if it is your first time installing linux.


      Haha. Right. The setting up part will make you pull out your hair in consernation. One of the downfalls of Samba and Linux in general is that, while it is customizeable and extendable in the extreme, this customization and extension is not down in a very elegant or universal way and so it is very difficult to set up and make work correctly. Hence the plethora of Linux books that spend chapters discussing the most simple tasks, such as making a sound card work (see previous slashdoted article on Linux and soundcards).
      --
      "Do what you wish in your madness, but first let me down off this horse. I wish to see no eyes!"
    3. Re:excellent! i have been looking for this by mangu · · Score: 2, Informative
      it is very difficult to set up and make work correctly


      I recently upgraded two of my MS-Windows machines at home, put a GeForce fx5200 video card in my desktop and got a new HP/Compaq notebook with XP pre-installed. The main reason I still keep M$ machines is for games, and Need For Speed - Porsche Unleashed happens to be one of my favorites. It took me several weeks to get it working in the notebook, and it still doesn't work on the desktop.


      Compared to this, configuring Linux machines is easy. Usually you just need to look in the log files for error messages and paste the message text in a Google search to get the info you need to get it working.

    4. Re:excellent! i have been looking for this by agrippa_cash · · Score: 4, Informative

      I have been trying for MONTHS (on and off) to get SAMBA 3 working with LDAP. I got 2.2 working OK, so I'm not a complete idot. Still this book may be a good investment. For those who are interested the University of Navarra has a 3.0 HOWto and there is a 2.2 Howto (that I used sucessfully) at homex.subnet.at/~max/ldap.

    5. Re:excellent! i have been looking for this by Lussarn · · Score: 3, Insightful

      It's like they say. Windows is easy until something breaks. Then you are screwed.

    6. Re:excellent! i have been looking for this by psycho · · Score: 1

      I don't see what's wrong here:

      1) A: You look at the "hosts allow" option.
      2) B: You want everyone on the internet to be able to access your files.

      What the comment says is: A unless B. In other words, If B then not A. (If you want everyone on the internet to be able to access your files, then don't look at the "hosts allow" option.

      It would be wrong only if they said: B unless A.

    7. Re:excellent! i have been looking for this by Dolda2000 · · Score: 2, Informative
      Seriously, Samba isn't easy to set up. I don't consider myself a lesser geek anymore, since I can set up virtually anything else I've tried without trouble (yes, that includes sendmail.cf), but I've more or less given up on Samba.

      Of course, the Samba developers shouldn't be blamed for that. I suppose that learning the black arts of Windows networking is about as logical as Windows itself, after all.

    8. Re:excellent! i have been looking for this by Yobgod+Ababua · · Score: 1

      I think the OP was making a snide comment on the fact that the docs just say to 'look at' the hosts allow option, but don't specifically say to change it one way or another.

      He physically "looked at" the option, as instructed, and it unsurprisingly had no effect on server operations.

      Personally, I love using samba as a PDC. With the addition of some decent web pages for LDAP user and group maintainance, it becomes a very slick, well-unified system. I haven't plunged into the world of printer sharing yet, but it's on the list...

    9. Re:excellent! i have been looking for this by bfg9000 · · Score: 5, Funny
      How about the full version of that saying:
      Windows is easy until something breaks, then you're screwed.

      Macs work perfect, or they don't work at all -- if your hardware has no drivers, then you're screwed.

      Linux -- well, you're just screwed. But you'll only be half as screwed next year, and half that screwed the year after that. Give it 10 years and a bunch of geeks tired of being screwed all the time will rule the world.
      --

      I'm not normally an irrational zealous dickhead, but I figure "When in Rome..."

    10. Re:excellent! i have been looking for this by puddpunk · · Score: 2, Insightful

      The main reason I still keep M$ machines is for games, and Need For Speed - Porsche Unleashed happens to be one of my favorites.

      Get a Playstation! Thats what I did and since have been able to kiss windows goodbye and still play games that I like.

    11. Re:excellent! i have been looking for this by Anonymous Coward · · Score: 0

      It's like they say. Windows is easy until something breaks. Then you are screwed.

      Hey, its alot better than having everything broken from the start like in Linux (unless you are a l33t k3rn3l h4x0r). What, your NIC doesn't work? Just recompile the kernel! Your resolution isnt set right? Just change the config file! You don't know where the config file is? RTFM noob! Its xf86config!

      If you didn't have to pull up a terminal to change config files for every issue (like it seems to be in alot of Linux distros) people would be less intimidated and more inclined to test the waters.

    12. Re:excellent! i have been looking for this by ManxStef · · Score: 1
      ...a bunch of geeks tired of being screwed all the time...
      Shouldn't that read, "a bunch of geeks tired of not being screwed at all"? ;)
  6. Voodoo by Anonymous Coward · · Score: 0

    "and I've been struggling to keep up with the cryptic voodoo that is Windows networking"

    It isn't like Samba is any less voodoo-ishly cryptic, you know.

  7. Re:Question: by Anonymous Coward · · Score: 0

    What is better about Samba then Windows Networking?

    It is just a matter of preference.

    I, for one, prefer to do Latin dance before Windows newtorking. But some like to do it after.

  8. Re:Question: by edk1 · · Score: 3, Informative

    From what I recall, the file sharing benchmarks have proven to be faster, and best of all, no license fees for Windows Server. Also, the server itself will be immune to Windows viruses.

  9. Re:Question: by Anonymous Coward · · Score: 0, Interesting

    Samba is a really useful product.

    FACT 1. Windows is the better desktop.
    FACT 2. Linux is the better server.

    Samba makes the two work together.

  10. cool by Vlion · · Score: 1

    I'll have to read it sometime- I could really use samba.

    --
    /b
    |f(x)dx = F(b) - F(a)
    /a
    1. Re:cool by snowsalt · · Score: 0

      Thanks for posting this on the internet.

  11. almost 40% at bookpool.com by blkwolf · · Score: 4, Informative
    1. Re:almost 40% at bookpool.com by gadders · · Score: 2, Funny

      And with your referral code in the URL too!

    2. Re:almost 40% at bookpool.com by Anonymous Coward · · Score: 0

      out-of-stock

    3. Re:almost 40% at bookpool.com by blkwolf · · Score: 1

      What referal code?
      The url was generated by going directly to bookpool and then searching for the title, so if your trying to infere I have any benefit from anyone using the link, then your an idiot.

    4. Re:almost 40% at bookpool.com by Anonymous Coward · · Score: 0

      What referal code? The url was generated by going directly to bookpool and then searching for the title, so if your trying to infere I have any benefit from anyone using the link, then your an idiot.

      Does Bookpool sell spelling-and-grammar guides?

    5. Re:almost 40% at bookpool.com by blackmonday · · Score: 3, Insightful

      Yes I know you were being funny: That's not a refferal ID, but even if it was, who cares? it wouldn't cost you any more money to buy it, and he gets some cash for spreading the word around. I don't see the angst against them on Slashdot.

    6. Re:almost 40% at bookpool.com by Anonymous Coward · · Score: 0

      >your an idiot.

      your: possesive, as in "is this my book or yours?"

      you're: contraction of you are, as in "You're an idiot".

      might wanna get that right before calling someone else an idiot.

    7. Re:almost 40% at bookpool.com by Anonymous Coward · · Score: 0

      I think the majority of the angst comes from the fact that, with the referral incentive, people are more likely to spam the message boards. I know that I've personally seen book review threads (for months) where the first 20 posts were people trying to claim the referral fees.

      No referral fees = less chance of having to wade through tens of "get this book for $0.01 cheaper at Amazon" messages.

    8. Re:almost 40% at bookpool.com by MrPink2U · · Score: 1

      Ahh, the old, "if my first personal attack doesn't stick, attack the grammar" trick. Admit you were wrong for attacking the link to bookpool.com and move along.

  12. "By Example" books a great idea by proxima · · Score: 4, Interesting

    Obviously teaching things by example is not new, but far too many computer books on too many subjects (especially programming) don't use enough examples to illustrate their points. Some just use poor examples.

    Samba is one of those setups where the total amount of functionality is far more than many users need, so a collection of well-designed examples will greatly speed one's implementation (and reduce common security problems). Fortunately the default config file has improved in Samba to the point where it's not too difficult to setup basic printer/filesystem sharing.

    These "cookbook" style books obviously can't replace a reference, but they often are more useful as a starting point. I've spent over five years on unix systems now, but I still groan at the lack of examples in the man pages of more obscure command line software. Google often comes through, provided I can think of a good phrase that describes what I'm trying to do ("search and replace with perl command line" - perl -pi -e 's/searchterm/replaceterm/g' [filenames], btw).

    --
    "The universe seems neither benign nor hostile, merely indifferent." --Carl Sagan
    1. Re:"By Example" books a great idea by wonderman · · Score: 1

      If your at the command line, why not just type

      sed 's/searchterm/replaceterm/g' filename

      and get the work down without perl having to be there?

    2. Re:"By Example" books a great idea by mangu · · Score: 1
      the total amount of functionality is far more than many users need


      Well, isn't that the curse of the modern technology-plus-marketing society where we live? Any product today, be it software or hardware, comes with a lot more functionality than we really need.

    3. Re:"By Example" books a great idea by Anonymous Coward · · Score: 0

      because if you change it to:

      perl -pi.bak 's/searchterm/replaceterm/g' filename

      you also get a backup file called filename.bak incase your search term wasn't exactly right the first time.

      Also handy to note is that s/// in perl will
      take alternate delimiters so you won't have to backwhack /

      perl -pi.bak 's{searchterm/with/slashes}{replaceterm}g' filename

  13. LOL - mod up by Anonymous Coward · · Score: 0

    Not quite grammatical comment (in smb.cnf) lead to quite a good joke.

  14. Great! by Anonymous Coward · · Score: 1, Interesting

    This is great. I just started migrating from windowsXP to Fedora Core 1 and have been trying to setup a Samba server for a week. I'm using the O'Reilly manual, but there are significant gaps in the setup descriptions. I remember thinking "I wish there was a case by case explanation of setups for this damn program" Well, I guess I'll be buying this today!

  15. little known fact by mirko · · Score: 3, Insightful

    Samba 3 is used by Panther (OSX3) since the beginning.

    --
    Trolling using another account since 2005.
    1. Re:little known fact by amunter · · Score: 4, Informative

      Yes, and at the recent FOSE expo in DC the Apple guy that was standing under the sign in the Apple booth that said "LDAP and Kerberos" showed me how easy it was to use.

      It uses all the normal Apple GUI type controls which basically take care of all of the configuration changes to smb.conf and krb5.conf. Basically a slick "apple looking" configuration file editor. I thought SWAT made samba configuration pretty easy, but this Apple stuff is great. Really cool stuff.

    2. Re:little known fact by ArtisteTerroriste · · Score: 1

      >I thought SWAT made samba configuration pretty
      >easy, but this Apple stuff is great.

      You haven't use all the advanced features then. My experience with OSX Server has been that the GUI wipes custom mods to the smb config file, say like an alias list etc....

    3. Re:little known fact by amunter · · Score: 1

      You are probably right.

      I didn't make any custom (non-GUI-originated) mods to the smb configuration file at all. I just made the guy at FOSE open up a terminal and show me that the GUI was actually editing the .conf files and then came back to work and promptly joined some of our Panther machines to our Windows AD.

    4. Re:little known fact by mirko · · Score: 1

      who the fuck modded the above insightful ?
      it is informative...

      --
      Trolling using another account since 2005.
  16. adds stability to Win9x/ME workgroups by RogL · · Score: 5, Interesting

    I have limited Samba experience, but have found that my 5-box home network became much more stable after allowing Samba to become a browse master. We had occasional issues with printers dropping offline, files copyable one direction but not another, odd hangs where the only solution was a power-off reset, bringing boxes up in sequence.

    Once I installed Samba on my main OpenBSD server, things quieted down. Took a few weeks before I realized: no Windows "hiccups" had happened! It's stayed that way for months now. I may have gotten the same effect by setting up a Windows PDC, but I don't have a "dedicated" box new enough to be useful for that. At this point, even if I don't need the shares, I'll leave it running just to stabilize the wife's WinME box!

    1. Re:adds stability to Win9x/ME workgroups by lambent · · Score: 1

      We had the same experiences at the office. After I surreptitiously inserted a samba 3 master into the network, lag times dropped, copy permissions started behaving as expected, and things in general just chilled out.

    2. Re:adds stability to Win9x/ME workgroups by stratjakt · · Score: 1

      WinME (95,98,XP Home) cant join a domain, so leaving it running as a PDC with no shares would be pretty pointless.

      For home use, I like samba just to turn what would otherwise be junk into fileservers. I have a samba PDC machine that also hosts a MSDFS root share. Basically its a ghetto SAN, with everything online easily browsable from one mapped drive.

      The kids can find the games and cartoons, the wife can find her music and pictures, applications are all stored.

      Roaming profiles and remote home directories make a format and reinstall of a machine I just cant be bothered to troubleshoot and fix virtually painless.

      I've been fighting an uphill battle trying to get both samba and linux to authenticate against an ldap server. In typical linux fashion, I dont know which piece of the puzzle is missing or broken (PAM and libs, openldap, openssl, samba).

      I also threw in the towel trying to get it to share my deskjet properly. It'll print, but the margins are always screwed up, ie; the top 0.5" is always trimmed on paper. And again, there's too much to troubleshoot. The formatting problem could be at the windows client, samba, cups, ghostscript, etc, etc.. There are a million filters between the users keyboard and LPT1 on my samba box.

      Anyways, WinME cant join domains stupid. It cant even send out an encrypted password, so don't be having ME/9x boxes on real (important businessy) windows domains.

      --
      I don't need no instructions to know how to rock!!!!
    3. Re:adds stability to Win9x/ME workgroups by Anonymous Coward · · Score: 2, Informative

      Actually, that's mostly not true. Windows 95 and 98 can join domains, and so can ME. It's Windows XP Home that doesn't have the domain logon feature.

      Businesses have been using Win95/98 systems on domains (Windows NT) and Netware networks for years. Windows ME can logon to and utilize an NT domain but there is no official Netware client for ME...not that I've heard of anyone using WinME with a Netware server.

    4. Re:adds stability to Win9x/ME workgroups by Anonymous Coward · · Score: 0

      Win9x machines don't really join domains -- they fake it with a workgroup of the same name and a similar logon window.

      Try this: create a Win98 machine with netbios name "FOO". Turn it off. Create another 9x machine called "FOO". This will work, but it wouldn't with NT.

    5. Re:adds stability to Win9x/ME workgroups by mtnharo · · Score: 3, Insightful
      He wasn't really talking about using domains though. He mentioned setting up Samba as a "Master Browser." On a domainless network, one of the machines becomes the "master browser," which all of the other machines look to for info on who is on the network.

      It sounds like a good idea, but in practice, if the master browser changes or is rebooted, the other machines in the workgroup won't be able to find network resources unless they are restarted too. This is usually the source of most network issues with Windows on home networks. By setting up a samba machine that is always and never gives up "master browser" status, the table of which machines are on the network remains available.

    6. Re:adds stability to Win9x/ME workgroups by cloudmaster · · Score: 4, Informative

      WinME can authenticate against a domain, just as every (networkable) version of windows is able to. That login is then used when connecting to any network shares. Anyway, when the poster said "Domain Master" he probably meant "Browse Master", since what was the problems being caused were probably a result of browser elections, etc, and not domain logon issues.

      Every version of windows after Win 95 SP1 uses encrypted passwords by default. That includes WinME. You have to apply a registry change (documented in the docs/Registry/ directory of your samba source distro) to make them use clear text passwords.

      Linux authenticating against LDAP isn't very hard - most of the newer distros just require a couple button presses to set that up, and you should check out PADL's site (padl.com, IIRC) for scripts to migrate your /etc files to LDAP. Or check out my howto, which is generally near the top of a google search for "linux ldap authentication" or similar. Samba-to-LDAP is also easy, if you follow the step-by-step readme's that are all over the place (including examples/LDAP/ in the samba source distro).

      That 485 page PDF document bundled with the current Samba distro is really a useful read.

      BTW, calling people stupid doesn't help much, esp when you're wrong. ;)

    7. Re:adds stability to Win9x/ME workgroups by Anonymous Coward · · Score: 0

      You hardly need a "master browser" on a 5 machine home network -- just Start+Run \\MachineName and NBT will broadcast and find it much more quickly than using the neighborhood.

      Also, 9x is buggy wrt browser elections, so the Browse Master should be turned off. With only NT boxes participating, the elections shoudl work and your browse lists will be fine.

    8. Re:adds stability to Win9x/ME workgroups by Anonymous Coward · · Score: 0

      Actually, I managed it with NT.

    9. Re:adds stability to Win9x/ME workgroups by Anonymous Coward · · Score: 0

      Now turn off NT Machine 2 and turn on NT Machine 1. SIDs won't match and it won't work until you go back and add Machine 1 back into the domain.

      The confusion is that the user is in the domain, but the 9x machine isn't. HTH.

    10. Re:adds stability to Win9x/ME workgroups by Anonymous Coward · · Score: 0

      Same thing happened here. Many problems with Windows on peer-to-peer networks. Microsoft tech support wants nothing to do with these problems, so I suppose they know it is buggy.

    11. Re:adds stability to Win9x/ME workgroups by Etyenne · · Score: 1
      WinME (95,98,XP Home) cant join a domain, so leaving it running as a PDC with no shares would be pretty pointless.

      Except a Samba PDC would win every NetBIOS election and keep browse list current IN A STABLE FASHION instead of having the Win9x machines fight over it every time one reboot. Set the Samba box as a WINS server and the clients accordingly, and you could have reliable NetBIOS name resolution that don't depend on broadcast.

      --
      :wq
  17. a bit ot: C++ GUI Programming with Qt 3 by Anonymous Coward · · Score: 0, Interesting

    Anyone know when this will be released in PDF? I've thought about buying it blind, but not only would I really like to work with it a bit first, the places I typically shop from lists it as out of stock to boot (and has for some time. Not a big seller? I dunno).

    (PS. Links to places which list the book as stocked will be totally unhelpful since you have no idea of where in the world I am or what currency/countries I prefer to deal with)

  18. Samba Cryptic? by timeOday · · Score: 4, Interesting

    I have found Samba very workable and not too hard to set up. At first I only thought of Samba as a hack to interoperate with Windows and assumed NFS was better. But over a few years I've had a number of troubles with NFS, from timeouts to UID translation to large file support (on Linux - I'm sure NFS is better on Solaris!) Finally I realized that Samba is not just a scab, it works fine and is easy to set up. Now I use it even to network Linux boxes. Sure Samba's guts might be messy but it doesn't seem to hurt anything.

    1. Re:Samba Cryptic? by Anonymous Coward · · Score: 2, Interesting

      We recently switched to Samba from NT and it sped up significantly. The regular Samba fork is pretty easy to set up for file serving but my experience with setting it up as a domain controller for Win2000/XP was like sitting down on a cactus and bouncing up and down. Yes, I applied the registry hacks, and yes, I had the server set up properly, but I could not get Win2000 or XP (Professional) to login to the domain. Ended up going with Samba-TNG, which out of the box worked with 2000/XP Pro. Sure hope they incorporate some of the niftier config options into Samba-TNG, though, cause I had to give those up for proper domain control.

      Overall, I like it. Unlike NT, on a Dual PIII with 768Mb of memory and Ultra160 SCSI drives, Linux with Samba is faster, more stable, more secure (I think), easier to admin, and cheaper. I could not be happier. I now plan to set up more Linux boxen for other stuff on the network (mail, routing, etc.).

    2. Re:Samba Cryptic? by Lussarn · · Score: 1

      to large file support

      This is NFS version 2. Both Linux and solaris support NFS v3 but if you roll your own kernels don't forget to enable version 3.

  19. Re:Question: by Deraj+DeZine · · Score: 0, Troll

    FACT 3. OS X is the best desktop
    FACT 4. Linux is for hippies
    FACT 5. SCO pwns Linux
    FACT 7. This post will be modded as a troll

    --
    True story.
  20. 30% off the price for UK readers by Nighttime · · Score: 4, Informative

    This book is currently available through The Register's bookshop with 30% off to UK readers.

    --
    I've got a fever and the only prescription is more COBOL.
  21. Re:Question: by Anonymous Coward · · Score: 0

    I have been studying dance for a few years now, and I have never heard of newtorking. Is is a ballroom style?

  22. Tried Samba 3.0.2a... by Dimensio · · Score: 3, Informative

    ...went back to 2.2.8a because for some reason it wasn't handling symbolic links properly. The drive containing the network share was running out of space, so I set up additional space on another drive and made a symlink to the location (yes, I used all lowercase letters in the symlink). Trying to access the directory with the 3.0.2a server resulted in a "Not a directory" error. It works properly in 2.2.8a, though.

    1. Re:Tried Samba 3.0.2a... by Etyenne · · Score: 1

      follow symlinks = yes ?

      --
      :wq
    2. Re:Tried Samba 3.0.2a... by Dimensio · · Score: 1

      If that goes in smb.conf under the entry for the share in question, then yes. That was the first thing that I checked, but no dice :\

    3. Re:Tried Samba 3.0.2a... by Anonymous Coward · · Score: 0

      also use:
      unix extensions = no

  23. We're talking about Samba and Linux here... by gfhilton · · Score: 3, Insightful
    I've been struggling to keep up with the cryptic voodoo that is Windows networking.


    The cryptic voodoo I struggle to keep up with is Samba and Linux itself. Setting up networking, even advanced domain stuff, in Windows is very easy in comparison. Hence books like this one.

    I don't mean to troll, but one of Linux's biggest problems from a usability point of view is that there is no central place where configuration information is stored (aka the "hated" registry in Windows). It's supposed to end up in /etc but many times it doesn't and instead it's all scattered around in hundreds of tiny text files with various different formats that one must search out and edit. This is one of the (many) things that make it very difficult to set up or configure anything in Linux, be it hardware or software.

    I think we would all be better off if the Linux community would work on fixing usability problems and making Linux more unified instead of continually adding new features. And if that sounds like many criticisms of Microsoft you've heard, then so be it.
    --
    "Do what you wish in your madness, but first let me down off this horse. I wish to see no eyes!"
    1. Re:We're talking about Samba and Linux here... by mangu · · Score: 1
      there is no central place where configuration information is stored


      Funny, I think one of Linux's biggest advantages is that there is a central place where configuration information is stored. It's, as you mentioned, /etc. To find information about your configuration is normally as simple as "find /etc -exec grep -si some_text /dev/null {} \;". OK, the syntax of the find command is anything but easy, but, once you learn it, it'll become far easier than poring through regedit.exe

    2. Re:We're talking about Samba and Linux here... by Anonymous Coward · · Score: 0

      Setting up networking, even advanced domain stuff, in Windows is very easy in comparison.

      From someone who's never done advanced networking in a large windows network with many different Windows versions?

      Heck, I tried to figure out how to connect my Win2K box to a friend running a standard VLAN (fixed password) on WinXP, a project which sent me into the policy editor and lot's and lot's of weird entry-fields and boxes to be entered in the correct order and then associated with each other in some obscure undocumented way.

    3. Re:We're talking about Samba and Linux here... by jeffy210 · · Score: 1

      "...far easier than poring through regedit.exe"

      Eh? I'll call you on this one. How hard is it to open regedit and hit F3 to search for something? Also the registry is pretty logically layed out. HKLM for machine wide configurations, HKCU for per person settings. It's pretty straight forward once you learn it.

      --
      ------
      "And may your days be long upon the earth."
    4. Re:We're talking about Samba and Linux here... by cbiltcliffe · · Score: 4, Insightful
      It's supposed to end up in /etc but many times it doesn't and instead it's all scattered around in hundreds of tiny text files with various different formats that one must search out and edit.


      You mean like the 229 .ini files that are on my Windows 2000 machine, in various places in 'Program Files', 'WINNT', 'WINNT\System32', etc.etc?

      Seriously...I don't know what Linux distro you're using......I've heard this comment before, and out of the few dozen I've tried, nothing ever stored configuration information in more than two places:

      1) /etc and, for some programs with lots of config files, subdirectories of /etc dedicated to the one program.
      2) hidden directories in the user's home directory, for personal configuration files, rather than system-wide.

      Anything that's in the user's home directory is set by the interface of whatever program they're running, though, so you hardly need to 'search out and edit' files that are in 'various different formats'.

      If you're going to spread FUD, at least spread something that's true.
      Oh...wait.....that would mean it wouldn't be FUD, wouldn't it?
      --
      "City hall" in German is "Rathaus" Kinda explains a few things......
    5. Re:We're talking about Samba and Linux here... by mangu · · Score: 1
      How hard is it to open regedit and hit F3 to search for something?


      You answer your own question when you say that "...the registry is pretty logically layed out. HKLM for machine wide configurations, HKCU for per person settings.". Excuse me, but I fail to see the logic in it. How does "HKLM" relate logically to "machine wide configurations"? At least in Linux configuration is normally done by text files, and the text has some connection to the action one wants to perform. Want to configure smb? Check smb.conf. And, if you look into the smb.conf files that come with almost all Linux distributions, you'll see there are plenty of commented examples in that file.

    6. Re:We're talking about Samba and Linux here... by red+floyd · · Score: 1

      While I hate the Registry, HKLM and HKCU are actually logical names. They're shorthand for HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER, which now relate logically to "machine wide configurations" and "per user settings".

      --
      The only reason we have the rights we have is that people just like us died to gain those rights. -- Cheerio Boy
    7. Re:We're talking about Samba and Linux here... by Wedge1212 · · Score: 1

      but a non gui environment is scary...hold my hand

      --
      See Sig! See Sig Zig! Zig Sig Zig!!!!!
    8. Re:We're talking about Samba and Linux here... by Anonymous Coward · · Score: 0

      You really don't know what you're talking about do you? I suggest you shut up immediately.

    9. Re:We're talking about Samba and Linux here... by Anonymous Coward · · Score: 0

      Wrong. Windows programs store the vast majority of their configuration in the registry. The .ini files you cite (and I believe you have the number very wrong) are usually only for backwards compatibility.

      Several reasons to like the registry:

      - everything is organised in a neat hierarchial structure
      - values are typed (string, dword, binary data, ...)
      - common api to access it
      - per-key ACLs

      It's far superior to all this text file configuration bullshit.

    10. Re:We're talking about Samba and Linux here... by jrcamp · · Score: 1

      That is what the Linux Registry is set out to solve, using simply the file system.

      This allows for a simple architecture that can be easily extended since it works on the filesystem level.

      http://registry.sf.net/

    11. Re:We're talking about Samba and Linux here... by SquadBoy · · Score: 1

      /me gives Wedge1212 a big hug

      --

      Cypherpunks: Civil Liberty Through Complex Mathematics. Those who live by the sword die by the arrow.
    12. Re:We're talking about Samba and Linux here... by swv3752 · · Score: 1

      And the registry is uncommented with cryptic notation. Any decent vendor installed programs will have well documented config files.

      --
      Just a Tuna in the Sea of Life
    13. Re:We're talking about Samba and Linux here... by Anonymous Coward · · Score: 0

      /me licks SquadBoy's bulging phallus

      -- Wedge1212

    14. Re:We're talking about Samba and Linux here... by Anonymous Coward · · Score: 0

      Interesting, and about time too! A fairly nice abstraction of the whole text file configuration concept.

      Mind you, their claims of it not having a single point of failure are bogus -- what if the inode for /etc gets lost? What if the libregistry.so file is corrupted?

    15. Re:We're talking about Samba and Linux here... by red+floyd · · Score: 1

      Oh, agreed. I hate the reg. I was just nitpicking the statement about HKLM and HKCU.

      --
      The only reason we have the rights we have is that people just like us died to gain those rights. -- Cheerio Boy
    16. Re:We're talking about Samba and Linux here... by jeffy210 · · Score: 1

      Guess I should have spelled that out for the linuxites who aren't familiar with the registy. Thanks for expanding that. It all comes down to a matter of what you are used to using.

      --
      ------
      "And may your days be long upon the earth."
    17. Re:We're talking about Samba and Linux here... by mrroach · · Score: 1

      Why would you care where the data is stored? Have you ever actually set up a network card, or joined a domain, or set up a scsi device by manually editing the registry? I highly doubt it.

      The location of the data is not what is all-important. Making the tools that modify that data better is.

      -Mark

    18. Re:We're talking about Samba and Linux here... by jrcamp · · Score: 1

      You're pretty fucked either way if your /etc gets corrupted with things like they are right now. ;) You could also say the same thing about other vital .so's getting corrupted. I don't think it's adding that big of a risk.

    19. Re:We're talking about Samba and Linux here... by Anonymous Coward · · Score: 0

      one of Linux's biggest problems from a usability point of view is that there is no central place where configuration information is stored

      Ahem, *BULLSHIT*.

      Where system config information is stored has absolutely *no* relevance on usability.

      It does, however, have an impact from an administrative point of view.

      Luckily, Linux also has a central place where configuration information is stored - and it's a hell of a lot easier to view, change, backup, and restore than the Windows registry.

    20. Re:We're talking about Samba and Linux here... by Whatchamacallit · · Score: 2, Insightful

      Yeah with a single point of failure on two binary files! I have no idea how many registries I've had to repair, replace, or just end up reloading Windows to fix but it's up in the 6 figure range!

      MS needs to freaking put in some better backup and auto-recover features for the registry! It's far to vital to rely on a Sysadmin backing it up on a regular basis. There needs to be a multi-layered backup going back several days. Sure you can do a system restore but it's not rock solid enough and scares the hell out of most people. Go-Back was and is much more reliable and easier to understand then the first generation Microsoft System Restore feature. The registry should be backed up after every single successful reboot and one should have at least 4-5 choices to roll it back to if there is a problem. You should be able to do this at boot time when the registry has an issue being read or written to. A dialog should popup and ask if you wish to switch the current registry files to the backed up ones.

      Linux scatters INI like configuration files in a variety of locations and the format varies. But at least if your Samba.conf file gets hosed, it won't blow out everything else along with it. Say it's truly corrupted, you can at least edit the sucker with vi / emacs and fix the glitch. With a binary registry file you're fucked.

      Apple's got it right with their XML .plist files and the Property List editor to read and edit them. You can edit them with any text editor as well. In addition there are full command line tools that are vastly superior to the Windows command line tools. It's easy to write Cocoa/Carbon apps that use a .plist file to store default settings and preferences. Most apps if they follow the recommendation will have the ability to regenerate an applications .plist file if it's deleted. Before Apple came out with Journaled HFS+, there were many file corruption issues (all fixable with a permissions check and running a disk util). The new Journaled HFS+ is pretty darn solid, I haven't had a corrupted file ever since the journaling was added in Jaguar (it was there in Jaguar but you had to turn it on via a system hack in Panther it's on by default via the Disk Utility).

    21. Re:We're talking about Samba and Linux here... by Anonymous Coward · · Score: 0

      You mean like the 229 .ini files that are on my Windows 2000 machine, in various places in 'Program Files', 'WINNT', 'WINNT\System32', etc.etc?

      When configuring a service (such as file sharing or setting up a domain) on Windows, how many times do you actually have to go into the Windows directory to change something? I run a Windows domain, and I have never had to once. With Linux, under just about every distro, you have to go to /etc or some other folder to change settings on a config file. Would it really be that hard to create some KDE or Gnome app that takes settings that are changed/created in a graphical interface, and input them into the configuration file? I know some 3rd party, such as a guy in his basement, can do this already - thats whats great about Linux. But its even more refreshing and less hassle when the company that makes service/application is able to integrate configuration into the program itself, in a graphical interface.

      Call me a noob, tell me to RTFM, but in my experience with Linux in the past 10 years (off and on) it seems to be lacking that type of key feature.

    22. Re:We're talking about Samba and Linux here... by n3bulous · · Score: 1

      .so's are usually read only in practice and a more secure system will mount /usr and/or /lib RO, avoiding all writes. With /etc, fixing a non-hw problem is as easy as booting off a CD and fixing the problem file with a text editor (not fondly remembering having to use ed in my SunOS days...)

      The Windows registry is regularly read from and written to and, we know that static systems are less problematic than dynamic ones. It is also difficult to secure the registry because most software relies on write access, so allowing common users to install software can be a pain. (Right now I'm pissed because Oracle seems to require NLS_LANG to be defined only in the registry and reading it's value from Java requires JNI.)

      Having said that, I haven't experienced too many registry problems, but with Windows you never really know what the problem is since the logging system is so pathetic.

      --
      "The area of penetration will no doubt be sensitive." ~ Spock
    23. Re:We're talking about Samba and Linux here... by Etyenne · · Score: 1
      - everything is organised in a neat hierarchial structure

      A file system is also a "neat hierarchial structure". Unless this structure make sense, it's useless.

      - values are typed (string, dword, binary data, ...)

      This is of interest only if you have to store binary data. Wheter you need dword and integer as configuration value is open to debate.

      - common api to access it

      This is neat indeed, except for the drawback that it is the only way to access it.

      - per-key ACLs

      This is neat too, and just about the only advantage the Windows registry have over text file configuration. We can achieve a somewhat similar result using file system ACL (possibly in conjunction with "include" directive in config files).

      On the other hand, you have :

      • A single point of failure
      • Persistent program data lumped together with configuration directive
      • Configuration uneditable outside of a few specialized tools

      ... and a few more gripe I don't remember ATM. Fine if you like your Windows way; thanks, but no thanks, I'll keep my text config files.

      --
      :wq
    24. Re:We're talking about Samba and Linux here... by Etyenne · · Score: 1
      When configuring a service (such as file sharing or setting up a domain) on Windows, how many times do you actually have to go into the Windows directory to change something? I run a Windows domain, and I have never had to once

      You may have had to edit the registry though, which would be the Windows equivalent of editing config in /etc.

      With Linux, under just about every distro, you have to go to /etc or some other folder to change settings on a config file. Would it really be that hard to create some KDE or Gnome app that takes settings that are changed/created in a graphical interface, and input them into the configuration file?
      • YaST
      • Linuxconf
      • Webmin
      • All the program in my "System Settings" menu in Fedora
      • KDE Control Center
      • ... a few more I can't think of ATM
      Call me a noob, tell me to RTFM, but in my experience with Linux in the past 10 years (off and on) it seems to be lacking that type of key feature.

      GUI configuration tools tie you to a GUI. You come from a platform where the OS is thightly coupled with the GUI; this is not the case in the Unix world. As I demonstrated earlier, GUI configuration tools exist but we are not bound to them. You may argue that a standardized GUI way for configuration is better, but it is really trading flexibility for simplicity. We Unix people prefer the other way around.

      --
      :wq
    25. Re:We're talking about Samba and Linux here... by Etyenne · · Score: 1
      That is a great idea but unfortunately is never going to happen. That's the problem with open source stuff - it lacks someone at the helm (in this case, GNU/Linux) telling it where to go and making it abide by standards, which is why UNIX in general still smacks of the 70s and always will.

      Blah blah blah. Thing in the Open-Source world get adopted when people choose to use them. People choose to use new thing because they see a perceived value in using them, not because some comittee decided in your place how your system should behave.

      --
      :wq
    26. Re:We're talking about Samba and Linux here... by Etyenne · · Score: 1
      You're pretty fucked either way if your /etc gets corrupted with things like they are right now.

      It should be noted that we (my employer) did not experienced any file system corruption since the introduction of journalled file systems. And we have a few 100s servers on support.

      I have been out of the Windows support scene for a while (thanks, $deity!), but back when I was a support monkey, registry corruption where relatively common. Hopefully, they fixed that in Windows >= 2000.

      --
      :wq
    27. Re:We're talking about Samba and Linux here... by gfhilton · · Score: 1

      Windows DOES back up the registry at every successful reboot (at least XP does). It also backs it up every time a software program or driver is installed.

      --
      "Do what you wish in your madness, but first let me down off this horse. I wish to see no eyes!"
    28. Re:We're talking about Samba and Linux here... by cbiltcliffe · · Score: 1
      The .ini files you cite (and I believe you have the number very wrong)


      Start->Search->For Files or Folders->*.ini 229 items found.

      How the hell could I possibly get it wrong?!
      --
      "City hall" in German is "Rathaus" Kinda explains a few things......
  24. Re:Question: by mangu · · Score: 0, Offtopic

    "windows networking" is what you do when, after dancing, you get together with some important people by the window side, in order to impress them with your professional capabilities.

  25. NDS is your Friend. by widderslainte · · Score: 1

    I never thought I'd see relative flexibility and Active Directory used in the same sentence.

  26. Re:Question: by Anonymous Coward · · Score: 0

    FACT 6. PROFIT???

  27. Where to find a copy of TOSHARG? by lone_knight · · Score: 1

    I am definitely going to pick up a copy of Samba 3 by Example.

    Does anyone know where I can get a copy of the TOSHARG that was mentioned as the technical resource?

    --
    Computers are useless. They can only give answers. --Pablo Picasso
    1. Re:Where to find a copy of TOSHARG? by BradySama · · Score: 1

      Hardcopy or PDF or HTML?

    2. Re:Where to find a copy of TOSHARG? by proub · · Score: 3, Informative

      As linked in the article header, for one (not repeating in hopes people might seek out different mirrors). In general, head to http://samba.org/, find the mirror nearest you, and choose "PDF" or "HTML" from the "documentation" section's opening paragraphs.

      --
      "Irony is so September 10th"
      Matt Miller, alt.fan.spinnwebe
  28. Samba vs. NFS by hey · · Score: 2, Interesting

    Just wondering... if you have a all Linux office does anyone choose Samba over NFS?

    1. Re:Samba vs. NFS by jrcamp · · Score: 1

      I sure wouldn't doubt it if they did. With NFS it seems all you have to do is fake your uid/gid on the client and then you have access to all those files on the NFS server with that same gid/uid. Doesn't seem very secure to me since somebody could easily put up a rogue box on your network.

      Is there something I'm missing here?

    2. Re:Samba vs. NFS by Anonymous Coward · · Score: 0

      No, that's exactly what happens, and I have done it before on my University's network. Fucking ridiculous it is.

    3. Re:Samba vs. NFS by jrcamp · · Score: 2, Insightful

      Such as I expected. I can't believe there isn't a huge drive from RedHat, SuSE, IBM, etc. to get NFSv4 complete and up to par with Windows when it comes to network file sharing. I would never deploy NFS in an enterprise with its current state.

    4. Re:Samba vs. NFS by Dolda2000 · · Score: 5, Informative
      Unfortunately, that's the case right now. NFS is supposed to be used in secure environments.

      However, that's going to change. There is already support for RPC security when using NFSv4 in Linux 2.6. That way, you can use Kerberos authentication and encryption for your NFS exports, and all is well. It's still marked as experimental, but I suspect it to be mature before long.

      All that already works on Solaris, of course.

    5. Re:Samba vs. NFS by slide-rule · · Score: 2, Informative

      You implied work/office, but on my home LAN of 3 machines (two dual' into '98), I gave up on NFS and went fully-samba. I might not have had NFS *properly* config'ed through and through, but my home network is fairly simple. Still, I'd have occasional problems with NFS/automount hanging up somewhere causing machines to *not* be able to shutdown properly. (It'd hang the shutdown scripts.) Since I went all-samba (even for the all-Linux aspect of the network) this just doesn't happen to me anymore, so samba/automount seems more tolerant of oddball problems. (YMMV)

    6. Re:Samba vs. NFS by KidSock · · Score: 1

      However, that's going to change. There is already support for RPC security when using NFSv4 in Linux 2.6.

      Unfortunately NFS sucks [1]. If I go to someone's house can I mount an NFS export as easily as I can an SMB share? No, because the UID/GIDs don't match up. SMB keys on usernames.

      [1] In truth SMB sucks too because of the many layers of protocol.

    7. Re:Samba vs. NFS by Dolda2000 · · Score: 1
      That's not a problem either. NFSv4 uses a UID mapping daemon, which maps UIDs between the symbolic usernames of different systems. NFSv4 also comes with an `exportfs' program, with which you can create NFSv4 exports `on the fly', just like you can with Windows.

      NFSv4 will also, unlike SMB, have support for automatic subdirectory delegations to other servers (not yet implemented, but upcoming), be compatible with Windows (ie. Windows will be able to function both as NFSv4 server and client, not that MS will write the drivers), be able to run over TCP (which is already the default, at least last I tried), and the RPC security layer also has support for several authentication backends, Kerberos just being one of them. Furthermore, NFSv4 includes the concept of a unified tree between servers a la AFS and Coda. Let's just say that NFSv4 is a major improvement over previous versions. Check out the reference implementation's homepage, including a (more) complete feature list here and (especially for Linux) here.

      I think SMB sucks much more. Just like so much other Windows stuff, it's a legacy technology from the 80's designed for DOS, and has now been riddled with layering from hell to make up for the base protocol's deficiancies. If not for any other reason, the protocol is just plain ugly to look at. ;-)

    8. Re:Samba vs. NFS by VAXGeek · · Score: 1

      I actually find SAMBA great when just using it to access my home directory or other simple tasks. YMMV when using locking, etc.

      Anything to stay away from Nightmare File System.

      --
      this sig limit is too small to put anything good h
    9. Re:Samba vs. NFS by KidSock · · Score: 1

      NFSv4 will also, unlike SMB, have support for automatic subdirectory delegations to other servers

      CIFS has this. At least it sounds like DFS to me. If you try to access a directory that is hosted on another server you get NT_STATUS_PATH_NOT_COVERED, the client queries for a referral and redirects to a server in the list.

      Regardless, SMB and NFS still both suck. NFS will always suck because there's very little focus on integrating it with other related concepts like user and access management. SMB sucks because the protocol is so ugly (as we both agree). But it doesn't matter how many features one can list for each if you cannot quickly manage the exports, users, and permissions.

    10. Re:Samba vs. NFS by Dolda2000 · · Score: 1
      NFS will always suck because there's very little focus on integrating it with other related concepts like user and access management.
      According to the law of building a tool to do one job and do it right, that's exactly what NFS should do. User management shouldn't be done over a filesystem protocol, but over another protocol, and if you use LDAP as your back-end username directory service, that's taken care of.
  29. There's also O'Reilly's free Using Samba online... by phallstrom · · Score: 5, Informative

    http://www.oreilly.com/catalog/samba2/book/toc.htm l

  30. Why aren't tech authors into "free as in beer?" by stratjakt · · Score: 2, Insightful

    I've been struggling to get my samba PDC (and by extension every windows box on my network) and linux to authenticate against a single source, an LDAP server.

    Of course, this means learning not only what LDAP is , but how to configure and test it, etc.. OpenLDAP wasnt the toughest nut to crack, but it's configuration files are out there in wackyland. This is as far as I've gotten.

    Then getting samba and other services to auth against it. Of course, to use pam_ldap.so I need to have linux boxes that use PAM, and getting that running on my mutant once-slackware-but-now-fubar installs is no easy task..

    Anyways, to say the documentation on such things is sparse would be an understatement. What's to be found is completely obtuse and hard to follow.

    It would seem that this book would help. And if this were work-related I could get it and write off the expense. But this is just hobbyist messing-around stuff, and by this time next week I'll be messing with something different.

    I just dont have the funds to spend 200 bucks on literature for my time-wasting project du jour. Google's alright most of the time, but often I just see 9 billion users group postings of the same error I'm getting (with no replies containing solutions).

    --
    I don't need no instructions to know how to rock!!!!
    1. Re:Why aren't tech authors into "free as in beer?" by pantherace · · Score: 1

      Mind trying out sloppyadm which sets this up (currently a bunch of redhat w/ap t & gentoo specific things, but what mostly needs to be done is a bit of modification to get slack, etc to work) I do need to update it some, but it works great for a lab that has cups+samba+ldap w/windows and linux clients, it even has provisions to install common config files (all distros) and distro-specific config files. Of course, it doesn't have a gui (yet, I am working on it!) (but frankly it's the best one I have come upon (primarily becasue it does what I want it to do, because I wrote it:) )

    2. Re:Why aren't tech authors into "free as in beer?" by Anonymous Coward · · Score: 0

      If you buying lots of books get safari, your boss may allow you to expense it, mine did.

      http://safari.oreilly.com

  31. AMAZON.COM review copy? by hot_Karls_bad_cavern · · Score: 5, Informative

    "I just completed a three day training course based on this book. Every example just worked fine. The explanations are great but you do need the "Samba-3 Howto and Reference Guide" for detailed background information...."

    That's funny, i just completed a google search for your "comment" here and gues what i found?

    VERBATIM COPY

    Interesting.

    1. Re:AMAZON.COM review copy? by Anonymous Coward · · Score: 0

      nice catch!

    2. Re:AMAZON.COM review copy? by phaze3000 · · Score: 1
      Take a look at 'ALecs' email - jmalone@spamcop.net.

      Now see that the Amazon review is written by one 'Josh Malone'.

      --
      Blaming GW Bush for the Iraq war is like blaming Ronald McDonald for the poor quality of food.
  32. Re:samba rocks - until you hit oplocks! by FyRE666 · · Score: 4, Interesting

    Well, it does until you start using a lot of Excel spreadsheets which link to other spreadsheets on a Samba share at least. Then you start to see serious locking problems.

    Believe me, I've been banging my head against this for a couple of weeks now (I can't reproduce the problem, but other people on the network can and do, daily). Everyone seems to have their own idea about the correct combination of oplocks, level 2 oplocks, veto oplocks, deadtime etc to use; but nothing seems 100% foolproof. This is the reason we're probably going to be switching away from Samba to Win2k3. I don't want this, but as the only Linux guy, it's hard to fight the tide when you're having to clear down the locks and force people to close and re-open files almost daily as they're lock out of their own files... ;-(

  33. EVEN MORE INTERESTING!!!!!! by hot_Karls_bad_cavern · · Score: 1

    This comment by you ALSO is on Amazon.com HERE....under another name.

    You are a liar, congrats. Get lost, son.

    1. Re:EVEN MORE INTERESTING!!!!!! by eugene+ts+wong · · Score: 1

      I'm glad that you pointed that out.

      That reminds me of my hunch that people aren't always what they seem; here on slashdot. Sure, we get trolls, etc., but a lot of people are even more deceptive. I personally think that there are spammers & spam programmers who have difficultly getting their mail to us. Therefore, they come here to discuss their issues, knowing that many slashdotters can't resist leaving a problem unsolved.

      If a spammer can't do action #1, then he'll probably post something like, "All that we have to do to stop spam is do action #1.".

      Most slashdotters would then be quick to jump in & say, "Actually, all that we have to do is action #2 to get around action #1.". Thus, the problem is solved. I guess that you could say that it is a free form of consulting.

    2. Re:EVEN MORE INTERESTING!!!!!! by ak_hepcat · · Score: 1

      Heck, why stop there?

      Why not mention that AmandaHugginkiss is not a woman at all, but a man? Now my girlfriend things(sic)

      Well, either that or a lesbian. But I don't think so, and neither does The Gender Genie: Female Score: 1079, Male Score: 1562

      --
      Support FSF: Stop thinking with your wallet, and think with your imagination. (cc/non-commercial)
  34. Re:samba rocks - until you hit oplocks! by Cheeze · · Score: 3, Interesting

    i'm not sure of your exact problems, but the same thing happens in the win2k environment. sometimes, the application will give the error that the file is open already, buy the user that is trying to open it. The application does not even try to open it read-only. I've had to log into the file server and boot the open file. In that case, the program was MS Excel from office 2k. At least with a linux file server, you should be able to open the file read only. Most of the time, the application can just open it with no locking.

    --
    Why read the article when I can just make up a snap judgement?
  35. Re:ta3o by supe · · Score: 1

    I couldn't agree more!

  36. Re:samba rocks - until you hit oplocks! by fldvm · · Score: 1

    We just turned oplocks off on windows or samba. We take a preformance hit but the crappy 3rd party program we use won't work with oplocks on.

  37. Nice move... by jargoone · · Score: 1

    I see a link in the story for the "Official HOWTO", and click it, expecting an index for the HOWTO. Instead, I see the 3 meg download whiz by before I realize what's going on (I'm on a pretty fat pipe). I'm sure that the samba folks greatly appreciate the submitter dropping that in there.

  38. Re:samba rocks - until you hit oplocks! by Mish · · Score: 4, Informative
    The following settings resolved that issue for me:
    oplocks = no
    level 2 oplocks = true
    fake oplocks = yes
    Of course you'll want to RTFM on those commands first so you know what you're letting yourself in for. :)
  39. Re:samba rocks - until you hit oplocks! by FyRE666 · · Score: 3, Informative

    fake oplocks = yes

    Erm, isn't that a completely insane thing to do (unless you're sharing a CD over Samba)?!!! The Windows clients will assume they have a lock on a file, and blindly write to it, even though other clients will assume the same! If you really are using this on a writable share and haven't clobbered a whole load of files, then you've been damned lucky!

  40. MOD DOWN! PARENT IS A COMMENT STEALER! by Anonymous Coward · · Score: 0

    Read the post by hot_Karls_bad_cavern above for the proof. Just got to alert the mods, before this asshole gets any more karma.

  41. Re:Question: by Phishcast · · Score: 1

    Joke Score: -1 Ouch

  42. Re:There's also O'Reilly's free Using Samba online by Anonymous Coward · · Score: 0

    Ok. This is starting to become a pet peeve of mine... when you put a link into a Slashdot comment post, can you take the time to make it clickable?

    How do I do that you ask? Like this:
    <a href=http://www.oreilly.com/catalog/samba2/book/to c.html>Samba Online</a>

    Which winds up as this:
    Samba Online

    Note that Slashdot will automatically add the [oreilly.com] (So that you can't fool people into looking at that goatse guy for the millionth time).

    Sure it's a little extra typing but think how much time you'll be saving others. Also it's more likely to get you that (+1)Informative.

    And yes, I'm sure that if I used a REAL browser it would automatically convert it... no need to berate me (on that point at least).

  43. Does Samba have some of the same security flaws? by wolfdvh · · Score: 1
    Since Samba is trying to work like Windows server as closely as possible, is it subject to some/any of the same vulnerabilities? Obviously you're going to miss wormy code specific stuff, but what about vulnerabilities based on Windows logical functioning?

    Is Samba maintained to close Windows vulnerabilities that might affect it, soon after they are found? To sell switching, I need to be able to say to my boss, that the flaw that Microsoft just patched, doesn't affect the Samba server, or it can be patched there too.

  44. Re:There's also O'Reilly's free Using Samba online by Hel+Toupee · · Score: 1

    Amen buddy! If I only had mod points...

    --
    PERL:
    All of the power of Voodoo with most of the understandibility!
  45. Re:ta3o by Anonymous Coward · · Score: 0

    Markov chains again?

  46. Re:Question: by cablepokerface · · Score: 0

    Flaime ?? I just asked a question ! I just don't know what samba is ...

  47. Re:samba rocks - until you hit oplocks! by Mish · · Score: 4, Interesting
    Erm, isn't that a completely insane thing to do
    Yes and no.

    I don't know the specifics of your situation, so this very well may be an extremely bad idea for you, hence the "RTFM" comment. :)

    The system these configuration entries came from is a server that hosts numerous files which many people read, but only one or two people need to write to (and only one of those on a regular basis).

    The problem being that the annoying win32 program being used refuses to function unless it believes it has exclusive read and write access to the files, even though it never actually writes to the files (in most cases).

    It¦s not an elegant solution, but it solved the problem here with no ill effects since it was installed over a year ago, but yes, it has huge potential to cause file corruption on a system where the same files are concurrently modified by multiple users.
  48. Re:Question: by djh101010 · · Score: 1

    From what I recall, the file sharing benchmarks have proven to be faster

    Oddly enough, I just benchmarked that yesterday for my Samba implementation project. For the test, I used a 100MB or so directory, composed of a mix of large and small files, which also happened to be part of my home directory. Compared to NFS Maestro on the clients, mounting a shared directory from a Solaris box, Samba3 measured 78 percent faster writing to the server, and 73 percent faster reading from the server.

    Hard to argue against a tool that's not only free, but is also substantially faster.

  49. Corollary: Something is always broken. by Anonymous Coward · · Score: 0

    The corollary to this is that something is always broken. Such as: Intermittent problems with two of the most common network adapter chips.

  50. Re:samba rocks - until you hit oplocks! by ArtisteTerroriste · · Score: 2, Interesting

    Show this to your Win friends. Win2K3 is a mess. Since our NT PDC & Members our transfer rates have dropped, all sorts of bad lock situations with single file Excel docs (Office 97). - this comming from an NT guy.

  51. Re:samba rocks - until you hit oplocks! by wackysootroom · · Score: 4, Informative

    A better way to do it would be to only veto oplocks on certain types of files with the veto oplock files option.

    We had problems with dbase file locking until we vetoed oplocks on those files.

    To do it, it looks like this:
    veto oplock files = /*.DBF/*.dbf/*.CDX/*.cdx/*.IDX/*.idx/*.fxp/*.FXP/* .prg/*.PRG/*.mmo/*.MMO/

    This way, you're not using oplocks on only the types of files that are giving you hell, while getting the best performance possible from all other file types.

  52. Re:Does Samba have some of the same security flaws by Anonymous Coward · · Score: 1, Informative

    No, that's not how they work. Being compatible with the protocol doesn't mean you have to implement the handling code in exactly the same way. Besides which, the code injected via the vulnerability would only work on a Windows system as it would use Windows API calls.

    On the other hand, a multi-platform worm that is specifically designed to target Samba and Windows networking vulnerabilities is quite possible.

  53. Agree with reviewer by Etyenne · · Score: 2, Informative

    My boss brought back a copy of S3bE from Real World Linux Expo in Toronto (with a dedicace to my name ... w00t!), and I must say I agree with reviewer. So far, I have only read chapters 10 and 11 (but thumbed through the rest), and they alone are worth the price of the book.

    --
    :wq
  54. The same on Netware servers by Anonymous Coward · · Score: 0

    This is nothing new

  55. slackers by Anonymous Coward · · Score: 0

    For more information see: InformIT or Amazon.Com. The PDF and HTML versions of Samba-3 by Example (The Samba Guide) will appear on the Samba web site by April 14th under the documentation page. Really? How come I don't see it? Someone has a problem with deadlines...

  56. Re:There's also O'Reilly's free Using Samba online by CAIMLAS · · Score: 1

    Which is pretty useless, if you're trying to impliment Samba 3 features. I think that was the whole point - Samba 3 vs. Samba 2.

    --
    ~/ssh slashdot.org ssh: connect to host slashdot.org port 22: too many beers
  57. Re:There's also O'Reilly's free Using Samba online by top_down · · Score: 1

    Of course your solution is best, but here is a tip that works for at least the Firefox/Linux combo if the url is right:

    1. Copy the url to the clipboard by double-clicking it.

    2. Past the url into the browser by clicking the middle button.

    --
    Anyone who generalizes about slashdotters is a typical slashdotter.
  58. Re:samba rocks - until you hit oplocks! by Anonymous Coward · · Score: 0

    We have server 2003 and experience locking problems. Especially with excel. It happens with certain other older apps and also happened on 2000 also. So dont think it will be magically resolved by going to 2003.

  59. Re:samba rocks - until you hit oplocks! by Anonymous Coward · · Score: 0

    We had a big expansion and were making samba servers out of old desktops to tide us over until we got a san. We then transfered the data over to the new san. Now some users complain that the $50000 san fronted by new ibm servers with win2k3 basketcase is slower than a crap old desktop with ide drives running freebsd and samba.

    We also have the ever-popular 530pm everone logged out logie.

  60. So, Where is Samba-3 By Example? by LazLong · · Score: 1

    On 9 Apr the samba.org promised that "The PDF and HTML versions of Samba-3 by Example (The Samba Guide) will appear on the Samba web site by April 14th under the documentation page." As of my writing this it is 21 Apr (PST), a week later than promised, and it still isn't available. It would be nice if they would update their web site with a new date....

    1. Re:So, Where is Samba-3 By Example? by janhct · · Score: 4, Informative

      Guys,

      I committed the entire text of the book to the public samba-docs code tree on April 5th. We are having some difficulty in building the PDF file on the Samba build system. This will be resolved as soon as possible.

      We are committed to open information about open source software. Please be a little patient with us, you will get your candy soon.

      Cheers,
      John T.

    2. Re:So, Where is Samba-3 By Example? by LazLong · · Score: 1

      Thank you for the update!

  61. Free Electronic Version of This Book? by _Hellfire_ · · Score: 1

    On the Samba website they mention:

    The PDF and HTML versions Samba-3 by Example (The Samba Guide) will appear on the Samba web site by April 14th under the documenation page.

    As far as I can tell this hasn't happened. Am I missing something or have they not posted it yet?

    --
    "And then I visited Wikipedia ...and the next 8 hours are a blur..."
    1. Re:Free Electronic Version of This Book? by Anonymous Coward · · Score: 0

      Jeez, let the poor guys make some money for a few weeks before you start screaming for giveaways...I'm guessing they were probably waiting for the Slashdot posting to drum up some more sales before they make it available free. Nothing wrong with that, hell I'd do the same thing if it was my book. There is plenty of other free Samba doc out there for now.

  62. Sing sign-on solved. by Anonymous Coward · · Score: 0

    There are a few really cool things with Samba 3. I had to configure it for clearcase. We needed to authenticate a user against a Windows 2003 domain. As a side effect (after a small tweak) I was able to authenticate my unix users against ADS domain. The problem i have been trying to find a solution for over the last couple of years is solved. Granted I would rather have Windows authenticate against openldap or iPlanet Ldap, but this is also way cool.

  63. Re:samba rocks - until you hit oplocks! by Anonymous Coward · · Score: 0

    even though it never actually writes to the files (in most cases).

    Doesn't sound like you are too sure on whether it writes to the file or not ;)

  64. Re:Question: by Anonymous Coward · · Score: 0

    I have no mod points, therefore I am not a mod.

  65. /var/lib is a third place by upside · · Score: 1

    Unless I'm mistaken BIND puts stuff there. But then again I guess you could say zone files are data rather than configuration files.

    --
    I'm sorry if I haven't offended anyone
  66. Re:Question: by oohp · · Score: 1

    Actually Samba works great on FreeBSD as well. Not to mention the new UFS2 features in FreeBSD 5.x like access lists which enable you to set permissions on a Samba share just like you do to an NT share. Of course, most filesystems in Linux 2.6 have posix ACLs as well but I haven't tested such a setup yet.

  67. config data has many advantages by hooykaas · · Score: 1
    > The location of the data is not what is all-important. Making the tools that modify that data better is.

    It is not as much the location that is important, but the ease of access to these settings. Having an easy to use tool to easily perform simple tasks (like windows often has) is nice. Having the possibility to easily use and/or make a large range of tools is much better.

    That is what I like about most unix-like config files. I can use simple tools like grep, wc diff etc for simple stuff. I can use advanced setups using CVS, rsync, preprocessors etc for advanced tasks.

    How many of the easy-to-use windows system administration have the possibility for:
    • seeing the differences between two machines,
    • having a version history of all configuration changes,
    • replicating configurations (with local changes) from a master setup to many machines.
    • ....

    I grant that tools like samba or apache might benefit from easy to use GUI's for simple tasks (I dont use webmin, swat very well, so they might be adequate, but I have the impression that they might be more difficult to find for starting users).

    But the main point is that easy access to the configuration data is prime. By easy access I mean many things:
    - logical location
    - easy to use format (text format)
    - good documentation
    - etc.
  68. Thanks for this review by vrTeach · · Score: 1
    I just have to give thanks for this review. After reading through this I ordered it right away, and it came yesterday. I learn most easily from cookbook style books, because I actually don't LEARN things, I just learn how to look them up.

    The examples in the book are clear and interesting, and almost make me want to set up a test network to try each one out. Next I'm going to need an LDAP cookbook, hmm, better search for it.

    Oh, I see that there is:

    • IBM pdf of LDAP implimentation cookbook
      http://www.redbooks.ibm.com/pubs/pdfs/redbooks/sg2 45110.pdf
    Ah well, more to read.

    --
    -- Mein Systemadminstrator hat einen großen schwarzen Moustache.