mojosetup
mojosetup copied to clipboard
No formal way to test for admin rights...
This bug report was migrated from our old Bugzilla tracker.
Reported in version: unspecified Reported for operating system, platform: All, All
Comments on the original bug report:
On 2007-05-22 04:06:49 -0400, Ryan C. Gordon wrote:
There's no way to refuse to install a package if the installer isn't running as the superuser.
MojoSetup.info.isadmin should be a boolean of whether the given account has administrator rights, and there might be some use in having a formal attribute to Setup.Package that tests this...but then, what do you do if you have several Setup.Packages and only one needs admin?
Is "admin" enough, or should we deal with finer-grained rights?
--ryan.