Linux tip: mounting windows shares

Firewalls, routers, servers, switches, SANs, PBXes, security and related topics
Locked
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Linux tip: mounting windows shares

Post by Red Squirrel »

You must have smbclient installed (comes with samba, I believe)

Create a folder of choice where you want it to be mounted. I chose /mounts/mypc.

Then execute this command:

smbmount "//tim-ns-7fwhk11/c$" "/mounts/mypc" -o username=Administrator

Notice that I used // and not \.

Also, if you don't want it to prompt for the password, run it like this:

smbmount "//tim-ns-7fwhk11/c$" "/mounts/mypc" -o username=Administrator,password=secret

Type smbmount to see more options.

Archived topic from Iceteks, old topic ID:3592, old post ID:29247
Honk if you love Jesus, text if you want to meet Him!
Locked