The construction of Smba server and the use of the client in Linux

Source: Internet
Author: User

I am just a beginner, in the process of configuration Smba encountered a lot of problems, the online tutorial is not too full, so, write a complete article here, convenient for everyone to use.


1, first in the addition of the Software library to find the SMB related services, installation, generally automatic installation.


2. Click application----> System Tools-------> Terminal, (English: application------->system---->terminal), use Su to power to root administrator.

[[email protected] Morningsun] #出现 #, under the root authority.

3, modify the Smba configuration file, enter the Cd/etc/samba into the directory, and then find the configuration file.


4, open the configuration file with Vim smb.conf, before this, make sure to backup the configuration file, just in case.

5, the configuration file content as follows: (here is configured to not enter the password, if you need to login, you can search the Internet, a lot)

Specify location modification:[Global]
Security=share

at the end of the file, add the following:

[MyWeb]
Path =/var/www/html
Comment = FSD
Public =yes
writable = yes
browseable = yes

path for the shared paths, comment for open content, arbitrary, the rest is easy to read and not described.

Then put a line of security under standalone Server Options and change to Security=share

Save the file and exit.

6. Back to the terminal, enter service SMB Start services, then service SMB status to view the running status and continue without problems.

7, to the SELinux modification, generally to terminate this service, operation as follows:

view selinux Status:

1,/usr/sbin/sestatus-v      # #如果SELinux The status parameter is enabled and is turned on

selinux Status:                 Enabled

2, Getenforce                 # # You can also use this command to check the

off SELinux:

/blockquote>

1, temporary shutdown (without restarting the machine):

setenforce 0                 and nbsp;# #设置SELinux become permissive mode

                    and nbsp         # #setenforce 1 set SELinux to become enforcing mode

2, modifying the configuration file requires restarting the machine:

modify/etc/selinux/config file

change selinux=enforcing to selinux=disabled

Restart the machine

8, under Window, ctrl+r Open the Run box, enter \\192.168.*.* (here is the address of your virtual machine, you can use the command: Ifconfig view. The virtual machine catalog can be shared, and the entire installation process is complete.

@author: Zhaohao

@name: A Distant star


The construction of Smba server and the use of the client in Linux

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.