How does a Linux system set up a shared file server?

Source: Internet
Author: User

Liunx the server used by the shared file server is samba, so the Linux shared server is the samba server;

1, need to check whether the Linux has been installed samba; Check the command for: Rpm–qa |grep Samba; If there is no output of any information, indicating that there is no installation, need to download the installation of Baidu, download the following:

2, the following can see my Linux system has installed Samba, you can proceed to the next step;

3, the establishment of shared folders, commands are as follows: Mkdir/home/fileshare;

4, the following figure, has established a good folder;

5, set the folder permissions, commands are as follows: Chmod 755 fileshare;

6, the establishment of samba users;

Copy Content to Clipboard

Groupadd FileShare

Useradd–s/sbin/nologin file

Smbpasswd–a file

Note: Users accessing the share must be Samba users and cannot use other users;

7, modify the Sambe configuration file, the order is as follows:

vim/etc/samba/smb.conf;

8

Modify the Samba configuration file global settings;

Copy Content to Clipboard

#==============================global settings===============

[Global] Workgroup = Workgroup Server string = Samba Server Security = Share

9, set up folder sharing, as follows:

[Sharefile] Path =/home/sharefile Public = yes Read Only = yes

10, restart the SMB service;

Service SMB Restart;

11. Windows access Sharing was successful. As follows:

12, Linux shared server perfect set up, next time will continue to share Linux and other experience.

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.