Click to See Complete Forum and Search --> : How do I map a drive on a win2k box?
DocKirk
04-26-2002, 09:29 PM
I have RH7.2 installed on on e box and win2k on another.
Setup:
Linksys Router with static IP on both boxes and I want to get files or share files that are on the Win2k box and vice versa.
please assist
Thanks
Radar
04-27-2002, 12:21 PM
Samba (http://www.samba.org)
hanzerik
04-27-2002, 08:46 PM
windows to linux, this is what i use to connect to a linux samba server with security set to share:
start/run net use s: \\linuxsambaserver\sharename
linux to windows:
mount -t smbfs -o username=<username> //hostname/sharename /windows/mount/point for this to work you will need the smbfs module loaded or build support for smbfs into the kernel
do a man on smbclient, smbmount, smbd, and read up on samba www.samba.org (http://www.samba.org)
[ 27 April 2002: Message edited by: hanzerik ]
DocKirk
04-27-2002, 09:26 PM
Thanks a lot guys I ll do it and let ya know
roadtrip
04-27-2002, 09:53 PM
You should be able just to enter the command:
[you@yourmachine you]$ smbmount //w2kmachinename/sharename /mnt/disk
as yourself, not root to connect to the windows box.
This would mount the windows share at /mnt/disk on the linux box.
If you want to see the shares available on the windows box (or just see if you are reaching the windows box) at the prompt enter:
[you@yourmachine you]$ smbclient -L //w2kmachinename
or to see the shares on your local machine use:
[you@yourmachine you]$ smbclient -L //localhost
[ 27 April 2002: Message edited by: roadtrip ]
DocKirk
04-27-2002, 10:17 PM
Thank you
Nivuahc
05-03-2002, 11:38 AM
I tried this and I get this message:
tdb((null)): tdb_open_ex: could not open file /var/cache/samba/unexpected.tdb: No such file or directory
tdb((null)): tdb_open_ex: could not open file /var/cache/samba/unexpected.tdb: No such file or directory
tdb((null)): tdb_open_ex: could not open file /var/cache/samba/unexpected.tdb: No such file or directory
Password:
cannot mount on /mnt/disk: Operation not permitted
smbmnt failed: 1
What am I doing wrong? (yeah, I typed in the password correctly)
msalerno
05-03-2002, 12:19 PM
Just make sure that /var/cache/samba exists then do
touch /var/cache/samba/unexpected.tdb
Lorithar
05-04-2002, 12:09 AM
Nivuahc
cannot mount on /mnt/disk: Operation not permitted
smbmnt failed:
You do not have permission to use the command 'mount' with this user ... to that mount point. try to do this as root.
afterwards, check persmissions for the user that failed.