Six Easy Ways To Secure Samba

Posted by on Oct 28, 2004 | 12 Comments

Security is a balance between allowing the right people easy access to a resource and preventing unwanted interlopers from getting their hands on information you don’t want them to have. Samba has a long list of configuration options that allow you to fine-tune security to exactly what you need. Here are some of the important options which you can use to make Samba available to valid users and nearly impervious to everyone else.

Passwords
Most security is based on passwords. A user name and password pair is still one of the best ways to authenticate a user, that is, as long as the password remains safe. This can be a difficult task with the proliferation of network monitoring tools that are both easy to get and easy to use. Sniffing a password off the wire has become a relatively trivial task.

Limiting password transmission on the network
Although transparent to the user, there are several ways in which Windows will transmit and receive a password. Up until Windows 2000 Service Pack 3, clear text was one of those options. Basically, the username and password were packaged and transmitted without protection across the network.

The first step is to set the Encrypted Passwords global option to Yes. This will cause Samba never to use clear-text passwords. However, Samba will, by default, start using an older LAN Manager format for hashed passwords. It’s not clear text, but the hash is sufficiently easy to crack via brute force that it’s not recommended.

To turn off LAN Manager passwords, you can add the global option Lanman Auth and set it to No. This will break any non-Windows NT/2000/XP clients and servers since these are the only clients capable of communicating with NT’s authentication. The NT authentication is substantially more difficult to break than a LAN Manager password hash. In fact, there are two versions of NT authentication, but either is sufficiently secure for today’s processing capacities. [Continued...] [Robert L. Bogue]

  • Sean Knox

    Do any of the online services mentioned provide access to cable news streams, e.g. MSBNC/CNN?

    • http://sybersquad.com Christopher Knopick

      A lot of the Cable News sites stream on the web, that’s one option.

  • http://sybersquad.com Christopher Knopick

    The problem I have is with local news and programming as we live quite far from the transmitter and I don’t know if an HD antenna would work, (I can’t stand looking at SD programming any more). Not being able to get kids, (I have young kids), shows without starting a netflix show every hour is a pain as well. I wish you could queue up a bunch of shows and then watch them all at once. This is definitely a First World Problem.

    • http://profiles.google.com/hgpot33 Sam Lewis

      Depending on how tight money is, you could rent episodes/seasons from different kids’ programming on Amazon VOD or iTunes TV and let it play on a Roku Box or Apple TV.

  • Reid Ellis

    Title should be “Alternatives to US Cable Television. Netflix isn’t as good outside the US, and Hulu just isn’t available at all. iTunes outside the US doesn’t have any ABC/NBC/CBS TV shows..

    • http://twitter.com/mitch_bartlett Mitch Bartlett

      Boxee is a great device to aggregate many sources of content, US and elsewhere.

  • http://www.facebook.com/profile.php?id=100001770065819 Joseph Palmer

    I ditched cable tv long ago and have been happier ever since. Netflix does wonders as well as youtube and a lot of other sources.

  • Anonymous

    Amazon has fantastic customer service!

  • http://twitter.com/webbnf Neil Webb

    My frustration in rural Michigan is that Charter is our only internet provider. I called them to cancel everything but the internet, the rep said “well it will be more expensive to have just internet, so we will give you (slow speed) but throw in the TV content.” It was an interesting conversation… they do not want people to ditch TV so they are throwing it in free while people need internet.

  • Roger Market

    My wild guess would go either way. I’d say iTunes because it seems to work better; I’d say Amazon because you have all that credit to spend. You didn’t leave enough clues to make the answer clear. ;-)

    But yeah, all those are great. If I didn’t have roommates who wanted cable/satellite, I wouldn’t have any of it. I’d use Netflix and iTunes. And stuff.

  • Jack Durst

    What about YouTube… Who cares about mainstream TV, all the really good stuff is there.

  • http://www.facebook.com/people/David-DeWitt/627236289 David DeWitt

    I love cable tv and my dvr.