[Zope] Re: Newbie - can't log in to localhost:8080/manage

Tres Seaver tseaver at zope.com
Sat Mar 26 18:14:25 EST 2005


-----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 at 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-----



More information about the Zope mailing list