[Zope] acl_users

Tino Wildenhain tino@wildenhain.de
Tue, 26 Nov 2002 21:05:24 +0100


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