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

ArchLinux ; FTP Server , File Server (SAMBA)

1.FTP Server

1. 1 vsftpd installation

1.2 vsftpd configuration

①Editing Configuration Files

②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

⑥From windows side, check if you can connect with FileZilla.
Open ftp port in UFW 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 : can be blank
Encryption : Use expllict FTP ocver TLS if available
Logon Type : Ask for password
User  : General user name (server login user)

Set the password for the login user in "Password" and click "OK.

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 step is not necessary if you are using a trusted, legitimate certificate such as Let's Encrypt.
The information you enter is meaningless and will only be used for encryption.

2.2 Vsftpd Configuration

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
(1) Create a shared folder with access rights that requires user authentication.
(2) Create a group with access rights
(3)Create users belonging to groups that can be accessed
(4)Edit configuration file

3.1 Install samba

3.2 Create a shared folder (smbshare)

3.3 Accessible group (smbgroup) creation

3.4 Configuration File Editing

Create a new smb.conf

3.5 SMB Restart

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

3.7 UFW to allow Samba services

Open TCP ports 137, 138, 139, and 445

3.8 Accessing shared directories from Windows 11

Connecting from Windows File Explorer
Open Explorer and enter "\\[Server IP Address ]" in the address field (in this case 192.168.11.83) to access the server.

You will be asked to enter your authentication information
User name : User name created in "3.6 User (smbuser) Registration, Password Setting, Group Registration
Password: Password for the above user
Enter the following and click "OK".

Confirm that files and folders are newly created when the shared directory information is displayed.

Copied title and URL