fritz - fritz, der Dateibaumspion
fritz [--longjobs|-l] [--mail|-m] [--kde|-k] [--qmail2postfix|-q] [user] ...
fritz, der Dateibaumspion is looking in some users homedirectories to silently correct settings (permissions on files and directories, qmail mailspool, ACLs, ...) and delete junk as old netscape cache files, old core dumps,... . He also readjusts web browsers to store cache in /tmp/username. fritz warns if users stack lots of unread or uncategorized mail in ~/Mailbox or ~/mbox and marks users which have not used their account for some time. fritz also warns users using more than 95 percent of their personal disk quotas.
If fritz is called with usernames, he acts only on these users homedirectories, otherwise fritz iterates over every user.
Since fritz muddles in users homedirectories, please review his code before use. fritz needs unlimited access to homedirectories; it should run under userid 0 on conventional unix systems and needs an admin token when working on homedirectories in AFS.
show a short help screen or the manual page
Normally tasks wich may require a long runtime like searches for core dumps in home directories are not performed; turning --longjobs on also runs these routines.
Send mail with warnings to users. ## TODO ##: Currently no mail is sent to users at all.
Update KDE configuration (~/.kde/) from /etc/skel/ if the user has KDE configured.
Migrate user away from GNOME towards default desktop environment.
Convert QMails user defined mail aliases (~/.qmail and ~/.qmail-*) to PostFix and Sendmail compatible aliases (~/.forward and ~/.forward+*).
Check quota and warn if it exceeds a configured treshold
Check permissions on homedirectory and important files: ~/.netrc, ~/.ssh/* ... Try to find out the time of last login via acces times on ~/Desktop/, ~/.history and ~/.bash_history and friends.
Check permissions, size and access times for directories and files important to mail delivery: ~/, ~/.mail/ ~/.forward
Update KDE configuration if requested
TODO: should also disable automatic startup of akonadi/strigi/nepomuk -- see http://www.my-guides.net/en/guides/linux/314-how-to-disable-nepomuk-strigi-and-akonadi-in-kde4 and /usr/share/doc/akonadi-server/README.Debian.gz for further information.
Migrate a user away from GNOME by forcible copying /etc/skel/.dmrc - for the moment this applies only to students (UID == 550).
Create working directories for Matlab - for the moment this applies only to students (UID == 550).
Migrate a user away from old KDE before kde-plasma by forcible copying /etc/skel/.dmrc.
Delete obsolete dotfiles and directories like .sawfish or .winprofile
Delete Trash files; delete old cache files from netscape, mozilla, galeon and opera and set their new cache directoy to /tmp/... and a reasonable size of 10 MBytes. HOW CAN I DO THIS WITH OPERA?
Delete old core dumps (only when called with option 'longjobs').
Set certain ACL entries if user is on AFS: ~/... <user> all (only longjobs) ~/ admin:www read (to read .forward) ~/mail/... admin:www writeacces for dovecot (ToDo: remove this ugly HACK) ~/ system:anyuser lookup (at most) ~/public_html admin:www read ~/Public system:anyuser read ~/public system:anyuser read
If requested, convert QMails user defined mail aliases (~/.qmail and ~/.qmail-*) to PostFix and Sendmail compatible aliases (~/.forward and ~/.forward+*). Be careful to call vacation the right way.
Copyright 2002-2015, Andreas Hirczy <ahi@itp.tugraz.at>
fritz is distributed under the GNU General Public License. See the file COPYING for details. fritz is available from https://itp.tugraz.at/~ahi/Computer/SW/
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA