StamusNetworks / scirius

Scirius is a web application for Suricata ruleset management and threat hunting.
GNU General Public License v3.0
626 stars 150 forks source link

Accidently removed admin rights #159

Closed Noname2244 closed 5 years ago

Noname2244 commented 5 years ago

I was about to add a new user, but instead I change the current user name and made the user none staf/admin.

how do I restore the right from cli/SSH or add a new admin user ?

Noname2244 commented 5 years ago

can I git clone scirious to etc/scirious (?) and then run python manage.py createsuperuser?

pevma commented 5 years ago

Doubt that will work.

Try -

cd /usr/share/python/scirius/ && \
source bin/activate
python bin/manage.py createsuperuser-h

and follow the instructions