Newbie - can't log in to localhost:8080/manage
Apologies if this has already been answered elsewhere. I couldn't find anything suitable in recent archives, but if it has already been answered, a URL would be much appreciated. I've just installed Zope version 2.7.2-5.1 under SuSE 9.2 Pro, using apt. The installation is fine and localhost:8080 comes up just fine as expected. However, I can't log in to the management site at localhost:8080/manage. I've run zpasswd.py access and zpasswd.py inituser: ----------------------------------------------------------------- linux:/opt/zope/bin # ./zpasswd.py access Username: admin Password: Verify password: Please choose a format from: SHA - SHA-1 hashed password (default) CRYPT - UNIX-style crypt password CLEARTEXT - no protection Encoding: Domain restrictions: linux:/opt/zope/bin # ------------------------------------------------------------------ linux:/opt/zope/bin # ./zpasswd.py inituser Username: peter Password: Verify password: Please choose a format from: SHA - SHA-1 hashed password (default) CRYPT - UNIX-style crypt password CLEARTEXT - no protection Encoding: SHA Domain restrictions: linux:/opt/zope/bin # --------------------------------------------------------------------- I ran both these with zope disabled and then re-started zope: but I still can't get a password accepted when I try to login to the management page. Could somebody please put me out of my misery. I'm sure I've missed something very elementary. Thanks in advance Peter
peter wrote:
Apologies if this has already been answered elsewhere. I couldn't find anything suitable in recent archives, but if it has already been answered, a URL would be much appreciated.
I've just installed Zope version 2.7.2-5.1 under SuSE 9.2 Pro, using apt. The installation is fine and localhost:8080 comes up just fine as expected. However, I can't log in to the management site at localhost:8080/manage.
I've run zpasswd.py access and zpasswd.py inituser:
----------------------------------------------------------------- linux:/opt/zope/bin # ./zpasswd.py access Username: admin Password: Verify password:
Please choose a format from:
SHA - SHA-1 hashed password (default) CRYPT - UNIX-style crypt password CLEARTEXT - no protection
Encoding: Domain restrictions: linux:/opt/zope/bin #
------------------------------------------------------------------ linux:/opt/zope/bin # ./zpasswd.py inituser Username: peter Password: Verify password:
Please choose a format from:
SHA - SHA-1 hashed password (default) CRYPT - UNIX-style crypt password CLEARTEXT - no protection
Encoding: SHA Domain restrictions: linux:/opt/zope/bin #
---------------------------------------------------------------------
I ran both these with zope disabled and then re-started zope: but I still can't get a password accepted when I try to login to the management page.
Could somebody please put me out of my misery. I'm sure I've missed something very elementary.
Thanks in advance
Peter
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
try using user admin and passwort 123 (these used to be the defaults aeons ago) You have to start and stop zope to after having used zpasswd Robert
robert wrote:
try using user admin and passwort 123 (these used to be the defaults aeons ago)
You have to start and stop zope to after having used zpasswd
Robert
Thanks Robert - but no cigar, I'm afraid :( But thanks for the suggestion Cheers Peter
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 peter wrote:
Apologies if this has already been answered elsewhere. I couldn't find anything suitable in recent archives, but if it has already been answered, a URL would be much appreciated.
I've just installed Zope version 2.7.2-5.1 under SuSE 9.2 Pro, using apt. The installation is fine and localhost:8080 comes up just fine as expected. However, I can't log in to the management site at localhost:8080/manage.
I've run zpasswd.py access and zpasswd.py inituser:
----------------------------------------------------------------- linux:/opt/zope/bin # ./zpasswd.py access Username: admin Password: Verify password:
Please choose a format from:
SHA - SHA-1 hashed password (default) CRYPT - UNIX-style crypt password CLEARTEXT - no protection
Encoding: Domain restrictions: linux:/opt/zope/bin #
------------------------------------------------------------------ linux:/opt/zope/bin # ./zpasswd.py inituser Username: peter Password: Verify password:
Please choose a format from:
SHA - SHA-1 hashed password (default) CRYPT - UNIX-style crypt password CLEARTEXT - no protection
Encoding: SHA Domain restrictions: linux:/opt/zope/bin #
---------------------------------------------------------------------
I ran both these with zope disabled and then re-started zope: but I still can't get a password accepted when I try to login to the management page.
Could somebody please put me out of my misery. I'm sure I've missed something very elementary.
You've been running 'zpasswd.py' in the wrong place: those files need to be created in your instance home, not in the 'bin' directory of your Zope software installation. Rather than running it directly, try running your instance's 'zopectl', e.g.: $ cd /path/to/zope/instance $ bin/zopectl Then, at the 'zopectl>' prompt, run its 'adduser' command: zopectl> adduser admin 123 Which will add the user in the 'acl_users' of your Zope root in the ZODB. Tres. - -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCRezRGqWXf00rNCgRAgiIAJ4k2XI1Biv3e8FtCTA4O2wzBSjtcgCfVr1F 9an4GJc0ulBzhakbBkDTG7Y= =6WHP -----END PGP SIGNATURE-----
Tres Seaver wrote:
You've been running 'zpasswd.py' in the wrong place: those files need to be created in your instance home, not in the 'bin' directory of your Zope software installation.
Rather than running it directly, try running your instance's 'zopectl', e.g.:
$ cd /path/to/zope/instance $ bin/zopectl
Then, at the 'zopectl>' prompt, run its 'adduser' command:
zopectl> adduser admin 123
Which will add the user in the 'acl_users' of your Zope root in the ZODB.
Thanks for that Tres. I ran the following: /opt/zope/bin/zpasswd.py /var/opt/zope/default/access and it worked just fine. Thanks to all who replied. I now know a little bit more than I did yesterday :) Cheers Peter
participants (3)
-
peter -
robert -
Tres Seaver