At 12:44 PM -0600 1/31/10, Robert Wyatt sent email regarding Re: [Denyhosts-user] unban an ip with denyhosts: >Marconi wrote: >>For OS X, the data dir is /var/lib/denyhosts/data >>so I changed the script but get sed errors: >> >>sed: 1: "allowed-hosts": command a expects \ followed by text >>sed: 1: "hosts.deny": extra characters at the end of h command >> >>>which sed; sw_vers >> >> >>/usr/bin/sed >>ProductName: Mac OS X >>ProductVersion: 10.4.11 >>BuildVersion: 8S165 >> >>sed itself does not seem to have a version function. > >No, not the one that shipped with the OS. Can we have a look at your >script? I have a 10.4 machine I can test it on.
#!/bin/bash # Denyhosts is stopped elsewhere before running this script. # cd /var/lib/denyhosts/data sed -i "/$1/d" * cd /etc sed -i "/$1/d" hosts.deny # # Denyhosts is started elsewhere after running this script. ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Denyhosts-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/denyhosts-user
