Hi I'm having problems creating a new user in Zope. I want to allow a user access to one folder only, so my thinking was; - create a new user in acl_users and grant 'manager' role - grant access on said folder to manager However, simply adding the new user changes the password for the admin user as well, so i have to resort to a backup to continue (with no new user!). I'm obviously being very dim - I've tried searching the list but can't find anything, any help gratefully received. Manfred --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.373 / Virus Database: 208 - Release Date: 01/07/2002
acl_usersCreate a new acl_users folder within the folder you need to grant access to, and then create the user(s) you want there, with the roles you desire for them. Ausum ----- Original Message ----- From: Manfred Milhofer To: zope@zope.org Sent: Tuesday, November 26, 2002 12:23 PM Subject: [Zope] acl_users Hi I'm having problems creating a new user in Zope. I want to allow a user access to one folder only, so my thinking was; - create a new user in acl_users and grant 'manager' role - grant access on said folder to manager However, simply adding the new user changes the password for the admin user as well, so i have to resort to a backup to continue (with no new user!). I'm obviously being very dim - I've tried searching the list but can't find anything, any help gratefully received. Manfred --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.373 / Virus Database: 208 - Release Date: 01/07/2002
Forgive me if I'm misunderstanding you, but are you adding new managers to your root acl_users folder? That's not a very good plan. You should have an acl_users folder at each point in your directory tree where permissions change. Assume you have a setup like: / a/ b/ c/ If you have three users (A, B, and C) who each have access to folders a, b, and c, respectively, each subfolder (a, b, c) should have an acl_users folder that contains one user. I would then give set up each folder with View privileges (or whatever the minimum functional privilege set is) for Authenticated Users (not Manager). User A won't be authenticated in folder b, only in folder a. If you're creating these folders programmatically, it's reasonably easy to create acl_users and user objects at the same time. If that's not enough, some additional detail on your goals would be helpful. HTH, Dylan At 09:23 AM 11/26/2002, you wrote:
Hi
I'm having problems creating a new user in Zope. I want to allow a user access to one folder only, so my thinking was; - create a new user in acl_users and grant 'manager' role - grant access on said folder to manager However, simply adding the new user changes the password for the admin user as well, so i have to resort to a backup to continue (with no new user!).
I'm obviously being very dim - I've tried searching the list but can't find anything, any help gratefully received.
Manfred
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (<http://www.grisoft.com>http://www.grisoft.com). Version: 6.0.373 / Virus Database: 208 - Release Date: 01/07/2002
Hi Manfred, --On Dienstag, 26. November 2002 17:23 +0000 Manfred Milhofer <mmilhofer@uk.cintra.com> wrote:
Hi
I'm having problems creating a new user in Zope. I want to allow a user access to one folder only, so my thinking was; - create a new user in acl_users and grant 'manager' role - grant access on said folder to manager However, simply adding the new user changes the password for the admin user as well, so i have to resort to a backup to continue (with no new user!).
I'm obviously being very dim - I've tried searching the list but can't find anything, any help gratefully received.
Uh oh ;) You probably used the zpasswd.py for creating the second user? Not zpasswd.py is only for resolving the tie loop when initializing a new Data.fs - to have a user to log in it must be in the acl_users, which will be in the new Data.fs (beside the emergency user, which is in a file called "access") If you have a single user in acl_users or only one user, calling zpasswd.py inituser and restarting zope causes the inituser file to be absorbed and the user overwritten/created. What you want is to log in your Zope using a web browser after creating _your_ account with zpasswd and then make new users by adding them in the Browser interface. In your case give them no Role at all but the local role "manager" in the desired folder only. Regards Tino
participants (4)
-
Ausum Studio -
Dylan Reinhardt -
Manfred Milhofer -
Tino Wildenhain