r19127: Fix bug 4152
authorVolker Lendecke <vlendec@samba.org>
Fri, 6 Oct 2006 12:19:46 +0000 (12:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:15:14 +0000 (12:15 -0500)
(This used to be commit 70038e8f7b3042c2732e7f8267cab0499972a819)

source3/utils/pdbedit.c

index 013eab18ce502c22128b82689eefa49de42c510a..ceb346d98744bcecdf1f7e8b694048441dd11c1b 100644 (file)
@@ -797,6 +797,12 @@ int main (int argc, char **argv)
                POPT_TABLEEND
        };
        
+       /* we shouldn't have silly checks like this */
+       if (getuid() != 0) {
+               d_fprintf(stderr, "You must be root to use pdbedit\n");
+               return -1;
+       }
+       
        bin = bout = bdef = NULL;
 
        load_case_tables();