Click here for "Error Codes for Commercial Air Conditioners".(Japanese Version)

OracleLinux9.1 : FTP Server , Samba FileServer Install

1.FTP Server

1.1vsftpd Install

1.2vsftpd configuration

①Edit configuration file
②Add users to allow directory access to upper level
③ Specify IP addresses to allow connections in /etc/hosts.allow
Write vsftpd:ALL (deny all connections) in /etc/hosts.deny
This setting overrides hosts.allow. That is, everything is denied, and IP addresses specified in hosts.allow are allowed.
④Enable vsftpd autostart and start it
⑤Now, from windows side, check if you can connect with FileZilla.
Open the ftp port with firewall before connecting
Start FileZilla and select "Site Manager" from the "File" menu.
Click on "New site"
Enter the following settings for each item and click "Connect"
Protocol : FTP-File Transfer Protocol
Host : Server IP Address
Port : (blank.)
Logon Type : Ask for password
User  : General user name (server login user)
Password : General user (server login user) password
If the connection is successful, the server directory is displayed on the right and the Windows directory on the left.

2. vsftpd SSL/TLS

Configure Vsftpd to use SSL/TLS

2.1 Create self-signed certificates

This work is not required if you are using a trusted, legitimate certificate such as Let's Encrypt.

2.2 Vsftpd Configuration

Allow passive ports in Firewalld

When connecting to FileZilla, the following screen appears, check the box and click "OK" to connect as described above.

3. File server installation with Samba

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

①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.

Copied title and URL