Michael Taboada wrote: > I have a script to unban a user from denyhosts, but every time I run it > it either unbans everyone, or unbans many of the people, even though I > told it to only unban one ip address.
You are using it wrong, its as simple as that. You are supposed to use it with a parameter, a single IP address, if you don't add the parameter then it just deletes everything. > If anyone could write a revised script, that would be great. > I know people have told me to use the -I for a backup file, but that Its -i (not -I). > doesn't seem to do anything (or I don't know how to use that command > line switch, hence the request to write a revised script). > Script is below: Possible improvement: > #!/bin/bash > # Denyhosts is stopped elsewhere before running this script. > # if [ $# != 2 ]; then printf "Use: %s <ip-address>\n", $0 exit 1 fi ... and the rest of your script -- René Berber ------------------------------------------------------------------------------ _______________________________________________ Denyhosts-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/denyhosts-user
