Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Replica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
TPA
Wiki Replica
Commits
2f8d6352
Unverified
Commit
2f8d6352
authored
5 years ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
clarify and expand role creation procedure
parent
5ec5c4c7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tsa/howto/create-a-new-user.mdwn
+26
-8
26 additions, 8 deletions
tsa/howto/create-a-new-user.mdwn
with
26 additions
and
8 deletions
tsa/howto/create-a-new-user.mdwn
+
26
−
8
View file @
2f8d6352
...
...
@@ -112,14 +112,32 @@ to propagate to the email server, which is currently `eugeni`.
sudo puppet agent -t
# Creating a role acount and a group for it
# Creating a role
A "role" account is like a normal user, except it's for machines or
services, not real people. It's useful to run different services with
different privileges and isolation.
Here's how to create a role account:
1. Do _not_ use ud-groupadd and ud-roleadd. They are partly broken.
2. On LDAP host (currently alberti.tpo), as a user with LDAP write access, do
- `ldapvi -ZZ --encoding=ASCII --ldap-conf -h db.torproject.org -D uid=${USER},ou=users,dc=torproject,dc=org`
- Cut and paste a gid entry, pick a nice gidNumber.
- Cut and paste a uid entry, pick a nice uidNumber.
- Add 'allowedGroups: NEW-GROUP' to host entry/ies that should have
this role account.
3. `sudo -u sshdist ud-generate && sudo -H ud-replicate`
2. On LDAP host (currently alberti.tpo), as a user with LDAP write
access, do:
ldapvi -ZZ --encoding=ASCII --ldap-conf -h db.torproject.org -D uid=${USER},ou=users,dc=torproject,dc=org
* Copy-paste a previous `gid` that is also a `debianRoleAccount`
* Bump the `gidNumber` to the latest `gidNumber` in the file plus
one
* Copy-paste a previous `uid` role entry (with a `objectClass: debianRoleAccount`).
* Bump the `uidNumber` to the latest `uidNumber` in the file plus
one.
* Use the same `gidNumber` as the one generated in the first step.
* Change the `uid=`, `uid:`, `gecos:` and `cn:` lines.
* Add a `allowedGroups: NEW-GROUP` line to host entries that should
have this role account deployed.
3. propagate the changes from the LDAP host:
sudo -u sshdist ud-generate && sudo -H ud-replicate
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment