2018年3月6日 星期二

[Archlinux] How to use cifs to mount samba server

Show remote samba server
[happy@archlinux tmp]$ smbclient -L 111.2.1.204
Enter WORKGROUP\happy's password:

 Sharename       Type      Comment
 ---------       ----      -------
 print$          Disk      Printer Drivers
 home            Disk
 happy           Disk
 IPC$            IPC       IPC Service (Samba Server 4.3.9-Ubuntu)
Reconnecting with SMB1 for workgroup listing.

 Server               Comment
 ---------            -------

 Workgroup            Master
 ---------            -------
 WORKGROUP            USER-VIRTUALBOX

Use following command to find uid & gid
id -u <user>
id -g <user>

Start to mount remote samba folde

[happy@archlinux tmp]$ sudo mount -t cifs //111.2.1.204/happy /tmp/bbbb/ -o user=happy,password=happy,uid=1000,gid=1000,ip=88.8.8.14,iocharset=utf8

Ref:

0 意見:

張貼留言