Click to See Complete Forum and Search --> : Accessing windows2000 files from linux machine


tomgreg2002
12-15-2002, 12:15 AM
Hello folks.......perhaps an easy question but I am confused....

I have connected my windows 2000 machine and my suse 7 machine via a crossover cable. Successfully setup samba on my linux machine and can access files from windows. Can access the samba share and edit files...But how do i access the windows files from linux..? Am i missing something simple here? Could not find what i was looking for (I think) in the Suse manual. My machines are named as below.....

Windows 2000, buckeye, 192.168.22.5
Suse linux, archimedes, 192.168.22.1

Any ideas? Any and all suggestion would be greatly appreciated!!
Thanks.....----Thomas

pauper
12-15-2002, 03:53 PM
With samba running, the W2k box can acces the linux shares without problem. To go the other way, you have to invoke samba to translate for you.

Since you are crossover connected and not exposed to a network, I'll assume the guest account is open on the windows box:

smbclient //192.168.22.5/sharename

This will get you to a samba prompt
smb: \>

This is similar to an FTP session, you can use get, put, ls, etc.
use HELP for the available commands.

If the guest account isn't open and you need to use a username, append -u username after the sharename in the smbclient command and it will prompt you for the password.

Hope that helps!!

klnyc
12-15-2002, 07:11 PM
So I read alot of horror stories installing Samab 2.2.x. Man I want to install this beast too, but since Im only 4 days new with Linux, I may hold off till a month of so until I fully understand this *Nix thing.

Btw, I work as Sys Admin, but we deal with Netware and Windows only. Maybe I'll tell my controller to roll over to Linux eh?

Anyway good luck with Samba.

wapcaplet
12-15-2002, 07:21 PM
If pauper's suggestion for using smbclient works, you can then set up a mount point for it. Add to your /etc/fstab:

//computer/share /mnt/winbox smbfs user,guest,rw

Read the mount manpage for details, since you may need to do some tweaking. 'guest' tells is you don't need a login, but this can be insecure depending on your network setup.

tomgreg2002
12-15-2002, 07:37 PM
Pauper.....yes, your suggestion worked I was able to successfully access with the smbclient.....Thanks.....


Wapcaplet...I will try your mount suggestion and let you know...
security is not an issue at the moment...just playing around trying to teach myself this stuff....

klnyc.....actually the install wasn't too bad. Did manage to get the most basic setup going pretty quickly. For a real sys admin situation of course it gets much more complicated....I have not yet venture here..but good luck.

LinuxDummy
12-17-2002, 02:47 PM
You can also use:

mount -t smbfs -o username=username,password=password //Windows/share /mnt/mountonlinux

This works great for me. Then once you save it, they will mount up for you.

You need to ensure that you have Samba client installed though. One way to check to see if you have it installed type in the following command at a prompt:

# smbmount

Also, in order to use mount command, you need to be logged in under "root" account.

Good luck!