The premise: the virtual machine and the host mutual ping, can ping through
Two install Samba
(1) Rpm-qa | grep Samba queries whether the program is installed. By default, some samba is installed on the virtual machine.
(2) Uninstall some of the already installed Samba
Rpm-e xxx-f--nodeps; XXX is the name of the samba you just found, check multiple, execute multiple commands
(3) Installation
There are other installation methods on the Web, I am, searching for samba in filesystem, find three installation files rpm, double-click Install.
Use the root account do not know how to find these three files, you must use a regular account to find
(4) Configuring Samba
# vim/etc/samba/samba.conf Open configuration file, ready to configure
[Global]
Workgroup=linux
NetBIOS Name=linux
Server string=xxx
Security=share
[Share]
Path=/share
Writeable=yes
Browseable=yes
Guest Ok=yes
Public =yes
[Java]
Path=/java
Writeable=yes
Browseable=yes
Guest Ok=yes
Public=yes
Description: The secondary configuration file is configured with two shared folders. Path=/share,share is one of the shared folders.
Detailed parameter description, can access http://www.cnblogs.com/whiteyun/archive/2011/05/27/2059670.html
(5) Grant access to shared files
# Chown-r Nobody:nobody/share
#chown-R Nobody:nobody/java
(6) Start Samba
# Service Samba Start
(7) test
Enter \ \ virtual machine IP in window run, you will see two shared directories Java and share.
When the access error occurs, turn off the host firewall and the virtual machine Firewall (# service iptables stop) and SELinux status (#setenfortce 0) and try again.
Virtual machine Linux installs Samba, implements and Windows share files