I guess you would actually make your script owner as root, and chmod it 
755 ...


Marconi wrote:
> At 3:41 PM -0500 1/31/10, Steve Jakob sent email regarding Re: 
> [Denyhosts-user] unban an ip with denyhosts:
>   
>> On Mac OS X the sed command with "-i" option takes a file extension 
>> parameter. The original file will be saved to a new file with the 
>> supplied extension, and any changes are applied to the old file. For 
>> example, if the second sed comand above were changed to:
>>
>>      sed -i .bak "/$1/d" hosts.deny
>>
>> ... the original contents of the hosts.deny file would be saved as 
>> hosts.deny.bak, while the supplied address would be removed from 
>> hosts.deny.
>>     
>
> 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?
>
>
> ------------------------------------------------------------------------------
> 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
>   

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