Linux mapping Windows shared folders

Because the project needs, need to access Windows files on Linux, so do some practice.

 

1. Before mounting the source index updated by instruction, to avoid failure of the installation Samba.

sudo apt-get update

2. Install Samba

sudo apt-get install smbclient

3. After the successful installation of Samba, view shared

smbclient -L [IP Address] -U [username] -W [user domain]

4. Create a mount directory (-p create a directory in the current directory recursively)

sudo mkdir -p /mnt/share

Mapping instruction under 5.Linux

sudo mount -t cifs -o username=user,password=123 //192.168.1.2/share /mnt/share

5.1 does not support cifs, need to install cifs (Common Internet File System)

apt-get install cifs-utils

6. View the map which cifs file system currently has.

mount -t cifs

Guess you like

Origin www.cnblogs.com/vinsonhwj/p/12616888.html