Differences between revisions 5 and 8 (spanning 3 versions)
Revision 5 as of 2024-03-13 11:59:47
Size: 1451
Editor: ConorBennett
Comment: Added instructions for static password rotation
Revision 8 as of 2024-03-13 14:50:11
Size: 1498
Editor: NickBannon
Comment: target|linktext
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Webcams run off [[Motsugo]].

A script on motsugo then runs from webcam's crontab to pull the images off camwhore and put them into /home/other/webcam/

Webpage data for webcam.ucc.asn.au is in /home/other/webcam/public-html
The [[https://webcam.ucc.asn.au/|webcam page]] is served via [[Mussel]], the `webcam` user fetches images in a `crontab(5)` job on [[Motsugo]].
Line 9: Line 5:
The [[webcam page|https://webcam.ucc.asn.au]] requires authentication as of 2024. You can use your UCC LDAP/AD account, or you can use a shared login for non-UCC members. The [[https://webcam.ucc.asn.au/|webcam page]] requires authentication. You can use your UCC LDAP/AD account, or you can use a shared login for non-UCC members.
Line 19: Line 15:
This section details instructions on how to rotate the static webcam password. You must either be a wheel member or a committee member to do this. The static password is stored in a `htpasswd` file at `/home/other/webcam/public-html/password`. To update this file, run the following command: This section details instructions on how to rotate the static webcam password. You must either be a wheel member or a committee member to do this. The static password is stored in a [[https://httpd.apache.org/docs/current/programs/htpasswd.html|htpasswd]] file at `/home/other/webcam/public-html/password` (this is the `AuthUserFile` in `/home/other/webcam/public-html/.htaccess` ). To update this file, run the following command:
Line 23: Line 19:
`sudo` may prompt you for your account password. The changes should be effective immediately; navigate to https://webcam.ucc.asn.au/ and test it out. Note that browsers cache basic auth passwords for the session, so you may need to restart your browser (e.g. if you've already authenticated with LDAP credentials). `sudo(1)` may prompt you for your account password. The changes should be effective immediately; navigate to https://webcam.ucc.asn.au/ and test it out. Note that browsers cache basic auth passwords for the session, so you may need to restart your browser (e.g. if you've already authenticated with LDAP credentials).

The webcam page is served via Mussel, the webcam user fetches images in a crontab(5) job on Motsugo.

Authentication

The webcam page requires authentication. You can use your UCC LDAP/AD account, or you can use a shared login for non-UCC members.

The login details for this shared account can be found on boards in UCC, Unigames, and UniSFA.

This means that access to the webcams can only be gotten by visiting Cameron Hall.

This shared account will also have rotating passwords, so keep an eye out every 2 months for a new login.

Password Rotation

This section details instructions on how to rotate the static webcam password. You must either be a wheel member or a committee member to do this. The static password is stored in a htpasswd file at /home/other/webcam/public-html/password (this is the AuthUserFile in /home/other/webcam/public-html/.htaccess ). To update this file, run the following command:

sudo htpasswd -bc /home/other/webcam/public-html/password <username> <passwd>

sudo(1) may prompt you for your account password. The changes should be effective immediately; navigate to https://webcam.ucc.asn.au/ and test it out. Note that browsers cache basic auth passwords for the session, so you may need to restart your browser (e.g. if you've already authenticated with LDAP credentials).