Click here for "Error Codes for Commercial Air Conditioners".

MiracleLinux9.0 : FTP Server , Samba File Server

1.FTP Server Installation

1. 1 Install vsftpd

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.

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

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

If you see #, you're good to go.

⑤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".
Click "OK" when the following screen appears
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.7Firewalld allows Samba services

3.8 Accessing shared directories from Windows 11

①Enable SMB1.0/CIFS in Windows as a preliminary preparation
To enable it, open "Moe Windows features" at the bottom of "Apps" and "Optional features" in the "Settings" menu of Windows, and check "SMB1.0/CIFS File Sharing Support" as shown below. Enable it.

②Connect from Windows Explorer
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.
タイトルとURLをコピーしました