Click to See Complete Forum and Search --> : mounting files over the network


Newbie Dave
09-22-2002, 12:54 PM
i was wondering how you mount files on other peoples computers over a lan. I have samba, and LinNeighborhood so i can do it, i was just wondering for posterity's sake how to do it via the command prompt, ie: what are the commands

Bokkenka
09-22-2002, 03:09 PM
If they are running some version of Windows, or have Samba running, and you know their IP or computername, information which you can find out through LinNeighborhood, then you can do it with the smb* commands.

First, is smbclient. Run the command...

smbclient -L //server

...substituting the "server" with either the IP address of computername, and it will tell you what shares are available of the "server" computer.

You can then mount those shares with a modified mount command...

mount -t smbfs //server/share /mnt/dir

Again, substitute the "server" with the IP or computername, the "share" with the shared directory, and the "/mnt/dir" with whatever directory you want on your system.

You can also find out what computers are available on your network with the nmap command...

nmap -sT -PT 192.168.0.*

...substituting whatever IP range your network is using. Be sure to make the fourth number an asterisk to search all possible numbers 0-255.