hello
Server : Apache/2.4.52 (Ubuntu) System : Linux HAN2 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64 User : servadmin ( 1000) PHP Version : 8.1.2-1ubuntu2.25 Disable Function : NONE Directory : /usr/share/webmin/usermin/ |
#!/usr/bin/perl
# Set the Usermin session cookie to be some other user
require './usermin-lib.pl';
&ReadParse();
$access{'sessions'} || &error($text{'switch_euser'});
($cookie, $url) = &switch_to_usermin_user($in{'user'});
print "Set-Cookie: $cookie\n";
&redirect($url);
&webmin_log("switch", undef, $in{'user'});