auth: add SeDiskOperatorsPrivilege to get_root_nt_token to fix registry shares.
[ira/wip.git] / source3 / auth / token_util.c
index fc93060fc6a61e4cb235236db5862b90a11d7c42..6720a2cbd86cd4caa4a1a2527304f7c028dfa5e4 100644 (file)
@@ -105,6 +105,8 @@ NT_USER_TOKEN *get_root_nt_token( void )
        token = create_local_nt_token(NULL, &u_sid, False,
                                      1, &global_sid_Builtin_Administrators);
 
+       token->privileges = se_disk_operators;
+
        memcache_add_talloc(
                NULL, SINGLETON_CACHE_TALLOC,
                data_blob_string_const("root_nt_token"), token);