MiracleLinux9.2 ; FTP Server , Samba File Server

1.FTP Server Installation

1. 1 Vsftpd Install

version check

1.2 Configuring vsftpd

Save the unedited vsftpd.conf with .bak

Edit the configuration file

②Add a user to allow access to the directory to the upper level.

In my case, I wrote huong.

③ Specify the IP address to allow connections in /etc/hosts.allow

192.168.11.0/24 is the setting that allows all local IP addresses in my environment.

Write vsftpd:ALL (deny all connections) in /etc/hosts.deny

This setting takes precedence over hosts.allow.
This means that everything will be rejected and the IP address specified in hosts.allow will be allowed

④Enable and start vsftpd with auto-start enabled

⑤From the windows side, check if you can connect with FileZilla.
Open the ftp port with firewall before connecting

Launch FileZilla and select "Site Manager" from the "File" menu.

Click "New Site"

fill in the fields as follows, and click "Connect".
Protocol : FTP-File Transfer Protocol
Host : IP address of the server
Poer :  <blank space>
logon Type : Ask for  password
User : General user name (server login user)

Set the login user's password in the "Password" field and click "OK".

If the connection is successful, the server directory will be displayed on the right side and the Windows directory on the left side.

2. vsftpd SSL/TLS

Configure Vsftpd to work with SSL/TLS

2.1 Create a self-signed certificate.

This step is not necessary if you use a trusted, legitimate certificate such as Let's Encrypt.

2.2 Configure Vsftpd

If Firewalld is enabled, allow passive ports

When you connect to FileZilla, the following screen will appear, check the box and click "OK" to connect as before

3.Samba : File Server

Build a file server with access rights that requires user authentication with Samba.
Installation Procedure
①Create shared folders with access rights that require user authentication
②Accessible group creation
③Creation of users belonging to accessible groups
④Configuration File Edit

3.1 samba install

3.2 Create a shared folder (smbshare)

3.3 Accessible group (smbgroup) creation

3.4 Configuration File Edit

3.5 SMB Restart

3.6 User (smbuser) registration, password setting, group registration

3.7 Firewalld allows Samba services

3.8 Accessing shared directories from Windows 11

Open File Explorer and enter "\\<server IP address>" (in this case 192.168.11.83) in the address field.
Access the server.

Enter authentication information
User name : User name created in "3.6 User (smbuser) Registration, Password Setting, Group Registration
Password   : Password for the above user
Click "OK"

Shared directory information is displayed.

Copied title and URL