in reply to Re^2: Running a daemon process as another user
in thread Running a daemon process as another user
print "USER: ". getpwuid($<) . "\n";
USER will be root, but when I do a ps -ef it does:
Sure it is, because $< is the real uid (you used to be root).
Use the effective uid $> to display the new identity. See perlvar.
Cheers, Sören
|
|---|