It’s just yulistic!

[Mint Linux] Samba client connection to Windows samba server

· by yulistic · Read in about 1 min · (144 Words)
mint linux samba samba client

Problem: I want to connect to samba server (windows machine) from linux machine.

Solution: use smbclient.

1. Check the available samba folder in samba server machine.

smbclient -L //[url of samba server or ip address]/

Find the sharename that is used as samba share folder.

2. Connect to the samba folder.

smbclient //[url of samba server or ip address]/[shared folder]_ -U [username]_

If connected successfully, terminal shows as below.


Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.7]

smb: >

3. If you want to mount remote samba folder to local directory, use following command.

sudo mount -t cifs //[url of samba server or ip address]/[shared folder] [local directory path]_ -o username=[username],password=_[password]

4. You can make samba folder mounted automatically when system starts, by adding following line to /etc/fstab .

//[url of samba server or ip address]/[shared folder]  [local directory path] cifs username=[username],password=[password]_,iocharset=utf8   _0   0

(iocharset=utf8 is an option.)

Comments