I'm using the Config::Hosts to make updates to the /etc/hosts file. My script runs under my regular user account and so it is unable to write to the /etc/hosts which is owned by root.
Just a few extra notes:
Alexander
In reply to Re: Best way to write to a file owned by root?
by afoken
in thread Best way to write to a file owned by root?
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |