Re: [fpc-pascal] Check root privs

2005-03-14 Thread Michaÿffffb3 Woÿffff9fniak
> Normally, you can do getuid or geteuid to get the > user ID, > if it is zero, you know it's the root user. As simple as that, wow. :) Thanks Mike Send instant messages to your online friends http://uk.messenger.yahoo.com ___ fpc-pascal maillist -

Re: [fpc-pascal] Check root privs

2005-03-14 Thread Michael Van Canneyt
On Mon, 14 Mar 2005, [iso-8859-1] Michaÿb3 Woÿ9fniak wrote: Hi there. First of all, I am new here and would like to say "Hello" to all you guys on this list. Now the question: I am developing a simple program under Linux, that is to use RAW sockets. Therefore it *requires* root priviledges

[fpc-pascal] Check root privs

2005-03-14 Thread Michaÿffffb3 Woÿffff9fniak
Hi there. First of all, I am new here and would like to say "Hello" to all you guys on this list. Now the question: I am developing a simple program under Linux, that is to use RAW sockets. Therefore it *requires* root priviledges. Does anyone know how to check for them _before_ I get an AV tryin