From: Michael Adam Date: Tue, 15 Apr 2008 18:41:14 +0000 (+0200) Subject: auth: add SeDiskOperatorsPrivilege to get_root_nt_token to fix registry shares. X-Git-Tag: samba-3.3.0pre1~2641^2~98^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6bb107b17d557c27d035ca518ab61296814a3cea;p=thirdparty%2Fsamba.git auth: add SeDiskOperatorsPrivilege to get_root_nt_token to fix registry shares. Michael --- diff --git a/source/auth/token_util.c b/source/auth/token_util.c index fc93060fc6a..6720a2cbd86 100644 --- a/source/auth/token_util.c +++ b/source/auth/token_util.c @@ -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);