blob: 51230413fa9685f537e3d5284fdec972e3df9bc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/usr/bin/perl
$| = 1;
open(STDERR, ">&STDOUT");
use warnings;
use CGI;
use IPC::Open2;
$q = CGI->new;
print( "Content-type: text/plain\n\n");
if( $q->param('r') && $q->param('n') ) {
unless ( system( '/usr/sbin/piny-suid', $ENV{'REMOTE_USER'}, 'rmaccess', $q->param('r'), $q->param('n') ) == 0 ) {
die( 'rmaccess was unsuccessful.' );
};
} else {
print 'Missing parameters.';
};
|