Bug #3234

FTP account overwrite system user

Added by Giacomo Sanchietti about 6 years ago. Updated almost 6 years ago.

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

100%

Category:nethserver-vsftpd
Target version:v6.6
Security class: Resolution:
Affected version:v6.6-final NEEDINFO:No

Description

When creating a new FTP account with the same name of a system user, the system user is overwritten.

Steps to reproduce
  • Create a system user called myuser from the Users page:
    myuser=user
        City=
        Company=
        Department=
        FirstName=MyFirstName
        LastName=MyLastName
        PhoneNumber=
        Samba=enabled
        Street=
        Uid=5000
        __state=new
    
  • Create a FTP account called myuser from FTP page
    myuser=ftp
        Chroot=disabled
        Description=
        Password=mypassword
        status=disabled
    
  • The system user disappears from the Users page

Expected behavior
The FTP page should block the creation of a FTP account with the same name of a system user.

Thanks to Eddie Atherton for reporting.
See: http://community.nethserver.org/t/combine-mail-user-and-ftp-user/1227

Associated revisions

Revision 93b20d14
Added by Giacomo Sanchietti almost 6 years ago

Web UI: check for existing users. Refs #3234

History

#1 Updated by Giacomo Sanchietti about 6 years ago

  • Description updated (diff)

#2 Updated by Giacomo Sanchietti almost 6 years ago

  • Description updated (diff)

#3 Updated by Giacomo Sanchietti almost 6 years ago

  • Status changed from NEW to TRIAGED
  • Target version set to v6.6
  • % Done changed from 0 to 20
  • Affected version set to v6.6-final

#4 Updated by Giacomo Sanchietti almost 6 years ago

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

#5 Updated by Giacomo Sanchietti almost 6 years ago

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

#6 Updated by Giacomo Sanchietti almost 6 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
Package in nethserver-testing:
  • nethserver-vsftpd-1.0.1-1.5.g93b20d1.ns6.noarch.rpm
Test case 1
  • Create a system user called "test1"
  • Try to create a FTP user with the same name
  • The web interface must raise the error: User name `test1` has been already registered
Test case 2
  • Create a FTP user with a valid name
  • Try to edit and delete the user
  • The web interface should not raise any error

#7 Updated by dz0 0te almost 6 years ago

  • Assignee set to dz0 0te

#8 Updated by dz0 0te almost 6 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (dz0 0te)
  • % Done changed from 70 to 90

System and Package Version installed
VM KVM - Clean install of Nethserver 6.6 fully updated
Package Installed: nethserver-vsftpd-1.0.1-1.ns6.noarch
Other Package installed: FTP server,File server,Web server

Test Original Problem
from weUI
create a system user
create a FTP user with same name
system user disappeared

Install Updated Package

yum --enablerepo=nethserver-testing update nethserver-vsftpd-1.0.1-1.5.g93b20d1.ns6

Test Results after install
Test case 1:
Created a system user called "test1"
Try to create a FTP user with the same name

User name
User name `test1` has been already registered

Test case 2:
Created a FTP user called "test2"
OK edit
OK delete

Test case 3:
Created a FTP user called "test3"
Try to create a system user with the same name

User name
User name `test3` has been already registered

Verified or Reopen
Verified

Note
...

#9 Updated by Giacomo Sanchietti almost 6 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • nethserver-vsftpd-1.0.2-1.ns6.noarch.rpm

Also available in: Atom PDF