Skip to content

is it possible to change the default admin #375

Answered by drakkan
avshvetz asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

this should work by loading initial data, for example:

./sftpgo serve --loaddata-from /tmp/initial.json --loaddata-mode 0

where initial.json contains a json like the following one:

{"users":[],"folders":[],"admins":[{"id":1,"status":1,"username":"admin","password":"newpassword","email":"","permissions":["*"],"filters":{}}],"version":7}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@avshvetz
Comment options

@drakkan
Comment options

Answer selected by drakkan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants