On mySimon: Gifts for the Outdoor Enthusiast
BNET Business Network:
BNET
TechRepublic
ZDNet

March 29th, 2007

Vista Hands On #13: Connect to a shared folder on a Linux machine

Posted by Ed Bott @ 10:59 am

Categories: Linux, Windows Vista

Tags:

In Focus » See more posts on: Vista, Hands On Vista

As I noted earlier this week, I’ve been trying to get a Linux box installed on my network so I can explore interoperability issues between Windows and Linux. I can now report that I have succeeded in installing Ubuntu Linux 6.10 and it seems to be running well.

First problem I ran into was that the Vista machine couldn’t access shared resources on the Linux box and vice versa. I had no problem passing files back and forth between the Linux box and one running Windows XP. This post deals with the first problem, connecting to the shared resources on the Linux box. (I’ll tackle the issue of connecting to a Vista share in a follow-up post.)

There are two possible reasons why a Vista user can’t connect to a Linux share:

1. Windows Vista changes the authentication method for password-protected shares. In XP and previous versions, the system by default used two password hashes, the old-style LAN Manager (LM) and the newer NTLM version 2 (NTLMv2). (If you want the gory details, read this excellent article by Windows security guru Jesper Johansson. Although it was written using a beta version of Vista, the information is still accurate.) Older versions of the Samba server in Linux use only the LM hash, which means they have no trouble connecting to a default installation of XP but will fail when trying to talk to a default installation of Vista.

To fix this problem, you need to update the version of Samba on the Linux machine to 3.0.22 or higher. (If you’re using an earlier Samba version, you can downgrade Vista’s authentication to accept LM hashes, using either Local Security Policy Manager or a registry edit. I don’t recommend this option.)

2. Challenge #2 was to get Samba configured on the Ubuntu Linux machine. In my case, the samba-common package was installed and was at the correct revision (3.0.22–1), but the samba package itself was missing. (Update: On a second machine when I tried a clean install, smbfs was missing as well, and I was unsuccessful until I installed it.) After I installed the missing pieces, I had one more step to run through. From a Terminal window, I needed to add a Samba user and password. Windows users are accustomed to having file sharing and authentication handled using the credentials for their user account, but with a Samba server the databases are different. The syntax, in my case, was fairly straightforward:

sudo smbpasswd -a username

In this command, username is the same as my account name. You can create an account for another user as long as they already exist in the user account database.

(Note that you have to respond to three password prompts at this point. The first is for the root password of the logged-on user, and the next two set the SMB password for the user whose account you’re adding.)

After going through these steps, I was able to access shared folders on the Linux machine.

If any Linux experts in the audience want to add any comments or corrections or suggestions, hit the Talkback button and fire away. You can also reach me via e-mail by using the email link on my bio page.

Ed BottEd Bott is an award-winning technology writer with more than two decades' experience writing for mainstream media outlets and online publications. See his full profile and disclosure of his industry affiliations.

Email Ed Bott

Subscribe to Ed Bott's Microsoft Report via Email alerts or RSS.

  • Talkback
  • Most Recent of 154 Talkback(s)
Using a Vista Maciune to access files on a smb with redhat
I need some help...

I just purchased a new laptop with Vista OS. I am the first person to have Vista and i am experiencing a few problems.

I am having dificulity accessing the shared ser... (Read the rest)
Posted by: gcaines@... Posted on: 09/18/07 You are currently: a Guest | | Terms of Use
My earlier post seems to have vanished....  bportlock | 03/29/07
Why not use Service for Unix in Windows?  voska | 03/29/07
Not sure those would help  Ed BottZDNet Moderator | 03/29/07
NFS is Unix/Linux's "workgroup" system  bportlock | 03/29/07
Oops! Typo time!  bportlock | 03/29/07
Oh b*gger! Another typo!!!!  bportlock | 03/29/07
ssh and sshfs is a better option  MisterMiester | 03/29/07
Fair point, but...  bportlock | 03/29/07
Right on!  xstep | 03/29/07
Forgot about puTTy  MisterMiester | 03/29/07
Correction  Yagotta B. Kidding | 03/29/07
Thanks  Ed BottZDNet Moderator | 03/29/07
Apples and Pears  Yagotta B. Kidding | 03/29/07
sudo and su - a precision  Mitch 74 | 03/30/07
re: Correction  osreinstall | 03/30/07
Ubuntu does have a root user  maldain | 03/30/07
This has been covered already...  Tony Agudo | 03/30/07
Sudo requires admin  Mikael_z | 04/01/07
Depends on your setup, different distros  D-cat | 04/03/07
Message has been deleted.  Harry Bardal | 03/29/07
Interesting post Harry...  bportlock | 03/29/07
Same thing he is always posting about...  Confused by religion | 03/29/07
Harry's stuff is obscure at the best of times...  bportlock | 03/29/07
Not particularly obscure  frgough | 03/30/07
Cool  Bucky24 | 04/02/07
See the post below  Harry Bardal | 03/29/07
You still don't get it, Harry  Ed BottZDNet Moderator | 03/29/07
What I See  Harry Bardal | 03/29/07
Allow me Ed  Confused by religion | 03/29/07
Computer as Tool  Harry Bardal | 03/29/07
So I should tell everyone to just buy Macs?  Ed BottZDNet Moderator | 03/29/07
No I'm Not  Harry Bardal | 03/29/07
He has some good points, Harry  Tony Agudo | 03/29/07
Ah, I see where we differ, harry  Ed BottZDNet Moderator | 03/29/07
Whatever  Harry Bardal | 03/29/07
Harry don't stop now  klumper | 03/29/07
To rafterman  Hrothgar - PCLinuxOS User | 03/31/07
tHAT IS THE BEST ANSWER.  An_Axe_to_Grind | 03/31/07
Harry can't see  Freebird54 | 04/26/07
Time being spent != days being lost!!!  Confused by religion | 03/29/07
Harry's right of course  Mikael_z | 03/31/07
Good point # THANKS ED for saving us time  WiredGuy | 03/29/07
do you understand ANYTHING about the real world?  A.Lizard | 03/30/07
Nicely put  Ed BottZDNet Moderator | 03/29/07
You're shooting at the wrong target Harry.  bportlock | 03/29/07
Chicken and Egg  Harry Bardal | 03/29/07
Not an abstract vacuum  Ed BottZDNet Moderator | 03/29/07
Ed, ignore the fool.  linux for me | 03/29/07
Question  Harry Bardal | 03/29/07
Scrambled eggs and fried chicken  bportlock | 03/29/07
Thanks  Harry Bardal | 03/29/07
Re: Harry  bportlock | 03/30/07
That, and...  KWierso | 03/30/07
My point is, this is about productivity? We are served by logic. We send em  clockmendergb@... | 03/31/07
Inductive/Deductive  Harry Bardal | 03/29/07
Sounds like you should start your own blog  eb276 | 03/29/07
More Fun Here  Harry Bardal | 03/29/07
You would be welcome if  eb276 | 03/29/07
Re: More Fun Here  brble | 03/30/07
I doubt he could  Freebird54 | 04/26/07
Umm...  firehound | 03/29/07
Let's really be bold  DannyO_0x98 | 03/30/07
Productivity  Ed BottZDNet Moderator | 03/29/07
I Look Forward  Harry Bardal | 03/29/07
Message has been deleted.  Scrat | 03/30/07
I Look Forward  SO.CAL Guy | 03/30/07
You know what I see?  osreinstall | 03/30/07
Days of productivity?  jasonp@... | 03/30/07
Come on, at least be nice to Ed. He is trying out Linux. He may just find  DonnieBoy | 03/30/07
Re: Vista Hands On  none none | 03/29/07
Having fun with sudo  MisterMiester | 03/29/07
Thanks, just ordered it  Ed BottZDNet Moderator | 03/29/07
DON'T ORDER THAT BOOK!!  brittonv | 04/02/07
But I like books!  Ed BottZDNet Moderator | 04/02/07
Re: Having fun with sudo  none none | 03/29/07
Just to bypass sudo  MisterMiester | 03/29/07
Minor error on my part  MisterMiester | 03/29/07
Depends on the password  Freebird54 | 04/26/07
switch user with environment  cls@... | 03/30/07
More fun with sudo  chemist109 | 03/30/07
The easiest way: sudo su -  DonnieBoy | 03/30/07
Samba  xstep | 03/29/07
Ed - watch yourself with CUPS  bportlock | 03/29/07
Hmmm....Interesting.  linux for me | 03/29/07
Right  xstep | 03/29/07
I'm glad to see things are on the up....  bportlock | 03/29/07
I have a Samsung ML-1651N  Ed BottZDNet Moderator | 03/29/07
HPLIP utilities  Tony Agudo | 03/29/07
all in ones  tombalablomba | 04/01/07
Not watch yourself but..  xstep | 03/29/07
One more thing..  xstep | 03/29/07
Also..  firehound | 03/29/07
Lexmarks..  firehound | 03/29/07
Man  firehound | 03/29/07
Connecting to a linux share  ds15176 | 03/29/07
So Ed...  buzzl | 03/29/07
Too early to tell  Ed BottZDNet Moderator | 03/30/07
GNU/Linux has WAY more tools  MisterMiester | 03/30/07
You're proving my point  Ed BottZDNet Moderator | 03/30/07
Not sure about Ubuntu, but...  TripleII | 03/30/07
Agreed.  bportlock | 03/30/07
Pretty Sure Gparted is included.......  XJRider | 03/30/07
Ed - some points to be aware of  bportlock | 03/30/07
Proving your point?  markjensen | 03/30/07
No I did not Google for gparted  Ed BottZDNet Moderator | 03/30/07
That was not best advice...  markjensen | 03/30/07
Please read this entire thread  Ed BottZDNet Moderator | 03/30/07
Start of thread  Ed BottZDNet Moderator | 03/30/07
A point, not an agenda!  Patanjali | 03/30/07
More work than needed  Freebird54 | 03/30/07
I don't understand what the fuss is  MisterMiester | 03/30/07
Vista has partition management built in  Ed BottZDNet Moderator | 03/30/07
How was I supposed to know that?  Ed BottZDNet Moderator | 03/30/07
I apologize for not being more clear  MisterMiester | 03/30/07
Those problems are being worked on  Tony Agudo | 03/30/07
In fact, I don't think you were  TtfnJohn | 03/30/07
And in SuSE..  bportlock | 03/30/07
I run SuSE...  D-cat | 04/03/07
Strange.  Freebird54 | 04/26/07
You could install KDE easily...  Tony Agudo | 03/30/07
CUPS, like most Linux hardware  A.Lizard | 03/30/07
Webmin  stomfi@... | 03/30/07
To Harry and the other Mac rabid faithful...  Scrat | 03/30/07
Nice one! (nt)  bportlock | 03/30/07
It is hilarious  frgough | 03/30/07
This coming from a follower of the 'turtleneck'  Scrat | 03/30/07
if linux is a hot chick  nix_hed | 03/31/07
Shared environment is DUMB!  Narg | 03/30/07
????  79spitfire | 03/30/07
God I hope you are not a systems admin anywhere  Scrat | 03/30/07
This does not compute....kernel panic..bsod  TtfnJohn | 03/30/07
Wow  wolfsouls | 04/26/07
Shared Environments are for Transition  bcroner | 03/30/07
Ubuntu is different, not difficult  MisterMiester | 03/30/07
THE LINUX INSTALL IS TRIAL AND ERROR  BALTHOR | 03/30/07
You need to learn stuff before criticising  bportlock | 03/30/07
I really shouldn't but...  TtfnJohn | 03/30/07
STOP using MS and Vista AS THE STANDARD  zczc2311@... | 03/30/07
Well, right now, MS and Windows IS the standard. But, give Ed some time, he  DonnieBoy | 03/30/07
Ed, you need the awesome power of Linux!!!  MisterMiester | 03/30/07
Name one Donnie  TonyMcS | 04/01/07
gotta love contradictory logic...  Tony Agudo | 04/01/07
Easy as 1.2.3 AND I think its a bigyyyyyyyyyyyyyy  zczc2311@... | 04/05/07
Print to PDF by default  MisterMiester | 04/01/07
Too hard to just name one, more like hundreds  louis_b@... | 04/02/07
... but which standard of Vista?  MisterMiester | 03/31/07
Networking Trouble?  tschrock | 04/01/07
Too easy!!!  MisterMiester | 04/01/07
Samba Password  tracy anne | 04/01/07
Even more simple  MisterMiester | 04/02/07
Setup wasn't that hard in my case.  wolfsouls | 04/26/07
Connecting to an SMB share  IamGrant | 05/29/07
Using a Vista Maciune to access files on a smb with redhat  gcaines@... | 09/18/07
Using a Vista Maciune to access files on a smb with redhat  gcaines@... | 09/18/07

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

Click Here
advertisement

Recent Entries

Premier Vendor Content Whitepapers, webcasts & resources from our Power Center Sponsors
Microsoft Dynamics CRM Online - Free Six-Month Trial for Eligible Organizations
Microsoft Dynamics CRM Online provides fast online access, simple contact management and better sales performance for a low monthly cost - the best value on the market today.
Learn more about the free, six-month trial offer>>
Keep Up With The Latest In Document Management with The DocuMentor.
Doc delivers the scoop on today's enterprise content management, printer maintenance, and all other issues related to document management. It's the DocuMentor Blog.
Learn more >>
The best support in the Linux business
If Linux is going to power your mission-critical applications, you'd better have the best support known to business. Novell was rated the top provider of Linux technical support.
Learn more >>
Reduce risk. Reduce complexity. Increase reliability.
A simplified IT environment isn't just less complex. It's also more reliable. Standardize on a single Linux platform with SUSE Linux Enterprise from Novell, and get the world's most interoperable Linux
Learn more >>
The best support in the Linux business
If Linux is going to power your mission-critical applications, you'd better have the best support known to business. Novell was rated the top provider of Linux technical support.
Learn more >>
Learn more about tools to grow your business
The Business Essentials Guide provides you useful tools and templates to help grow your business and save you time with automated shipping solutions.
Save time with the UPS Business Essentials Guide
advertisement

Archives

ZDNet Blogs

White Papers, Webcasts, and Downloads

Enterprise Applications

  • Check out some of the easiest and most powerful ways to boost productivity while saving money on your application infrastructure. See ZDNet's comprehensive Enterprise Application resource center, now!
  • New Online Dashboard
  • Read about top issues IT decision-makers face every day, plus get cost effective solutions to real life IT problems. Oracle Topline