How to share Windows to Linux (mount Windows share)


1) Create the Windows share on the Windows box.

2) Log into linux as root. Then type “smbclient -L

You’ll get some output like this:

# smbclient -L 10.16.8.210

added interface ip=10.16.80.1 bcast=10.16.95.255 nmask=255.255.240.0

Password:

Anonymous login successful

Domain=[OFFICE] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename Type Comment

——— —- ——-

IPC$ IPC Remote IPC

print$ Disk Printer Drivers

shareddocs Disk

tmp Disk Temporary file space

3) With this, you’ll have the share names.

4) To mount, you can run:

mount -t smbfs -o username=nobody,password=”" //10.16.8.210/tmp /mnt

5) ls -l /mnt

You should see the files there.]]>

Tags: ,

Leave a Reply