The Smaba service is similar to the use of sharing between network Places in Windows, when setting up shared resources on Windows, if Linux is required to install the Samba client package for clients, Linux can be accessed directly by Windows when the server is in service, easy to use .
" instance 1" windows do service Linux do client
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7F/8C/wKioL1ciWv7Ro9CXAABAkDMRDvc422.png "title=" Windows does the service. png "alt=" Wkiol1ciwv7ro9cxaabakdmrdvc422.png "/>
This instance may not be much, generally is the Linux service, the "instance" is mainly used in learning Linux is more convenient, because in the learning process will need to use a lot of software packages, how much is downloaded in Windows and then uploaded to Linux, Of course, if you know the link to each package, it's another matter.
1, set up a disk or a shared folder on the Windows system, set a access user and set a password
2. Install Samba-client on Linux system
3. Access shared resources for Windows
"Instance Step"
1. Create a user and set a password on a Windows system
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7F/8C/wKioL1ciYhvx1NsWAACoGP2T88I333.png "title=" Windows creates a user. png "alt=" Wkiol1ciyhvx1nswaacogp2t88i333.png "/>
2. Set the shared file source file, and allow WINSMB users to have access rights, customize
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7F/8C/wKioL1ciYtKz1tUQAAC9w_JT6ww700.png "title=" Shared files and permission definitions. png "alt=" Wkiol1ciytkz1tuqaac9w_jt6ww700.png "/>
3. Install Samba-client on Linux system
[[email protected] ~]# mkdir /media/cdrom //Creating a disc mount point [[Email protected] ~]# mount -r /dev/sr0 /media/cdrom/ //Mounting Disc [[email protected] ~]# cd /media/cdrom/packages/ //switch to the CD package directory [[ email protected] packages]# ls samba-client* //List of eligible packages samba-client-3.6.23-20.el6.x86_64.rpm[[email protected] packages]# rpm -vih samba-client-3.6.23-20.el6.x86_64.rpm //Installing Samba client software Warning: samba-client-3.6.23-20.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key id c105b9de: nokeypreparing... ########################################### [100%] package samba-client-0:3.6.23-20.el6.x86_64 is already installed //Installation Complete [[email protected] packages]# smbclient -l 192.168.0.19 -u winsmb // View a shared resource enter winsmb ' s password: in the host //Enter the WINSMB password that has been set Domain=[cutfor] os =[windows 7 ultimate 7601 service pack 1] server=[windows 7 ultimate 6.1] sharename Type Comment --- ------ ---- ------- IPC$ IPC sources Disk //source shared Resources VM12 Disk [[email protected] packages]# smbclient // 192.168.0.19/sources -u winsmb //access to shared resources ENTER WINSMB ' s password: //need to enter a password in order to Domain=[cutfor] os=[windows 7 ultimate 7601 service pack 1] server=[windows 7 ultimate 6.1]smb: \> ls //View related commands used directly enter help . D 0 Wed Mar 30 09:52:13 2016 &NBSP, .... D 0 Wed Mar 30 09:52:13 2016 ansible d 0 Tue Dec 15 15:58:23 2015 atlas d 0 tue dec 15 15:58:23 2015 busybox d 0 tue dec 15 15:59:09 2015 crmsh d 0 tue dec 15 15:57:36 2015 drbd D 0 Tue Dec 15 15:57:26 2015 dropbear d 0 tue dec 15 15:58:06 2015 drupal d 0 tue dec 15 15:59:13 2015 functions a 4183 tue Dec 15 13:44:39 2015 hadoop d 0 tue dec 15 15:57:09 2015 ..............................//file Too many smb: \> ls a* //List matching files ansible D 0   tue dec 15 15:58:23 2015 atlas D 0 Tue Dec 15 15:58:23 2015 38748 blocks of size 8388608. 20921 blocks availablesmb: \ > cd ansible\ // Switch to the Ansible directory smb: \ansible\> ls //Displays the list under this directory . d 0 tue dec 15 15:58:23 2015 &NBSP, .... D 0 Tue Dec 15 15:58:23 2015 ansible-1.5.4-1.el6.src.rpm a 547526 Tue Dec 15 15:58:23 2015 ansible-1.5.4.tar.gz A 543374 Tue Dec 15 15:58:23 2015 38748 blocks of size 8388608. 20921 blocks availablesmb: \ansible\> get ansible-1.5.4-1.el6.src.rpm // Download the specified file to local, default home directory getting file \ansible\ansible-1.5.4-1.el6.src.rpm of size 547526 as ansible-1.5.4-1.el6.src.rpm (6007.8 kilobytes/sec) (average 6007.8 kilobytes/ SEC) smb: \ansible\> exit //out of the remote Samba service [[email protected] ~]# ls //Verify whether the download succeeded//has been downloaded anaconda-ks.cfg ansible-1.5.4-1.el6.src.rpm install.log install.log.syslog This is already available, only the shared resource is not closed, all related software can be used from Windows to Linux
4. You can create a mount point in a Linux system for easier use
[[email protected] ~]# mkdir /winsmbshare[[email protected] ~]# mount -t cifs //192.168.0.19/sources /winsmbshare/ -o username=winsmb Password: [[email protected] ~]# cd /winsmbshare/[[email protected] winsmbshare]# lsmagento dropbear httpd loganalyzer mogilefs openvswitch tsaransible drupal iptables lxc mylvmbackup pcs uwsgiatlas functions jsp webapp mariadb mysql python wubi inputbusybox hadoop keepalived memcached mysqldumper redis zabbixcrmsh heartbeat2 kernel memcached-session-manager nginx rockmongo zabbix_windows_agentdrbd heartbeat3 libevent mfs &nbsP; openvpn storm
This article is from the "Perthon" blog, make sure to keep this source http://perthon.blog.51cto.com/10484057/1768863
Linux service Management (1)---The windows_s of samba shared services