-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
Hello all.
AFAIK, you can't do that. When you fork everything is copied, including
the UID.
To achieve something similar, you need to launch another process (but
you'll need to be root to launch it as another user)
Regards,
David Santiago
On F
If I have the code below to fork a child process, how would the right
way be to fork as a different user? I gather that fork() itself does
not support that, so some other method must be used.
Regards,
Lars
-
#!/usr/bin/perl
use strict;
use warnings;
use English;# for $UID and such
my