Virtual machine Linux installs Samba, implements and Windows share files

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.