Sharing Windows-hosted network drive with CentOS Linux

Posted on 2009-05-20
Medium Priority
Last Modified: 2012-05-07
I have a Windows file server with multiple shared drives, NTFS formatted. I need the Linux servers I have (all running CentOS 5) to be able to connect-to and access data on the Windows file shares.

Does anyone know how I can go about doing this?

Both the Windows and Linux servers have no LDAP authentication happening at present. The Windows Server is powered by SBS 2008, so I'm assuming the Linux server will need to authenticate with the Windows AD before it can connect to the share? If so, how can I go about doing this too please?

Any help appreciated. Thanks in advance.
Question by:DReade83
LVL 88

Accepted Solution

rindi earned 2000 total points
ID: 24431056
First of all install at least the samba client on your Linux PC's, then create the mount points for the shared windows drives and try mounting them using the following syntax:

mount -t cifs -o username=YourWindowsUserName,password=Password /YourMountPoint //IPOfServer/ShareName

Replace YourWindowsUserName with your user account on the windows server, and Password with your password, and IPOfServer/Sharename with the IP of the windows server that is hosting the share, along with the name you gave the share.

Author Closing Comment

ID: 31583467
Thanks! :-)

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
Microsoft Jet database engine errors can crop up out of nowhere to disrupt the working of the Exchange server. Decoding why a particular error occurs goes a long way in determining the right solution for it.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question