in reply to Re^2: Perl script needs root privilegies
in thread Perl script needs root privilegies
You can change your uid in Perl by using POSIX::setuid, but setting your userid only works if you are already on uid 0. Also, using setuid programs or scripts is a dangerous practice, so I would try to limit what needs to be done by root as much as possible.
|
|---|