Skip to content

Commit caf2251

Browse files
committed
add notes to create an emergency user
1 parent ac34417 commit caf2251

File tree

4 files changed

+61
-14
lines changed

4 files changed

+61
-14
lines changed

docs/backend/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ security
3535
sending-email
3636
subscribers
3737
traversal-acquisition
38-
users-groups
38+
users-groups/index
3939
vocabularies
4040
widgets
4141
workflows

docs/backend/users-groups.md

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
myst:
3+
html_meta:
4+
"description": "Create an emergency user"
5+
"property=og:description": "Create an emergency user"
6+
"property=og:title": "Create an emergency user"
7+
"keywords": "Plone, user and groups, emergency user, pip, buildout"
8+
---
9+
10+
11+
(user-groups-emergency-user-label)=
12+
13+
# Emergency user
14+
15+
sometimes it is needed to create an emergency user. the password of admin ist lost or you have inherit a project without a proper documentation. The usecase: you will login as admin to your, but you can't.
16+
17+
First of all, do the following steps not in a production environment! Shutdown your instance.
18+
19+
(user-groups-emergency-user-pip-installation-label)=
20+
21+
## Create an emergency user in a pip based Plone instance
22+
23+
```bash
24+
./venv/bin/addzopeuser -c instance/etc/zope.conf <user> <password>
25+
```
26+
27+
start your instance and login with the created user.
28+
29+
(user-groups-emergency-user-buildout-installation-label)=
30+
31+
## Create an emergency user in a buildout based Plone instance
32+
33+
With buildout and plone.recipe.zope2instance you can do
34+
35+
```bash
36+
bin/instance adduser <user> <password>
37+
```
38+
39+
start your instance and login with the created user.
40+

docs/backend/users-groups/index.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
myst:
3+
html_meta:
4+
"description": "Managing Users And Groups in Plone"
5+
"property=og:description": "Managing Users And Groups in Plone"
6+
"property=og:title": "Managing Users And Groups in Plone"
7+
"keywords": "user, groups, plone"
8+
---
9+
10+
(backend-users-groups-label)=
11+
12+
# Users and Groups
13+
14+
15+
```{toctree}
16+
:caption: Users and Groups
17+
:maxdepth: 2
18+
19+
emergency-user
20+
```

0 commit comments

Comments
 (0)