Frequently Asked Questions: Managing Shared Accounts
Some files in our society space are owned by an ex-admin and can't be modified... help!
We often get asked it we can resolve this by changing the files' owner to be one of the current admins. For various reasons we prefer not to do this, but are happy to enable modification by changing the "group writable" flag on the files. Just ask the sysadmins and we'll get it done.
If you want to make your files group-writable yourself, the appropriate command is chmod g+rw <filenames>. A variant like chmod -R g+rw *, executed from the base of the society home directory, will recursively make all your files group-readable and writable. If the files' group is not the same as the society, chgrp <groupname> <filenames> will do the trick.
How do I hand access to my shared account to my successor?
Make sure that the new person has a personal account on the machine. Once this has been set up, one of the people who currently has access to the account should email sysadmins@srcf.ucam.org with the details of the user to be added and we'll get it sorted out for you.
If you cannot contact anyone who currently has access, please ask the most senior officer in the organisation responsible for the account to email the sysadmins.
During the handover period you should make sure that all file permissions are updated appropriately. Don't leave any files which are owned by the outgoing administrator and not group-writable; you should use e.g. chgrp -R <groupname> * to set your files' group appropriately and e.g. chmod -R g+rw to make it readable and writable by other members of the society admin group.
How do I set up a society crontab?
This is a little bit messy as you have to use a cgi script to run the crontab command. Make a new directory in your society public_html space and place in there the crontab that you want, in a file called crontab and the following script:
#!/usr/bin/perl
print "Content-type:text/plain\n\n";
system("/usr/bin/crontab", "./crontab");
print "Done!\n";
print "This script is running as the user ";
system("/usr/bin/whoami");
print " and that user's crontab is now\n";
system("/usr/bin/crontab", "-l");
Give the script the appropriate permissions (775), then navigate to the right place with your web browser and run it. It should give you confirmation of the new crontab. You can then delete the script and the crontab file.