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
> [http://www.freepascal.org/docs-html/rtl/baseunix/fpg
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 G
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';
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.
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.
--
David Touzeau -- Linux Ubuntu Dapper 6.0.6
FreePascal-Lazarus,perl,delphi,php icq:160018849
Hello list,
currently I am using RemObjects Pascal Script as a scripting language
for a project of mine.
All scripts are simple programs that use "API" exported from the main
program. They have and some global variables defined as well.
example:
begin
Context.ShowMessage(Params.Param('message')
Many Thanks vincent
exactly what i want to find !!!
Vincent Snijders a écrit :
TOUZEAU DAVID schreef:
Dear
I would like to crypt some files/strings/datas with fpc on Linux
systems.
What unit can i use to provide this feature ?
I there a standard unit or somebody had already developped a such
On Wed, 11 Oct 2006, TOUZEAU DAVID wrote:
> Dear
>
> I would like to crypt some files/strings/datas with fpc on Linux systems.
> What unit can i use to provide this feature ?
> I there a standard unit or somebody had already developped a such unit ?
Look at the idea or blowfish units in the FC
TOUZEAU DAVID schreef:
Dear
I would like to crypt some files/strings/datas with fpc on Linux systems.
What unit can i use to provide this feature ?
I there a standard unit or somebody had already developped a such unit ?
Maybe you can use this:
http://wiki.lazarus.freepascal.org/DCPcrypt
Vin
Dear
I would like to crypt some files/strings/datas with fpc on Linux systems.
What unit can i use to provide this feature ?
I there a standard unit or somebody had already developped a such unit ?
--
David Touzeau
--
Linux Ubuntu Dapper 6.0.6
FreePascal-Lazarus,perl,delp
10 matches
Mail list logo