s3 net: Remove uid==0 check from net groupmap
authorKai Blin <kai@samba.org>
Thu, 30 Jul 2009 09:25:37 +0000 (11:25 +0200)
committerKai Blin <kai@samba.org>
Thu, 30 Jul 2009 09:25:37 +0000 (11:25 +0200)
source3/utils/net_groupmap.c

index 74175fef51315d79d747817591dd0758f6dc3348..7180a953bbba15834d3db848cc052a4539ef2b00 100644 (file)
@@ -926,13 +926,6 @@ int net_groupmap(struct net_context *c, int argc, const char **argv)
                {NULL, NULL, 0, NULL, NULL}
        };
 
-       /* we shouldn't have silly checks like this */
-       if (getuid() != 0) {
-               d_fprintf(stderr,
-                         _("You must be root to edit group mappings.\n"));
-               return -1;
-       }
-
        return net_run_function(c,argc, argv, "net groupmap", func);
 }