in reply to Re: Best way to write to a file owned by root?
in thread Best way to write to a file owned by root?
I did try running my script as sudo, yes, but I get errors because I have use statements for modules that the root user does not know about. Also, my script outputs files that I want to be owned by my system user, not root.
The sudo module looks promising. Thanks! I will take a look at it and report my findings when I get a chance. Thanks for your help!
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Best way to write to a file owned by root?
by afoken (Chancellor) on Mar 14, 2017 at 07:00 UTC | |
|
Re^3: Best way to write to a file owned by root?
by thanos1983 (Parson) on Mar 14, 2017 at 11:38 UTC | |
by afoken (Chancellor) on Mar 14, 2017 at 21:32 UTC | |
by nysus (Parson) on Mar 14, 2017 at 22:25 UTC | |
by afoken (Chancellor) on Mar 15, 2017 at 06:42 UTC | |
by nysus (Parson) on Mar 15, 2017 at 14:09 UTC | |
| |
by nysus (Parson) on Mar 14, 2017 at 20:21 UTC | |
by Anonymous Monk on Mar 14, 2017 at 21:37 UTC |