Simple sharing between Linux and Windows (Samba)

Source: Internet
Author: User
Linux and Windows Samba-Linux Enterprise Application-Linux server application information. For more information, see the following section. In the company's Lan, files are frequently exchanged, because my common system is linux. If it is better to transmit small files, you can send them via internal emails, if you use large files, this method is clumsy. Therefore, you can install the Samba service to share files between windows and linux.

Sudo apt-get install samba
Sudo apt-get install smbfs

Set access account
Add a system account as a samba user

Sudo smbpasswd-a system_username
Sudo gedit/etc/samba/smbusers

Add in the created smbusers File
System_username = "network username"

Configuration File Modification
Sudo cp/etc/samba/smb. conf/etc/samba/smb. conf_backup
Sudo gedit/etc/samba/smb. conf

Search for this line of text
...
; Security = user
...

Replace the following rows
Security = user
Username map =/etc/samba/smbusers

Remarks
Edit the account password of a network user

Sudo smbpasswd-a system_username

Delete an account of a network user

Sudo smbpasswd-x system_username

Restart the Samba Service

Sudo/etc/init. d/samba restart

Complete the task.
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.