hi!
i have separated the password and permission files in all my installations. so all the databases in one installation share a password file, but each database can have its own permission file. some databases share permission files too. the changes are extensive, probably too many! but i just thought of a way that wouldn't be too difficult.
in auth.pl sub auth_check_permissions, look for:
Code:
else {
($userid =~ /^([A-Za-z0-9]+)\.\d+$/) ? ($username = $1) : return (0,0,0,0,0);
}
# Get the permissions.
open (PER, "<$auth_pw_file") or &cgierr("unable to open password file. Reason: $!");
@permissions = <PER>;
close PER;
right above #Get the permissions, insert the following:
Code:
if (($username eq 'admin') && ($db_setup eq 'ABR')) {
return (1,1,1,1,1,1,1,1);
}
note above, i have three additional permissions compared to original dbman. so if you still have the original 5, just return the 5 you want. also change 'admin' to the users you want. if the if statement isn't true, the script will pull permissions from the password file, so don't give them admin permissions in password file.