Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to map drive to Linux Server from a Windows 2003 Server 1

Status
Not open for further replies.

ScottCGI

IS-IT--Management
Dec 20, 2004
141
US
First off, let me say I know very little about linux! We have a brand new linux server with RedHat Enterprise ES 3.0 Standard Edition on it. I figured out how to map a drive from the linux server to my 2003 server but now I need to map a drive from the 2003 server to my linux box. From looking around on the internet it appears there is a .conf file on the linux server that needs to be edited to do this? Or is there a different way to do it?

Scott
 
It's Samba you're looking for (which has its own forum here). If you want to share a Linux directory so that Windows clients can use it, you will have to edit /etc/samba/smb.conf accordingly (or use a suitable GUI front-end). If you want to share a Windows directory so that it can be used by Linux programs, you would use the "smbmount" command to mount the share, and "umount" when you're finished with it.
 
You also might look into MS' services for UNIX.



BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
To use a windows share locally on the linux machine look into smbmount - man smbmount for information including the credentials options.
 
ok, i've learned a bit but i'm still stuck. i'm using the following commands to map a drive from my linux server to my windows 2003 file server:

smbmount

mount -t ntfs -o username=____,password=________ //servername/shared files


it's telling me the mount point files do not exist. what am i missing? do i need to do anything on my windows server? do i need to indicate the domain name is this command??

 
This works on one of our LINUX ES4 boxes. In our case, the Windows box is running in an NT4-based Domain, not Active Directory.


Check on using mount.cifs on the *NIX side.
Code:
/sbin/mount.cifs //WINSERVER/SHARE /windir -o user=administrator password=goodpasswd
I don't know how this will play with file ownership and permissions. The mount-point (/windir in this example) should already exist.


"Proof that there is intelligent life in Oregon. Well, Life anyway.
 
smbmount {service} {mount-point} [-o options] so something like:
smbmount //servername/share /mnt/srvr -o username=________ password=_________
should work
 
Don't you also need to create a mount point on the linux server (if there isn't one already)?

for the last example...

mkdir /mnt/srvr
 
man, i am dangerously close. i did create a mount point, thanx for the reminder. but i am getting "could not resolve mount point files" so no luck yet. this is a shared folder i'm trying to get to. do i need to include "ntfs" anywhere in this command so it knows the file system?
 
This might be of some help. I dual boot my computer and I need to add the following line to fstab in order to access my windows partition...

Code:
/dev/hda1 /media/windows ntfs nls=utf8,umask=0222 0 0

Maybe you need to add something like that to your smb.conf file - please keep in mind that I'm really just guessing here as I haven't done this before.
 
yeah, i'm in new territory here myself for sure! someone earlier mentioned editing the smb.conf file if i have windows users that need to see my linux box. but, all i really need is to see the shared drive on my file server from the linux box.
 
ok... after trying:

mount -t smbfs //servername/share mnt/____ -o username=____,password=____

I get:

cli_negprot: SMB signing is mandatory and we have disabled it.
2755: protocol negotiation failed
SMB connection failed


any thoughts??

 
That looks right, but this as well as others seems to indicate that you'll have to use cifs instead of smbfs
 
Yep, you were right.... I had to use cifs. Not only that, but I had to create a new share name for the Windows folder that I was trying to mount. Not sure why the original one didn't work because everyone has full access to it?! Strange, but I finally got it. Thanks for your help.

 
Well, I have a new problem regarding this thread. Apparently we are not able to write to this mounted drive. When I type "mount" it lists the drive as rw however which tells me we should have read-write access to it. So, what am I missing???

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top