OSDN Git Service

* mkgroup.c (main): Print "root" group with local admins group sid
authorcorinna <corinna>
Wed, 26 Nov 2003 15:47:44 +0000 (15:47 +0000)
committercorinna <corinna>
Wed, 26 Nov 2003 15:47:44 +0000 (15:47 +0000)
and gid 0.

winsup/utils/ChangeLog
winsup/utils/mkgroup.c

index a4dc2a7..677ab6e 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-26  Corinna Vinschen  <corinna@vinschen.de>
+
+       * mkgroup.c (main): Print "root" group with local admins group sid
+       and gid 0.
+
 2003-11-19  Corinna Vinschen  <corinna@vinschen.de>
 
        * Makefile.in: Add rules to build ipcrm and ipcs.
index d6a5092..82039e5 100644 (file)
@@ -637,6 +637,14 @@ main (int argc, char **argv)
   if (print_local)
     {
       /*
+       * Very special feature for the oncoming future:
+       * Create a "root" group account, being actually the local
+       * Administrators group.  Since user name, sid and gid are
+       * fixed, there's no need to call print_special() for this.
+       */
+      printf ("root:S-1-5-32-544:0:\n");
+
+      /*
        * Get `system' group
        */
       print_special (print_sids, &sid_nt_auth, 1, SECURITY_LOCAL_SYSTEM_RID,