Import User

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
phil22
500 Command not understood
Posts: 5
Joined: 2020-12-23 18:32
First name: phil
Last name: pp

Import User

#1 Post by phil22 » 2020-12-23 19:00

Hello,

I make a new FileZilla Server
I will want to import the users from the old server. I saw other topics, however not like my problem
I saw that the file where the users were stored
FileZilla Server.xml
In the old file, there is just the "Pass" field to enter
On the new server, on which there are already users, there is the field in addition to the field "Salt"

If I copy the old users to the new file, the server doesn't see them.
I restarted the server with no effects

The server versions are the same 0.9.58 beta

Thanks for your help

User avatar
boco
Contributor
Posts: 25381
Joined: 2006-05-01 03:28
Location: Germany

Re: Import User

#2 Post by boco » 2020-12-24 01:05

We only support the latest version, which is 0.9.60.x at this time.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

phil22
500 Command not understood
Posts: 5
Joined: 2020-12-23 18:32
First name: phil
Last name: pp

Re: Import User

#3 Post by phil22 » 2020-12-27 19:06

Hello,

I updated to version 9.60 the 2 servers and I have the same problem

Thanks

User avatar
boco
Contributor
Posts: 25381
Joined: 2006-05-01 03:28
Location: Germany

Re: Import User

#4 Post by boco » 2020-12-28 07:29

The way password hashes are stored was modernized, from plain MD5 hash to salted SHA512 hash. The server is still backwards compatible to the old scheme.

Migrating the old <user></user> blocks to the new XML file works (I've done it), provided all XML tags have been copied along correctly, and the XML document is still well formed. Of course, the passwords will still be stored in the old, insecure way, until you edit and re-save the user.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

phil22
500 Command not understood
Posts: 5
Joined: 2020-12-23 18:32
First name: phil
Last name: pp

Re: Import User

#5 Post by phil22 » 2020-12-28 12:24

Hello,

Yes i take a block <user></user> of the old server of the file FileZilla Server.xml and copy the block into the <Users> block of the new server
exemple :
<Users>
<User Name="Myolduser">
<Option Name="Pass">itsanexample123456............</Option>
<Option Name="Salt"></Option>
.......
</User>
</Users>

And the new server, after restart don't see my user "Myolduser"

phil22
500 Command not understood
Posts: 5
Joined: 2020-12-23 18:32
First name: phil
Last name: pp

Re: Import User

#6 Post by phil22 » 2020-12-28 17:42

Also,
i deleted a user in the new Server Of the file
c:\Program Files (x86)\FileZilla Server\filezilla Server.xml
Restart by service Filezilla, the user is always seen...

Also
i try to delete files filezilla Server.xml in
C:\Users\***\AppData\Local\Temp
C:\Users\***\AppData\Local\VirtualStore\Program Files (x86)\FileZilla Server

with no sucess

User avatar
botg
Site Admin
Posts: 33306
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: Import User

#7 Post by botg » 2020-12-29 09:03

Which program are you using to edit the files? As they are in a privileged location, make sure to run your editor elevated.

phil22
500 Command not understood
Posts: 5
Joined: 2020-12-23 18:32
First name: phil
Last name: pp

Re: Import User

#8 Post by phil22 » 2020-12-29 17:28

Hello,
Thanks,

i use ConText to edit the file
it's ok by opening Context with administrator rights

also
I edit a user and Ok but
The "Pass" field is always empty, normal ?

User avatar
botg
Site Admin
Posts: 33306
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: Import User

#9 Post by botg » 2020-12-31 08:34

The pass field shouldn't be empty.

User avatar
boco
Contributor
Posts: 25381
Joined: 2006-05-01 03:28
Location: Germany

Re: Import User

#10 Post by boco » 2021-01-02 08:29

The last ConText version is from 2009, are you sure it's fully UAC-compatible? If not, any saved XML file will likely be redirected to the Virtual Store location and you will need to move it to the correct location by yourself.

While Pass should never be empty, please note that passwords aren't stored at all. FileZilla Server stores only a salted SHA512 hash of the password, the length of the obscured password field shown in the GUI will therefore always be the same, even if the passwords weren't of same length.
Last edited by botg on 2021-01-04 08:19, edited 1 time in total.
Reason: Fixed typo
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

Post Reply