what is the default username/password for Scirius CE? Tried to reset the password but did not work.

519 views
Skip to first unread message

Sree Hari

unread,
Oct 25, 2019, 8:08:57 AM10/25/19
to SELKS
1. what is the default username/password Scirius webportal? ( from step 2, I think its selks-user)

2. I tried to reset selks-user by following https://github.com/StamusNetworks/SELKS/wiki/Forgot-Scirius-web-log-in-password

selks-user@SELKS:~$ cd /usr/share/python/scirius/ && source bin/activate
(scirius)selks-user@SELKS:/usr/share/python/scirius$ python manage.py changepassword selks-user
python: can't open file 'manage.py': [Errno 2] No such file or directory
(scirius)selks-user@SELKS:/usr/share/python/scirius$ python bin/manage.py changepassword selks-user
Traceback (most recent call last):
  File "bin/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/share/python/scirius/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
    utility.execute()
  File "/usr/share/python/scirius/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 356, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/share/python/scirius/local/lib/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/share/python/scirius/local/lib/python2.7/site-packages/django/core/management/base.py", line 329, in execute
    self.check_migrations()
  File "/usr/share/python/scirius/local/lib/python2.7/site-packages/django/core/management/base.py", line 422, in check_migrations
    executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
  File "/usr/share/python/scirius/local/lib/python2.7/site-packages/django/db/migrations/executor.py", line 20, in __init__
    self.loader = MigrationLoader(self.connection)
  File "/usr/share/python/scirius/local/lib/python2.7/site-packages/django/db/migrations/loader.py", line 52, in __init__
    self.build_graph()
  File "/usr/share/python/scirius/local/lib/python2.7/site-packages/django/db/migrations/loader.py", line 210, in build_graph
    self.applied_migrations = recorder.applied_migrations()
  File "/usr/share/python/scirius/local/lib/python2.7/site-packages/django/db/migrations/recorder.py", line 65, in applied_migrations
    self.ensure_schema()
  File "/usr/share/python/scirius/local/lib/python2.7/site-packages/django/db/migrations/recorder.py", line 52, in ensure_schema
    if self.Migration._meta.db_table in self.connection.introspection.table_names(self.connection.cursor()):
  File "/usr/share/python/scirius/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 254, in cursor
    return self._cursor()
  File "/usr/share/python/scirius/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 229, in _cursor
    self.ensure_connection()
  File "/usr/share/python/scirius/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 213, in ensure_connection
    self.connect()
  File "/usr/share/python/scirius/local/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/usr/share/python/scirius/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 213, in ensure_connection
    self.connect()
  File "/usr/share/python/scirius/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 189, in connect
    self.connection = self.get_new_connection(conn_params)
  File "/usr/share/python/scirius/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", line 198, in get_new_connection
    conn = Database.connect(**conn_params)
django.db.utils.OperationalError: unable to open database file
(scirius)selks-user@SELKS:/usr/share/python/scirius$ 

3.  Looks like manage.py doesn't import django module.

(scirius)selks-user@SELKS:/usr/share/python/scirius$ cat bin/manage.py 
#!/usr/share/python/scirius/bin/python
import os
import sys

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "scirius.settings")

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)


Regards,
Sree

Peter Manev

unread,
Oct 25, 2019, 8:15:22 AM10/25/19
to Sree Hari, SELKS
Hi,

If you are running SELKS the user password combo  is “selks-user”


If you need to reset it - can you try as root ?

Thank you 

-- 
Regards,
Peter Manev 

On 25 Oct 2019, at 14:09, Sree Hari <hari...@gmail.com> wrote:


--
IRC: Let's talk about SELKS on Freenode IRC on the #SELKS channel
Wiki: https://github.com/StamusNetworks/SELKS/wiki
GitHub: https://github.com/StamusNetworks/SELKS
Blog: https://www.stamus-networks.com/theblog/
Twitter: @StamusN
g+: Stamus Networks
---
You received this message because you are subscribed to the Google Groups "SELKS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selks+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selks/60e0ad90-3233-4d2c-832a-c89363fc8e7a%40googlegroups.com.

Sree Hari

unread,
Oct 25, 2019, 8:15:56 AM10/25/19
to SELKS
oops! simple thing. I should run it as root. Now I can login to Scirius web portal.


(scirius)selks-user@SELKS:/usr/share/python/scirius/bin$ su 
Password: 
root@SELKS:/usr/share/python/scirius/bin# cd /usr/share/python/scirius/ && source bin/activate
(scirius)root@SELKS:/usr/share/python/scirius# python bin/manage.py changepassword selks-user
Changing password for user 'selks-user'
Password: 
Password (again): 
Password changed successfully for user 'selks-user'
(scirius)root@SELKS:/usr/share/python/scirius# 

Please update https://github.com/StamusNetworks/SELKS/wiki/Forgot-Scirius-web-log-in-password saying to run it as root or use sudo.

Peter Manev

unread,
Oct 25, 2019, 9:48:01 AM10/25/19
to Sree Hari, SELKS
On Fri, Oct 25, 2019 at 2:15 PM Sree Hari <hari...@gmail.com> wrote:
oops! simple thing. I should run it as root. Now I can login to Scirius web portal.


(scirius)selks-user@SELKS:/usr/share/python/scirius/bin$ su 
Password: 
root@SELKS:/usr/share/python/scirius/bin# cd /usr/share/python/scirius/ && source bin/activate
(scirius)root@SELKS:/usr/share/python/scirius# python bin/manage.py changepassword selks-user
Changing password for user 'selks-user'
Password: 
Password (again): 
Password changed successfully for user 'selks-user'
(scirius)root@SELKS:/usr/share/python/scirius# 

Please update https://github.com/StamusNetworks/SELKS/wiki/Forgot-Scirius-web-log-in-password saying to run it as root or use sudo.

Updated - thanks !
 
--
IRC: Let's talk about SELKS on Freenode IRC on the #SELKS channel
Wiki: https://github.com/StamusNetworks/SELKS/wiki
GitHub: https://github.com/StamusNetworks/SELKS
Blog: https://www.stamus-networks.com/theblog/
Twitter: @StamusN
g+: Stamus Networks
---
You received this message because you are subscribed to the Google Groups "SELKS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selks+un...@googlegroups.com.


--
Regards,
Peter Manev
Reply all
Reply to author
Forward
0 new messages