Difference between revisions of "General Administration"
(→Providing a user with web space) |
|||
Line 6: | Line 6: | ||
<code>/usr/sbin/tardis-adduser</code>. The script prompts you to enter the | <code>/usr/sbin/tardis-adduser</code>. The script prompts you to enter the | ||
details straight off the application form, please note that usernames should be | details straight off the application form, please note that usernames should be | ||
− | no greater than 8 characters. | + | no greater than 8 characters. (That said, we already have some longer user names; |
+ | at least try to ensure that the first 8 characters are unique.) Punctuation should | ||
+ | be avoided --- for example, the wiki has problems with underscores. | ||
With the account added, sysmans will be informed, and the user will be emailed | With the account added, sysmans will be informed, and the user will be emailed |
Revision as of 13:20, 9 August 2007
Contents
Adding a new user account
foo@gallifrey:~$ sudo tardis-adduser
The tardis-adduser script lives in cvs and is installed on gallifrey at
/usr/sbin/tardis-adduser
. The script prompts you to enter the
details straight off the application form, please note that usernames should be
no greater than 8 characters. (That said, we already have some longer user names;
at least try to ensure that the first 8 characters are unique.) Punctuation should
be avoided --- for example, the wiki has problems with underscores.
With the account added, sysmans will be informed, and the user will be emailed their username and password and a link to a webpage on how to login.
Don't worry about allusers.
Removing a user
Beware: We have not removed many accounts before, so take care and pay attention to what the script is doing. If you are at all uncertain ask someone else to do it.
On gallifrey, use the tardis-removeuser
script, as root.
Providing a user with web space
This currently needs to be done manually:
foo@gallifrey:~$ sudo mkdir /var/autofs/www/users/<username> foo@gallifrey:~$ sudo mkdir /var/autofs/www/users/<username>/pages foo@gallifrey:~$ sudo mkdir /var/autofs/www/users/<username>/cgi-bin foo@gallifrey:~$ sudo mkdir /var/autofs/www/users/<username>/stats foo@gallifrey:~$ sudo chown -R `getent passwd <username> | cut -d: -f 3-4` /var/autofs/www/users/<username>/cgi-bin foo@gallifrey:~$ sudo chown -R <username>:www-data /var/autofs/www/users/<username>/pages foo@gallifrey:~$ sudo chown -R root:root /var/autofs/www/users/<username>/stats foo@gallifrey:~$ sudo chmod 755 /var/autofs/www/users/<username>/*
Actually I've scripted this in davros:/root/make_webdir . Just make the first argument the username.
Changing a user password
On any machine with a proper LDAP setup (currently gallifrey or mccoy) use
passwd
normally.
Reading the support inbox
foo@mccoy:~$ sudo su - support support@mccoy:~$ mutt
You can also use pine
instead of mutt
if you prefer.
Once you have dealt with a piece of support mail, please move it to a folder with the user's name so that others don't repeat your efforts, but can still find the messages later. Similarly, put any mail you send in a folder with the recipient's user name. If the person you are dealing with is not a Tardis user, use a folder named after their email address.
Mailing list adminstration
http://www.tardis.ed.ac.uk/admin/mail/ecartis.html
Adding or removing an administrator
The appropriate edits need to be made to /etc/sudoers and /root/adminschange.ldif and then updated with ./root/modifyadmins.sh on mccoy. Edits may also need made to /etc/aliases and updated with newaliases, also on mccoy, to add the user to sysmans.