Many thanks i found the function GetEUID i'll try it
http://www.cs.uwc.ac.za/~firstyear/manuals/doc/units/unitsse36.html#x53-41900012.3
Pete Cervasio a écrit :
On Wednesday 11 October 2006 20:44, Michalis Kamburelis wrote:
Pete Cervasio wrote:
The better way would be to use the
TOUZEAU DAVID wrote:
Dear
I need to detect if the program is executed as root privileges on Linux
system.
Did somebody had developped a such function ??
Best regards.
Well you can try GetEnv('USER') = 'root'; or GetEnv('UID') = '0'; but
there may be better ways to check this.
Andrew
On Wednesday 11 October 2006 19:37, Andrew Haines wrote:
TOUZEAU DAVID wrote:
Dear
I need to detect if the program is executed as root privileges on Linux
system.
Did somebody had developped a such function ??
Best regards.
Well you can try GetEnv('USER') = 'root'; or
Pete Cervasio wrote:
On Wednesday 11 October 2006 19:37, Andrew Haines wrote:
TOUZEAU DAVID wrote:
Dear
I need to detect if the program is executed as root privileges on Linux
system.
Did somebody had developped a such function ??
Best regards.
Well you can try GetEnv('USER') = 'root';
On Wednesday 11 October 2006 20:44, Michalis Kamburelis wrote:
Pete Cervasio wrote:
The better way would be to use the geteuid function in the libc unit,
It would be even better to use FpGetEUid function from the BaseUnix
unit. See