User Tools

Site Tools


miscellaneous_scripts

This is an old revision of the document!


Things which probably need scripted up

Automation

Adding user webspace
Should probably go onto tardis-adduser.py. Still, needs fixed. Needs to do the following…

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>/*

Account Stuff

We have some services where it is just not a good idea to auth against LDAP, however, this means we have to add accounts manually. We need a few scripts so users can deal with their own stuff. Ideally they should check that the password they are wanting to use is not their LDAP password.

**Wiki Accounts **\\Script to add account or reset password. **DB Accounts **\\Script to add databases in the user_n style, and reset passwords, etc.

miscellaneous_scripts.1143475635.txt.gz · Last modified: (external edit)