Calby
October 26, 2017, 2:23pm
1
Hi,
I did find something that can happen to everyone, the admin account did get frozen due to a hacker attempt.
But in the manual it don’t say how to unlock the admin account if this happens?
This should bee a importen thing to have in the manual.
At first the account was frozen and now it’s deactivated.
I’ll get home soon and then I’ll try if the reset-admin.sh works for this issue.
I’ll get back to you as soon as possible.
lins05
October 26, 2017, 2:58pm
2
Maybe you can create a new admin using the reset-admin.sh script and login with the new admin account to reactivate the old admin account?
1 Like
Calby
October 26, 2017, 4:13pm
3
I did just choose my admin account during the reset script and everything did work perfectly.
So I can confirm that this don’t delete your data, and that’s something that should bee in the manual for a example.
How can I write / add stuff to the manual?
shoeper
October 26, 2017, 10:16pm
4
You can submit a pull request (PR) on Github at github.com/haiwen/seafile-docs
You can do it over database.
ccnet-db -> EmailUser -> change column is_active to 1 on row with your admin.
Calby
October 27, 2017, 7:33am
6
I did try it but it seem that I can’t do that.
I know some stuff that should bee corrected in the manual, like the fix for the fail2ban filter etc.
Can you guide me trough it?
The link for the reset-admin.sh is:
# Account Management
#### User Management
When you setup seahub website, you should have setup a admin account. After you logged in a admin, you may add/delete users and file libraries.
#### Resetting User Password
Administrator can reset password for a user in "System Admin" page.
In a private server, the default settings doesn't support users to reset their password by email. If you want to enable this, you have first to [set up notification email](../config/sending_email.md).
#### Forgot Admin Account or Password?
You may run `reset-admin.sh` script under seafile-server directory. This script would help you reset the admin account and password.
Create account on github.
Create Fork of haiwen/seafile-docs
Edit file
Commit changes
Create pull request from /Seafile-Docs
https://help.github.com/articles/creating-a-pull-request/
2 Likes
If I run this reset on my machine i get the error
File “/srv/seafile-pro-server-9.0.9/pro/python/seafevents/tasks/repo_old_file_auto_del_scanner.py”, line 29, in _prepare_seahub_dir
raise RuntimeError(‘seahub_dir is not set’)
Can anyone help?
rdb
October 20, 2022, 7:02pm
9
JohnnyD:
Can anyone help?
Didn’t you fix your problem yourself? See Cant reset admin using ./reset-admin.sh - #2 by JohnnyD