Easily deal with the samba service-the simplest way to share Windows and linux Files

Source: Internet
Author: User

Easily deal with the samba service-the simplest way to share Windows and linux Files

1. Windows accesses the linux shared folder

-- Enable the smb service after samba is installed through yum

# Yum install samba

# Service smb start

-- Add users accessing shared files to the samba Database

# Smbpasswd-a root user add the System user root to the Samba user database
New SMB password: Login enter the password used by the user to log on to Samba
Retype new SMB password: Confirm again to enter the password
Added user centospub.

-- Modify/etc/samba/smb. conf to share all files. The configuration is 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 \ 192.168.1.2 (centos Host IP address) under the win host (run) and enter the correct user name and password to access the files shared by the host.

Remember to disable selinux: setenforce 0.

Related Article

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.