Difference between revisions of "Samba"

From Noah.org
Jump to navigationJump to search
 
m
Line 1: Line 1:
 
+
[[Category:Engineering]]
 
== Mount a Windows share on Linux ==
 
== Mount a Windows share on Linux ==
 
The mount command supports smbfs. Use it.
 
The mount command supports smbfs. Use it.

Revision as of 17:09, 19 October 2006

Mount a Windows share on Linux

The mount command supports smbfs. Use it. Assuming you want to mount the folder \\server\SharedDocs. You'll need to resolve your Windows \\server name to an IP address. Assuming that \\server resolves to 192.168.2.4.

mkdir SharedDocs
sudo mount -t smbfs -o username=Guest //192.168.2.4/SharedDocs SharedDocs

Browse with smbclient

Don't put a trailing slash on the share name!

cmbclient -UGuest //192.168.2.4/SharedDocs