#121059 whereami: Allow normal users to run actions when whereami runs.

#121059#5
Date:
2001-11-25 06:35:15 UTC
From:
To:
It would be really great to be able to run commands as a stock user as
well as for root when whereami runs.

Basically, search all the home directories on the system for a
'.whereami.conf' or similar that, like the system one, is parsed and
run.

That would make it much easier to change system state as a normal user
when the system moves -- reconfiguring the default printer you use,
enabling or disabling system monitoring and the like.

        Daniel
--- Begin /etc/whereami/whereami.conf (modified conffile)
=any PATH=/etc/whereami/scripts:$PATH
=any export PATH
=any if grep -F -q -x "crt" iam >/dev/null; then
=any     xfree-crt true
=any else
=any     xfree-crt false
=any fi
+home /usr/bin/enable israfel
-home /usr/bin/disable -r 'The printer is not accessible.' israfel
+osa /usr/bin/enable lj8
-osa /usr/bin/disable -r 'The printer is not accessible.' lj8
=home SOCKS_SERVER='socks.rimspace.net'
=osa  SOCKS_SERVER='sockshost.osa.com.au'
=any set-socks ${SOCKS_SERVER}
+roaming defer-mail true
-roaming defer-mail false
=any cp /etc/resolv.conf $(postconf -h queue_directory)/etc/resolv.conf
=any /etc/init.d/postfix reload
-roaming /usr/sbin/sendmail -q	# Flush the mail queue
-roaming /etc/init.d/junkbuster restart
--- End /etc/whereami/whereami.conf