Feature #1762
FTP server
Status: | CLOSED | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due 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
First import. Refs #1762
Move pam.d to right directory. Refs #1762
Web UI: update translation. Refs #1762
createlinks: remove old unused action. Refs #1762
vsftpd.conf: enable logging. Refs #1762
Help: add inline manual. Refs #1762
Web UI: use tab controller. Refs #1762
Add FTP server group. Refs #1762
Web UI: use tab controller. Refs #1762
History
#1 Updated by Giacomo Sanchietti over 8 years ago
#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
See nethserver-vsftpd.
#4 Updated by Giacomo Sanchietti about 7 years ago
- Target version changed from ~FUTURE to v6.5
- 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
- nethserver-vsftpd-0.0.1-6.0git12f9f35d.ns6.noarch.rpm
- 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
- Disable the previously created user
- Check the user can't access the system
- 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
- 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
- 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
- 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
- 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
- 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
- nethserver-vsftpd-1.0.0-1.ns6.noarch.rpm
- inline help
- Developer manual: http://docs.nethserver.org/projects/nethserver-devel/en/latest/ftp.html
- Administrator manual: http://docs.nethserver.org/en/latest/ftp.html
Yum group file has also been updated.