login failure zope with gentoo
i have a gentoo box and testing my zope installation http://ipserver:8080 the index page is ok but i want display the http://ipserver:8080/manage the login failure from zope book The initial user name and password are 'admin' and 'tnLQ6imA'. This user not work I have change the user zope (its group was "user" now its "zope-2_6_1") its right???? Login gentoo with user zope Run the script /usr/bin/python zpasswd.py --username=root --password=root /usr/share/zope/zope-2.6.1/inituser no error messages Check the file /usr/share/zope/zope-2.6.1/inituser -------- root:{SHA}3Hbp8MAAbo+RngxRXGbbujmC94U= --------- check permission file ------- -rw-rw---- 1 zope zope-2_6_1 164 Sep 1 14:50 Makefile drwxrwx--- 4 zope zope-2_6_1 4096 Sep 1 15:59 ZServer drwxrwx--- 2 zope zope-2_6_1 4096 Sep 1 14:50 import -rw-rw---- 1 zope zope-2_6_1 38 Sep 2 13:27 inituser -rw-rw---- 1 zope zope-2_6_1 38 Sep 2 12:15 inituser.old drwxrwx--- 2 zope zope-2_6_1 4096 Sep 1 14:50 inst drwxrwx--- 4 zope zope-2_6_1 4096 Sep 1 14:50 lib drwxrwx--- 7 zope zope-2_6_1 4096 Sep 1 14:50 pcgi -rw-rw---- 1 zope zope-2_6_1 36439 Sep 1 14:50 setup.py -rw-rw---- 1 zope zope-2_6_1 27716 Sep 1 14:50 setup.pyc -rw-rw---- 1 zope zope-2_6_1 418 Sep 1 14:50 stupid_clean drwxrwx--- 3 zope zope-2_6_1 4096 Sep 1 14:50 utilities -rw-rw---- 1 zope zope-2_6_1 1320 Sep 1 14:50 w_pcgi.py -rw-rw---- 1 zope zope-2_6_1 1447 Sep 1 14:50 w_pcgi.pyc -rw-rw---- 1 zope zope-2_6_1 1468 Sep 1 14:50 wo_pcgi.py -rw-rw---- 1 zope zope-2_6_1 1669 Sep 1 14:50 wo_pcgi.pyc -rw-rw---- 1 zope zope-2_6_1 31553 Sep 1 14:50 z2.py -rw-rw---- 1 zope zope-2_6_1 23347 Sep 1 14:50 z2.pyc -rw-rw---- 1 zope zope-2_6_1 6419 Sep 1 14:50 zpasswd.py -rw-rw---- 1 zope zope-2_6_1 6960 Sep 1 14:50 zpasswd.pyc -------- restart zope but login failure wit user root psw root (the psw is easy but its one test!!) helpme
Riccardo Gaggero wrote:
i have a gentoo box and testing my zope installation http://ipserver:8080 the index page is ok but i want display the http://ipserver:8080/manage the login failure from zope book The initial user name and password are 'admin' and 'tnLQ6imA'. This user not work I have change the user zope (its group was "user" now its "zope-2_6_1") its right???? Login gentoo with user zope Run the script /usr/bin/python zpasswd.py --username=root --password=root /usr/share/zope/zope-2.6.1/inituser no error messages
Check the file /usr/share/zope/zope-2.6.1/inituser -------- root:{SHA}3Hbp8MAAbo+RngxRXGbbujmC94U= ---------
...
but login failure wit user root psw root (the psw is easy but its one test!!)
You confuse system users with Zope users. Your system user (the user Zope runs *as*) seems to be good. It should not be root, should not have access to anything outside Zope, and should be able to read it's own stuff, and write to zope/var. Your Zope users are entirely different. The initial user created by the install and its password should have worked. Otherwise, use the procedure outlined in doc/SECURITY.txt to get an 'emergency user' so you can get in and fix the passwords. Remember to restart Zope after doing an inituser or access change. http://cvs.zope.org/Zope/doc/SECURITY.txt?rev=HEAD&content-type=text/vnd.vie... --jcc -- "Code generators follow the 80/20 rule. They solve most of the problems, but not all of the problems. There are always features and edge cases that will need hand-coding. Even if code generation could build 100 percent of the application, there will still be an endless supply of boring meetings about feature design." (http://www.devx.com/java/editorial/15511)
On Thu, 2003-09-04 at 16:11, J Cameron Cooper wrote:
Otherwise, use the procedure outlined in doc/SECURITY.txt to get an 'emergency user' so you can get in and fix the passwords.
Please note that for this ebuild of Zope, the standard answer for initial user creation is not the correct one. Gentoo's package is *not* a vanilla installation of Zope, though it is a quite good one. Read the docs that come with this package and they will tell you to use: zope-config --zpasswd IIRC, this sets the initial password but also performs some other configuration tasks, such as initializing the instance home. You won't be able to use Zope with this ebuild unless you either use the ebuild the way it was designed or decide to hack your own. HTH, Dylan
To set the initial user when you use this ebuild, you need to do this: zope-config --zpasswd Start up Zope and you should be good to go. With Gentoo, it's a good idea to check out the ebuild scripts if a package doesn't seem to be working correctly. If you're not familiar with instance home setups, realize that you probably now have one. HTH, Dylan On Wed, 2003-09-03 at 01:00, Riccardo Gaggero wrote:
i have a gentoo box and testing my zope installation http://ipserver:8080 the index page is ok but i want display the http://ipserver:8080/manage the login failure from zope book The initial user name and password are 'admin' and 'tnLQ6imA'. This user not work I have change the user zope (its group was "user" now its "zope-2_6_1") its right???? Login gentoo with user zope Run the script /usr/bin/python zpasswd.py --username=root --password=root /usr/share/zope/zope-2.6.1/inituser no error messages
Check the file /usr/share/zope/zope-2.6.1/inituser -------- root:{SHA}3Hbp8MAAbo+RngxRXGbbujmC94U= --------- check permission file ------- -rw-rw---- 1 zope zope-2_6_1 164 Sep 1 14:50 Makefile drwxrwx--- 4 zope zope-2_6_1 4096 Sep 1 15:59 ZServer drwxrwx--- 2 zope zope-2_6_1 4096 Sep 1 14:50 import -rw-rw---- 1 zope zope-2_6_1 38 Sep 2 13:27 inituser -rw-rw---- 1 zope zope-2_6_1 38 Sep 2 12:15 inituser.old drwxrwx--- 2 zope zope-2_6_1 4096 Sep 1 14:50 inst drwxrwx--- 4 zope zope-2_6_1 4096 Sep 1 14:50 lib drwxrwx--- 7 zope zope-2_6_1 4096 Sep 1 14:50 pcgi -rw-rw---- 1 zope zope-2_6_1 36439 Sep 1 14:50 setup.py -rw-rw---- 1 zope zope-2_6_1 27716 Sep 1 14:50 setup.pyc -rw-rw---- 1 zope zope-2_6_1 418 Sep 1 14:50 stupid_clean drwxrwx--- 3 zope zope-2_6_1 4096 Sep 1 14:50 utilities -rw-rw---- 1 zope zope-2_6_1 1320 Sep 1 14:50 w_pcgi.py -rw-rw---- 1 zope zope-2_6_1 1447 Sep 1 14:50 w_pcgi.pyc -rw-rw---- 1 zope zope-2_6_1 1468 Sep 1 14:50 wo_pcgi.py -rw-rw---- 1 zope zope-2_6_1 1669 Sep 1 14:50 wo_pcgi.pyc -rw-rw---- 1 zope zope-2_6_1 31553 Sep 1 14:50 z2.py -rw-rw---- 1 zope zope-2_6_1 23347 Sep 1 14:50 z2.pyc -rw-rw---- 1 zope zope-2_6_1 6419 Sep 1 14:50 zpasswd.py -rw-rw---- 1 zope zope-2_6_1 6960 Sep 1 14:50 zpasswd.pyc -------- restart zope
but login failure wit user root psw root (the psw is easy but its one test!!)
helpme
_______________________________________________ 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 )
participants (3)
-
Dylan Reinhardt -
J Cameron Cooper -
Riccardo Gaggero