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.