Feature #1762

FTP server

Added by Giacomo Sanchietti over 8 years ago. Updated about 7 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-vsftpd
Target version:v6.5
Resolution: NEEDINFO:No

Description

Add a simple FTP server.

FTP access should be allowed on configured ibays.

Associated revisions

Revision bc9512a7
Added by Giacomo Sanchietti almost 8 years ago

First import. Refs #1762

Revision 491bb405
Added by Giacomo Sanchietti over 7 years ago

Move pam.d to right directory. Refs #1762

Revision 12f9f35d
Added by Giacomo Sanchietti about 7 years ago

Web UI: update translation. Refs #1762

Revision 456cf1ff
Added by Giacomo Sanchietti about 7 years ago

createlinks: remove old unused action. Refs #1762

Revision a8e5a732
Added by Giacomo Sanchietti about 7 years ago

vsftpd.conf: enable logging. Refs #1762

Revision 64e15155
Added by Giacomo Sanchietti about 7 years ago

Help: add inline manual. Refs #1762

Revision 4035d739
Added by Giacomo Sanchietti about 7 years ago

Web UI: use tab controller. Refs #1762

Revision 80ab371a
Added by Giacomo Sanchietti about 7 years ago

Add FTP server group. Refs #1762

Revision 74736a69
Added by Giacomo Sanchietti about 7 years ago

Web UI: use tab controller. Refs #1762

History

#2 Updated by Giacomo Sanchietti almost 8 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20

A simple ftp server will be implemented using vsftpd.

Since ftp is insecure, all users are virtual users with no i-bay access and chroot enabled by default.

#3 Updated by Giacomo Sanchietti almost 8 years ago

  • Status changed from TRIAGED to MODIFIED
  • % Done changed from 20 to 60

#4 Updated by Giacomo Sanchietti about 7 years ago

  • Target version changed from ~FUTURE to v6.5
Main implemented features:
  • virtual users
  • chroot user inside a custom directory
  • system users (not configurable from web interface)

#5 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70
Package in nethserver-testing:
  • nethserver-vsftpd-0.0.1-6.0git12f9f35d.ns6.noarch.rpm
Test case 1: virtual user
  • Create a new virtual user with status enabled and chroot disabled
  • Login with the user and check:
    • the user can write and read in his own directory
    • the user can list files inside the entire system
Test case 2: virtual user
  • Disable the previously created user
  • Check the user can't access the system
Test case 3: home chroot
  • Create a new virtual user with status enabled and chroot enabled
  • Login with the user and check:
    • the user can write and read in his own directory
    • the user can't list files inside the entire system
Test case 4: ibay chroot
  • Create a new ibay called test
  • Create a new virtual user with status enabled and custom chroot set to /var/lib/nethserver/ibay/test
  • Login with the user and check:
    • the user can write and read inside the ibay
    • the user can't list files inside the entire system
Test 5: system users
  • Create a system user goofy from the web interface
  • Switch to the console and enable FTP access for the new user:
    config setprop vsftpd UserType system
    db accounts setprop goofy FTPAccess enabled
    signal-event nethserver-vsftpd-save
    
  • Check the user can login and is chrooted inside his own home directory

#6 Updated by Massimo Palazzetti about 7 years ago

  • Assignee set to Massimo Palazzetti

#7 Updated by Massimo Palazzetti about 7 years ago

  • Status changed from ON_QA to TRIAGED
  • Assignee deleted (Massimo Palazzetti)
  • % Done changed from 70 to 20

Test case 1: virtual user

Permission denied triyng to login into the server

Test case 2: virtual user

Unable to test

Test case 3: home chroot

Permission denied triyng to login into the server

Test case 4: ibay chroot

Permission denied triyng to login into the server

Test 5: system users

Permission denied triyng to login into the server

No log founded in /var/log/messages or other ftp log.
The service was enabled from the "configure" menù.

#8 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#9 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60
Modifications:
  • logging enabled to /var/log/vsftpd.log file
  • fixed user db creation

#10 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
Packages in nethserver-testing:
  • nethserver-vsftpd-0.0.1-9.0git5795f30d.ns6.noarch.rpm

Repeat previous test cases.
Use /var/log/vsftpd.log for trouble shooting.

#11 Updated by Massimo Palazzetti about 7 years ago

  • Assignee set to Massimo Palazzetti

#12 Updated by Massimo Palazzetti about 7 years ago

  • Status changed from ON_QA to TRIAGED
  • Assignee deleted (Massimo Palazzetti)
  • % Done changed from 70 to 20

Test case 1: virtual user

OK

Test case 2: virtual user

OK

Test case 3: home chroot

OK

Test case 4: ibay chroot

Not working even if an ibay path is specified the user is forced on his home directory

Test 5: system users

According to vsftpd log after create a system user (and a related password) i'm unable to login on the ftp server:
Tue Jul 1 12:45:33 2014 [pid 6946] [user] FAIL LOGIN: Client "192.168.5.30"
Tue Jul 1 12:45:34 2014 [pid 6947] [user] FTP response: Client "192.168.5.30", "530 Login incorrect.

#13 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#14 Updated by Giacomo Sanchietti about 7 years ago

Test case 4: ibay chroot

Not working even if an ibay path is specified the user is forced on his home directory

The ChrootDir property is not correctly saved from web interface.
You can check the problem with:

db accounts show user

Test 5: system users

According to vsftpd log after create a system user (and a related password) i'm unable to login on the ftp server:
Tue Jul 1 12:45:33 2014 [pid 6946] [user] FAIL LOGIN: Client "192.168.5.30"
Tue Jul 1 12:45:34 2014 [pid 6947] [user] FTP response: Client "192.168.5.30", "530 Login incorrect.

The system user should also have the shell access, enabled from the web interface or with following commands:

db accounts setprop myuser Shell /bin/bash
signal-event user-modify myuser

#15 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

#16 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
New package in nethserver-testing:
  • nethserver-vsftpd-0.0.1-10.0git99dfa7e8.ns6.noarch.rpm

Please, re-test test cases 4 and 5.

#17 Updated by Massimo Palazzetti about 7 years ago

  • Assignee set to Massimo Palazzetti

#18 Updated by Massimo Palazzetti about 7 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Massimo Palazzetti)
  • % Done changed from 70 to 90

Verified

#19 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Package in nethserver-updates:
  • nethserver-vsftpd-1.0.0-1.ns6.noarch.rpm
Also released:

Yum group file has also been updated.

Also available in: Atom PDF