Saturday, August 16, 2008

Shorewall and Limit: how to reset a Limit counter

...i have still no ide how to reset the counter in /proc/net/ipt_recent/

but found a way to circumvent the blocking of an address for some time:

1. sudo iptables -L | grep -e "Chain.*%Limit\([0-9]\+\)\? "
 - this lists all the Limit Chains
2. sudo iptables -I %Limit -m recent --name SSHA --remove -s IPADDRESS
 - in case the Chain is calld %Limit and the name for the recent module is SSHA


References:

Friday, August 8, 2008

OS X Leopard (>= 10.5.4 + Security Update 2008-005) - 'Add Printer' for non-admin users

funnily enough the latest Security Update seems to have outdated this hack.

now the Add Printers... dialogue shows all broadcasted cups printers. however, users cannot add them without authenticating as an Administrator of the computer.

a possible solution seems to be to edit a different part of the cupsd.conf file. look for this section and change it accordingly...
  # All administration operations require an administrator to authenticate...
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
# AuthType Default
# Require user @SYSTEM
Require valid-user
Order deny,allow
</Limit>


Referenes: