Make sure to get the most up-to-date version of SAMBA and the SAMBA
clients.

I was doing this and getting wicked file locking problems until I
updated to something in the 2.2 (I think) series.

But once you get samba, make a folder somewhere
/mnt/NT/

mount -t smb -o username=USER,password=PASSWORD //SERVER/SHARE  /mnt/NT

then you can use the standard lredir (umm.. for readability, LREDIR all
lower case) once you're in DOS
lredir linux/fs/mnt/NT d:

You're going to have to fiddle with the 'mount -t smb' command.  It
seems like every time I go to do it, they've changed the syntax.  Here
are the places where I've found help using that in the past:
man mount
/sbin/mount.smbfs --help

Also, if you're Linux box can't resolve the server's hostname, you need
to get that working.  For example, if ping SERVER doesn't work, you
better put the server's name/ip in the /etc/hosts file or fix your name
resolution.  This problem will cause you no end of grief if you have it.

/sbin/mount.smbfs mentions an option "credentials" that can store the
username and password in a file.  This is nice if you want to mount the
share automatically.  I haven't used it, but you could create the file
(for example) /etc/.NTcredentials, do chmod a-rw /etc/.NTcredentials so
no one can read it, then use this instead of specifying
username=USER,password=PASSWORD which can be read via the process list.

I hope this helps, if not email me and I'll try to help more.

Matthew Nuzum
followers.net <http://www.followers.net> 


> Hi,
> is there any way for a dos program runing under dosemu to access a
file on a 
> shared drive in an NT server?
> Please, reply to <[EMAIL PROTECTED]>.
> Many thanks in advance,
> angico.
> -
BEGIN:VCARD
VERSION:2.1
N:Nuzum;Matthew
FN:Matthew Nuzum
ORG:Followers.Net, Inc.
TEL;WORK;FAX:(520) 244-3784
URL;WORK:http://www.followers.net
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20010705T231733Z
END:VCARD

Reply via email to