welcome: please sign in

Diff for "AddingNewAdmins"

Differences between revisions 3 and 11 (spanning 8 versions)
Revision 3 as of 2011-02-25 09:13:07
Size: 480
Editor: ClintonEbadi
Comment: remember to make admin users domtool admins as well
Revision 11 as of 2022-03-05 20:22:28
Size: 2931
Editor: ClintonEbadi
Comment: remove top level heading
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Adding new admins = Guide to creating a new administrative user with admin privileges for various services.
Line 3: Line 3:
Currently, we do it this way: <<TableOfContents>>
Line 5: Line 5:
Fritz: TODO: Write a create-admin-user script that does this all automatically (add it to the scripts git repo)

`NAME` = Member's non-administrative username. All commands should be run from ServerGibran (or the current administrative server).

== Basic Setup ==

Steps required to create a minimally functional admin user.

=== Creating the user ===
Line 7: Line 16:
 - adduser NAME_admin
 - adduser NAME_admin wheel
/afs/hcoop.net/common/etc/scripts/create-user-new NAME_admin
sudo kadmin.local cpw NAME_admin # set randomly generated initial pw
Line 10: Line 19:
Deleuze:
{{{
 - cd /afs/.hcoop.net/common/etc/scripts
 - ./create-user NAME_admin
 - pts adduser NAME_admin system:administrators
 - bos adduser fritz NAME_admin
 - bos adduser deleuze NAME_admin
 - visudo
 - domtool-admin grant NAME_admin all
}}}
Mire:
{{{
 - visudo
}}}
Outpost:
{{{
 - nothing, only one username created there
}}}

The user will now exist in Kerberos, AFS, and DomTool but have no administrative permissions.

=== Administrative Email Lists ===

In `~hcoop/.domtool/hcoop.net` add the new admin users to the `admin_emails` list which will add them to the needed mail aliases to receive admin mail.

Also add `emailAlias "NAME_admin" "NAME";` so administrative emails are forward to the admin's normal mail account.

TODO: update AdminArea with list of lists that admins are expected to not ignore.

=== SSH Access, Sudo On Administrator-Only Servers, and Kerberos Admin ===

In Puppet, modify `modules/hcoop/manifests/init.pp` and add the new admin user to the `$admins` list. This will allow them to connect to all servers and have sudo which will also grant access to locally administered services like Postgres and MySQL.

This also grants them kerberos administrator privileges. ''FIXME'': do we make that optional? MitKerberos admin powers are very broad, and perhaps not all admins will need them.

=== Puppet Environment ===

Create a puppet environment for the new admin as described in [[ConfigurationManagement#Personal_Environments]] which allows them to actually make changes to system configuration. '''All system changes are made through Puppet.'''

=== Portal Admin ===

On the [[https://members.hcoop.net/portal/groups|Portal Groups Management Page]] add the admin's member account to the `root` group. This enables full access to portal administrative features and allows the admin to view support requests.

== Services ==

Although not strictly needed, the admin will not be able to handle all support requests without these.

=== DomTool Administrator ===

To grant full admin permissions: `domtool-admin grant NAME_admin priv all`

[[DomTool/ArchitectureOverview#Standard_ACL_classes]] has a list of all valid values for `priv` which can be used instead of `all` if more limited administrative permissions are desired.

=== AFS Administrator ===

AFS administrative permissions are controlled by membership in the `system:administrators` group, so if a user is intended to have AFS admin privileges: `pts adduser NAME_admin system:administrators`.

=== Wiki administrator ===

Add new admin's wiki account to the list on AdminGroup

----
CategorySystemAdministration

Guide to creating a new administrative user with admin privileges for various services.

TODO: Write a create-admin-user script that does this all automatically (add it to the scripts git repo)

NAME = Member's non-administrative username. All commands should be run from ServerGibran (or the current administrative server).

1. Basic Setup

Steps required to create a minimally functional admin user.

1.1. Creating the user

/afs/hcoop.net/common/etc/scripts/create-user-new NAME_admin
sudo kadmin.local cpw NAME_admin # set randomly generated initial pw

The user will now exist in Kerberos, AFS, and DomTool but have no administrative permissions.

1.2. Administrative Email Lists

In ~hcoop/.domtool/hcoop.net add the new admin users to the admin_emails list which will add them to the needed mail aliases to receive admin mail.

Also add emailAlias "NAME_admin" "NAME"; so administrative emails are forward to the admin's normal mail account.

TODO: update AdminArea with list of lists that admins are expected to not ignore.

1.3. SSH Access, Sudo On Administrator-Only Servers, and Kerberos Admin

In Puppet, modify modules/hcoop/manifests/init.pp and add the new admin user to the $admins list. This will allow them to connect to all servers and have sudo which will also grant access to locally administered services like Postgres and MySQL.

This also grants them kerberos administrator privileges. FIXME: do we make that optional? MitKerberos admin powers are very broad, and perhaps not all admins will need them.

1.4. Puppet Environment

Create a puppet environment for the new admin as described in ConfigurationManagement#Personal_Environments which allows them to actually make changes to system configuration. All system changes are made through Puppet.

1.5. Portal Admin

On the Portal Groups Management Page add the admin's member account to the root group. This enables full access to portal administrative features and allows the admin to view support requests.

2. Services

Although not strictly needed, the admin will not be able to handle all support requests without these.

2.1. DomTool Administrator

To grant full admin permissions: domtool-admin grant NAME_admin priv all

DomTool/ArchitectureOverview#Standard_ACL_classes has a list of all valid values for priv which can be used instead of all if more limited administrative permissions are desired.

2.2. AFS Administrator

AFS administrative permissions are controlled by membership in the system:administrators group, so if a user is intended to have AFS admin privileges: pts adduser NAME_admin system:administrators.

2.3. Wiki administrator

Add new admin's wiki account to the list on AdminGroup


CategorySystemAdministration

AddingNewAdmins (last edited 2022-03-05 20:22:28 by ClintonEbadi)