476
edits
mNo edit summary |
No edit summary |
||
|
Contact a LUG sysadmin if you need help using a different TLS client application for this purpose.
== Notes for sysadmins ==
=== Scripts ===
Shell has scripts for administrators in /root/ to automate various tasks.
These are:
* add-new-user.sh
** Use this to make a new user account. useradd doesn't make home directories a ZFS dataset. (useful in case a user wants to rollback their homedir to a snapshot)
* generate-homepage.sh
** Generates the index.html page for shell. Called by a cronjob to run every minute.
* list-administrators.sh
** Prints a (colored) list of administrators.
* list-logins.sh
** Prints an ordered list of user logins
* list-user-creation.sh
** Displays a sorted list of each user's creation date based on their homedir
* user-popularity.awk
** Prints number of unique IPs that visited each user's shell website path
** Plan to use this to make "most popular user of the day" blurb in generate-homepage.sh at some point
=== ZFS ===
Shell uses ZFS for the main data pool, which is mounted at /home (and each user's homedir is an individual dataset)
Some helpful commands are:
* View all ZFS snapshots
** zfs list -t snapshot
* Delete specific snapshot
** zfs destroy -r zhome@example-snapshot
* View general pool status (and disk health)
4AM EST a cronjob recursively makes a snapshot of /home and each user's homedir, prefixed by "Auto".4:15AM EST a cronjob recursively deletes >8th oldest /home snapshot starting with "Auto".View all ZFS snapshots: zfs list -t snapshotDelete specific snapshot: zfs destroy -r zhome@example-snapshotGeneral pool status: zpool status
| |||