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: 26913
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.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

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: 26913
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.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

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: 35508
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

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: 35508
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Import User

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

The pass field shouldn't be empty.

User avatar
boco
Contributor
Posts: 26913
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
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

house hasson
500 Command not understood
Posts: 1
Joined: 2022-02-25 19:15
First name: Ron
Last name: Yatteau

Re: Import User

#11 Post by house hasson » 2022-02-25 19:21

I'm wanting to import users from another server. I have found the user.xml file here:
C:\Windows\System32\config\systemprofile\AppData\Local\filezilla-server

How do I create the salt value and hash value for importing?

<password index="1">
<hash>cdcC0KKr7nt0B6vk1ao6EfGAoGjs0GItj3CJ1K9UzhQ</hash>
<salt>fQWzzZ17IoDgCFLA2yLttUuA+aB2m1FGxphHKeDJkiw</salt>
<iterations>100000</iterations>
</password>

User avatar
oibaf
Contributor
Posts: 398
Joined: 2021-07-16 21:02
First name: Fabio
Last name: Alemagna

Re: Import User

#12 Post by oibaf » 2022-02-26 11:08

house hasson wrote:
2022-02-25 19:21
I'm wanting to import users from another server. I have found the user.xml file here:
C:\Windows\System32\config\systemprofile\AppData\Local\filezilla-server

How do I create the salt value and hash value for importing?

<password index="1">
<hash>cdcC0KKr7nt0B6vk1ao6EfGAoGjs0GItj3CJ1K9UzhQ</hash>
<salt>fQWzzZ17IoDgCFLA2yLttUuA+aB2m1FGxphHKeDJkiw</salt>
<iterations>100000</iterations>
</password>
Have a look here: viewtopic.php?p=178461#p178461

mahery
504 Command not implemented
Posts: 6
Joined: 2022-03-09 16:34
First name: Eric
Last name: Ibrahim

Re: Import User

#13 Post by mahery » 2022-03-09 16:49

Bonjour
Quelqu'un peut me donner une script PHP pour la génération de mots de passe pour filezilla version 1.3 s'il vous plaît. merci de votre aide.

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

Re: Import User

#14 Post by boco » 2022-03-10 01:43

1. Please write in English.
2. Don't post the same question into multiple topics, that's not allowed.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

mahery
504 Command not implemented
Posts: 6
Joined: 2022-03-09 16:34
First name: Eric
Last name: Ibrahim

Re: Import User

#15 Post by mahery » 2022-03-10 08:56

Hello
Can someone give me a PHP script for generating passwords for filezilla version 1.3 please. Thank you for your help.

Post Reply