aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2008-02-28 11:11:17 +0000
committerCorinna Vinschen <corinna@vinschen.de>2008-02-28 11:11:17 +0000
commit3f06d9545e327dd8a19c5e20a679412d0118445e (patch)
tree13f353c799dd18772fa01dde24d5ad51da80af6e
parent47b65da0c18650d0d035d1386a657b8f22d73e9d (diff)
downloadnewlib-3f06d9545e327dd8a19c5e20a679412d0118445e.zip
newlib-3f06d9545e327dd8a19c5e20a679412d0118445e.tar.gz
newlib-3f06d9545e327dd8a19c5e20a679412d0118445e.tar.bz2
* mkpasswd.c (main): Simplify generating SYSTEM entry. Add entries
for LocalService and NetworkService accounts. Change comments.
-rw-r--r--winsup/utils/ChangeLog5
-rw-r--r--winsup/utils/mkpasswd.c20
2 files changed, 10 insertions, 15 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index fcd4143..04e665a 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -1,3 +1,8 @@
+2008-02-28 Corinna Vinschen <corinna@vinschen.de>
+
+ * mkpasswd.c (main): Simplify generating SYSTEM entry. Add entries
+ for LocalService and NetworkService accounts. Change comments.
+
2007-12-23 Brian Dessent <brian@dessent.net>
* Makefile.in (cygcheck.exe): Don't link to ntdll.
diff --git a/winsup/utils/mkpasswd.c b/winsup/utils/mkpasswd.c
index e4d9a96..63cfa27 100644
--- a/winsup/utils/mkpasswd.c
+++ b/winsup/utils/mkpasswd.c
@@ -702,21 +702,11 @@ main (int argc, char **argv)
{
if (print_local)
{
-#if 0
- /*
- * Get 'Everyone' group
- */
- print_special (print_sids, &sid_world_auth, 1, SECURITY_WORLD_RID,
- 0, 0, 0, 0, 0, 0, 0);
-#endif
- /*
- * Get 'system' group
- */
- print_special (print_sids, &sid_nt_auth, 1, SECURITY_LOCAL_SYSTEM_RID,
- 0, 0, 0, 0, 0, 0, 0);
- /*
- * Get 'administrators' group
- */
+ /* Generate service starter account entries. */
+ printf ("SYSTEM:*:18:544:,S-1-5-18::\n");
+ printf ("LocalService:*:19:544:U-NT AUTHORITY\\LocalService,S-1-5-19::\n");
+ printf ("NetworkService:*:20:544:U-NT AUTHORITY\\NetworkService,S-1-5-20::\n");
+ /* Get 'administrators' group (has localized name). */
if (!print_local_groups)
print_special (print_sids, &sid_nt_auth, 2, SECURITY_BUILTIN_DOMAIN_RID,
DOMAIN_ALIAS_RID_ADMINS, 0, 0, 0, 0, 0, 0);