On 2010-01-31, at 8:18 PM, Marconi wrote:
> Indeed. I'd done this just a few minutes before seeing your post and got:
> 
> sed: rename("allowed-hosts", "allowed-hosts.bkp"): Permission denied
> sed: rename("hosts.deny", "hosts.deny.bkp"): Permission denied
> 
> How does one use sudo within a saved script?


Personally, I'd just run the whole script with sudo rather than use sudo within 
the script. Also, I'd make the script owned by root with permissions 744 to 
remind myself to use sudo to run it.

Steve Jakob
Wide Skies Information Technologies


------------------------------------------------------------------------------
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

Reply via email to