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

Fedora36 : FTP Server(Vsftpd) , File Server(Samba)

1.FTP Server Installation

1. 1 Vsftpd Install

1.2 Vsftpd configuration

Save the unedited vsftpd.conf with .bak

①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 the IP address specified in hosts.allow is allowed
④Enable vsftpd autostart and start it

⑤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 :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".

Click "OK" when the following screen appears
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
②Creation of accessible groups
③Creation of users belonging to groups that can be accessed
④Configuration File Editing

3.1 samba Install

3.2 Create a shared folder (smbshare)

3.3 Create accessible groups (smbgroup)

3.4 Configuration File Editing

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, go to the Windows "Settings" menu and open "More Windows Features" at the bottom of "Apps" and "Optional Features".
Check "SMB1.0/CIFS file sharing support" and enable it.

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

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

Confirm that files and folders are newly created when the shared directory information is displayed.
タイトルとURLをコピーしました