Easily take care of samba services-the simplest window and Linux file sharing methods

Source: Internet
Author: User

1. Win access to the Linux shared folder

--After installing samba through Yum, turn on SMB service

# Yum Install Samba

# service SMB Start

--add access to the shared files user to the Samba database

# smbpasswd-a root← Add the system user root to the Samba user database
New SMB password:← Enter the password that the user uses to log in to Samba
Retype new SMB password:← confirm entering this password again
Added user centospub.

--Modify/etc/samba/smb.conf, share all files, configure as follows

--Add the following code at the end of the file:

[Share]
Comment = Shared Folder with username and password
Path =/Home
writable = yes
Valid users = root
Create mask = 0700
Directory mask = 0700
browseable = yes

--After modification, enter the \\192.168.1.2 (CentOS host IP) under the win host and enter the correct username and password to access the shared files.



Be sure to remember, turn off Selinux:setenforce 0

Easily take care of samba services-the simplest window and Linux file sharing methods

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.