diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-11-26 15:47:44 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-11-26 15:47:44 +0000 |
commit | f25babdf0723698552fe84e82a6fccf099f505cb (patch) | |
tree | e287ffd24aa195333a1ebaf950f0cb92df34ccb3 | |
parent | cb55867514230d86e2383f0a52ee8d2c6fd6dd7c (diff) | |
download | cygnal-f25babdf0723698552fe84e82a6fccf099f505cb.tar.gz cygnal-f25babdf0723698552fe84e82a6fccf099f505cb.tar.bz2 cygnal-f25babdf0723698552fe84e82a6fccf099f505cb.zip |
* mkgroup.c (main): Print "root" group with local admins group sid
and gid 0.
-rw-r--r-- | winsup/utils/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/utils/mkgroup.c | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index a4dc2a7b9..677ab6edd 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -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. diff --git a/winsup/utils/mkgroup.c b/winsup/utils/mkgroup.c index d6a5092ec..82039e58c 100644 --- a/winsup/utils/mkgroup.c +++ b/winsup/utils/mkgroup.c @@ -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, |