Change UID after changing GID (#368)

environments/ppa-mbqj77/deployments/1
Clément Oudot 13 years ago
parent 1bf161bc00
commit a15920b695
  1. 4
      lemonldap-ng-manager/example/scripts/lmConfigEditor

@ -7,9 +7,9 @@ use POSIX;
use strict;
eval {
POSIX::setuid( ( getpwnam('__APACHEUSER__') )[2] );
POSIX::setgid( ( getgrnam('__APACHEGROUP__') )[2] );
print STDERR "Running as $>\n";
POSIX::setuid( ( getpwnam('__APACHEUSER__') )[2] );
print STDERR "Running as uid $> and gid $)\n";
};
our $refFile = `mktemp`;

Loading…
Cancel
Save