[sf-lug] https://www.sf-lug.org/ September 01st
Michael Paoli
Michael.Paoli at cal.berkeley.edu
Wed Aug 28 07:15:21 PDT 2019
https://www.sf-lug.org/ September 01st
So, ... maybe someone wants to fix that PHP code? Or
suggest exactly what needs to be changed in it?
(I am not a PHP programmer).
Or better yet, as Jim suggested long ago, don't use PHP, but
have a crontab job update static page.
I think there's 'bout half a dozen folks (... yes, 5) with
sufficient login+sudo access to be able to implement
either of those solutions.
Y'all don't need to have me do *everything*. ;-}
references/excerpts:
$ sed -ne '/next meeting/,/Cafe Enchante/p' /var/www/www.sf-lug.org/index.php
echo "The next meeting is on <b>" . date('l F dS', $meeting);
if (date('l', $meeting) == "Sunday") {
$mtg_time = "11:00 AM till 1:00 PM";
} else {
$mtg_time = "6:00 PM till 8:00 PM";
}
echo ", from $mtg_time</b>, at the Cafe Enchante, on Geary at 26th Ave
in San Francisco.";
$
$ hostname --fqdn; sudo sh -c '(cd /etc/sudoers.d/ && for u in [!Rl]*;
do sudo -l -U "$u" | sed -ne '\''/^User .* may run/,${/^User
/{p;n};/chsh/d;/sflugwww/p;/ ALL$/p}'\'' ; done)'
balug-sf-lug-v2.balug.org
User grantbow may run the following commands on balug-sf-lug-v2:
(root) /bin/su - sflugwww
User jstockford may run the following commands on balug-sf-lug-v2:
(root) /bin/su - sflugwww
User kdavalos may run the following commands on balug-sf-lug-v2:
(root) /bin/su - sflugwww
User mpaoli may run the following commands on balug-sf-lug-v2:
(ALL) NOPASSWD: ALL
User rick may run the following commands on balug-sf-lug-v2:
User sflugwww may run the following commands on balug-sf-lug-v2:
User thawley may run the following commands on balug-sf-lug-v2:
(root) /bin/su - sflugwww
$
More information about the sf-lug
mailing list