[fpc-pascal] How to detect if my program is running with root/elevated privileges?
Mark Morgan Lloyd
markMLl.fpc-pascal at telemetry.co.uk
Mon Oct 28 11:42:59 CET 2013
Bart wrote:
> On 10/27/13, Marco van de Voort <marcov at stack.nl> wrote:
>
>> For windows there is winutils.iswindowsadmin(), for unix likes there is
>> fpgeteuid (which should return zero for root).
>
> Thanks a lot.
Also remember unix-style capabilities.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the fpc-pascal
mailing list