Differences between revisions 5 and 6
Revision 5 as of 2024-03-13 11:59:47
Size: 1451
Editor: ConorBennett
Comment: Added instructions for static password rotation
Revision 6 as of 2024-03-13 14:32:35
Size: 1593
Editor: motsugo
Comment: htpasswd doc link, .htaccess
Deletions are marked like this. Additions are marked like this.
Line 19: Line 19:
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 23:
`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).

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

Authentication

The 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 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).