managing_group_accounts
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| managing_group_accounts [2013/10/12 20:02] – Text replace - "<div style="width:55%;margin:0 auto;border:2px solid;border-left:20px solid;border-color:#d9534f;text-align:center;padding:5px;font-weight:bold;">This page is out of date and needs rewriting.<br /> _hayden | managing_group_accounts [2026/09/27 07:59] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{OODNotice}} | ||
| - | |||
| - | Group accounts are necessary when a number of users need access to the same set of files, for example, a society webpage. All of the users who wish to edit these files **MUST** be tardis account holders. | ||
| - | |||
| - | Two things need set up, the group (or role) account, and the the unix group. Both will have the same name. | ||
| - | |||
| - | |||
| - | ====== Creating the group/role account ====== | ||
| - | |||
| - | |||
| - | |||
| - | ===== Add normal user account ===== | ||
| - | |||
| - | Use '' | ||
| - | |||
| - | |||
| - | ===== Removing the account password ===== | ||
| - | |||
| - | Create a file called '' | ||
| - | | ||
| - | # extended LDIF | ||
| - | # | ||
| - | # LDAPv3 | ||
| - | # base < | ||
| - | # filter: cn=admin | ||
| - | # requesting: ALL | ||
| - | # | ||
| - | # | ||
| - | # Use ldapmodify, bound as root or as the user | ||
| - | | ||
| - | dn: uid=GROUPNAME, | ||
| - | changetype: modify | ||
| - | replace: userPassword | ||
| - | userPassword: | ||
| - | |||
| - | Then do: | ||
| - | ldapmodify -x -D cn=admin, | ||
| - | |||
| - | |||
| - | ====== Creating the group ====== | ||
| - | |||
| - | |||
| - | ===== Get a group ID ===== | ||
| - | |||
| - | ldapsearch -x -b ' | ||
| - | Pick a new one that's one higher than the previous highest one, etc. | ||
| - | |||
| - | |||
| - | ===== Create the group ===== | ||
| - | |||
| - | Create a file (or use the one in '' | ||
| - | | ||
| - | # GROUPNAME, Group, tardis.ed.ac.uk | ||
| - | dn: cn=GROUPNAME, | ||
| - | objectClass: | ||
| - | objectClass: | ||
| - | cn: GROUPNAME | ||
| - | gidNumber: GROUPNUMBER | ||
| - | memberUid: SOMEUSER | ||
| - | |||
| - | //Does the memberUid entry need to be there when creating? Probably not, but you'll know at least one user to put in the group when you make the account, and it saves you messing with ldapvi later// | ||
| - | |||
| - | Save it as '' | ||
| - | ldapadd -x -D cn=admin, | ||
| - | This needs the LDAP admin password. | ||
| - | |||
| - | |||
| - | ====== Adding users to the group ====== | ||
| - | |||
| - | Using ldapvi: | ||
| - | | ||
| - | ldapvi -h ldap.tardis.ed.ac.uk -D ' | ||
| - | |||
| - | // | ||
| - | You will be presented with vim, looking a bit like: | ||
| - | | ||
| - | # ldapvi(1) | ||
| - | | ||
| - | 0 cn=gliding, | ||
| - | objectClass: | ||
| - | objectClass: | ||
| - | cn: GROUPNAME | ||
| - | userPassword: | ||
| - | gidNumber: GROUPNUMBER | ||
| - | memberUid: SOMEMEMBER | ||
| - | |||
| - | |||
| - | Add memberUid entries at the bottom for each for each user required. | ||
| - | Save the file and quit vim, and the groups will be updated. | ||
| - | |||
| - | |||
| - | ====== Allowing sudo access ====== | ||
| - | |||
| - | Allow the users to su to the role account by editing / | ||
| - | |||
| - | |||
| - | ====== Creating group webspace ====== | ||
| - | |||
| - | //Same as user webspace, with obvious changes//. | ||
| - | |||
| - | See [[general_administration# | ||
| - | |||
| - | |||
| - | ====== Adding a vhost ====== | ||
| - | |||
| - | There are two ways to add vhosts. One for fussy people and one for lazy people. | ||
| - | |||
| - | The lazy option is to simply add the appropriate CNAME for www in DNS. Then requests aimed at http:// | ||
| - | |||
| - | Fussy people (with scripts that care that the user's seeing the same url the script thinks they' | ||
| - | |||
| - | |||
| - | * An entry in davros:/ | ||
| - | * Directories and things in / | ||
| - | |||
| - | |||
| - | |||
| - | ====== Usage ====== | ||
| - | |||
| - | Advise your group account users to then use "sudo -u < | ||
| - | |||
| - | |||
managing_group_accounts.1381608174.txt.gz · Last modified: (external edit)
