Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-18-2009, 05:31 PM   #1
LQ Newbie
Registered: Feb 2009
Posts: 21

Rep: Reputation: 1
Connecting to Windows drives from LINUX

This is my first post to this group.
In our office all the file servers are Windows Server 2003. I need to connect to one of these drives from a LIUNX RH4 computer, which is on the domain. Please offer advice on how I can access these drives.
thanks, Fabrizio Zanella
Old 03-18-2009, 05:51 PM   #2
Registered: Mar 2009
Distribution: Debian,Centos
Posts: 30

Rep: Reputation: 16
Hello Fabrizio,

Your best shot is at using samba.

When you say RH4 you really mean RHEL4 right?

I think RHEL4 has a utility called
that will help you get it done using a GUI.
Old 03-18-2009, 07:06 PM   #3
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,799
Blog Entries: 4

Rep: Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081
Samba is a suite of Windows networking packages that allows Linux to participate in a Windows network (as a "client"), and/or to share its own printer and/or disk resources with such a network. It even allows Linux systems to act as domain-controllers.

I cordially suggest that you begin by following this link so that you can better understand what Samba can do for you.

Chances are, Samba is already installed on your system. It's free, of course...
Old 03-18-2009, 07:32 PM   #4
Registered: Dec 2003
Posts: 97

Rep: Reputation: 35
What you appear to want to do is to mount a Windows network share so it is available on your Linux system. You will need the samba package for the cifs mount.

One of the easiest methods is to install autofs then edit (as root) /etc/auto.master to uncomment the smb line. If the windows shares are protected, you can create a credentials file with three lines: "username=user name", "password=password", and "domain=workgroup domain" (substitude appropriately) - if you name it /etc/auto.smb.hostname (hostname is the name of the computer with the shares), then the autofs system will use it as is. Do all this and you can 'ls /smb/hostname' to see the shares. (as always, restart the service after changing the config files)

Or, you can create a mount point and then run the command (as root)

mount.cifs //host/sharename mountpoint -o user=domain/user%password,noperm,file_mode=0666,dir_mode=0777,nounix
or you can do the equivalent in /etc/fstab

the noperm, nounix, and such truck are for the case you have trouble with permissions and timestamps and other wierdness. sometimes they help/

Last edited by bryanl; 03-18-2009 at 07:34 PM.
Old 03-19-2009, 02:36 PM   #5
LQ Newbie
Registered: Feb 2009
Posts: 21

Original Poster
Rep: Reputation: 1
Connecting to Windows drives from LINUX

Thank you everyone for the helpful comments. I downloaded Samba 3.3.2 from the site and unzipped the .tar.gz file. Now I cannot determine how to install this tool. I copied the samba files to the /usr directory. What command can I run to install the samba tool? I see information on configuring it.
Old 03-19-2009, 07:38 PM   #6
Registered: Mar 2009
Distribution: Fedora, Slackware
Posts: 104

Rep: Reputation: 21
See the O'Reilly (publisher) Samba book on It freely available, o price can't be a matter. I have found it sufficient to set up samba in office environments.

Linux Archive

Last edited by JaksoDebr; 04-02-2009 at 05:57 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
connecting windows 98 to linux wildeboer Linux - Networking 2 04-18-2005 12:40 PM
Connecting Windows XP to Linux bsengland Linux - Networking 2 12-16-2004 12:17 PM
Partitioning drives to split Linux and windows with windows already on computer. linuxnoub Linux - Hardware 5 10-16-2003 01:21 AM
Connecting Windows XP to linux shibdas Linux - Networking 1 07-05-2003 02:49 PM
Connecting Windows and Linux Joe Soap Linux - Newbie 4 02-20-2002 02:56 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration