initial commit of file from CVS for smeserver-remoteuseraccess on Sat Sep 7 21:00:51 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 21:00:51 +10:00
parent 4589b3a7a2
commit f579aa9b88
41 changed files with 2983 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
root ALL=(ALL) ALL

View File

@@ -0,0 +1,22 @@
{
my %accounts;
tie %accounts, 'esmith::config', '/home/e-smith/db/accounts';
my $key;
my $value;
my $result = "";
while (($key,$value) = each %accounts)
{
my ($type, %properties) = split (/\|/, $value, -1);
if ($type eq 'user')
{
if (defined($properties{'Sudoer'}) && $properties{'Sudoer'} eq 'yes')
{
$result .= "$key ALL=(ALL) ALL\n";
}
}
}
$result;
}