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

  
Liunx shared file server uses samba, so the linux shared server is to set up the samba server;
1, need to check whether linux has installed samba; check the command is: rpm – qa | Grep samba; If there is no output, it means there is no installation, you need to download and install to Baidu, download as follows:
2, the following can see my linux system has samba installed, you can proceed to the next step;
3, build Shared folder, the command is as follows: Mkdir /home/fileshare; as shown below:
4, as shown below, the folder has been created;
5, set the folder permissions, the command is as follows: Chmod 755 fileshare;
6, create a samba user;
copy content to the clipboard
Groupadd fileshare
Useradd –s /sbin/nologin file
Smbpasswd –a file
Note: users who access the share must For samba users, you cannot use other users;
7. Modify the sambe configuration file; the command is as follows:
Vim /etc/samba/smb.conf;
8
Modify the global settings of the samba configuration file; Br> Copy content to clipboard
#===================================================================================== ========
Copyright © Windows knowledge All Rights Reserved