diff options
author | Noel Power <noel.power@suse.com> | 2017-03-22 20:06:13 +0000 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2018-08-13 12:56:38 +0200 |
commit | 807611fe3bc9647e82feeb1d2b2d909fa35ad8ef (patch) | |
tree | 5d57b85f2e0c5599167ccce205c969f9fa7f5646 /source3 | |
parent | 2162b45bd27b0e2eaf73ffb71e085e61b76a973c (diff) | |
download | samba-807611fe3bc9647e82feeb1d2b2d909fa35ad8ef.tar.gz |
s3/smbd: allow set quota for non root user (when built with --enable-selftest)
Currently it appears you need to be root to set quotas, for test purposes
this requirement needs to be relaxed.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13553
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/nttrans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 6967e4e1b37..5937380fb85 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -2710,7 +2710,7 @@ static void call_nt_transact_set_user_quota(connection_struct *conn, ZERO_STRUCT(qt); /* access check */ - if (get_current_uid(conn) != 0) { + if (get_current_uid(conn) != sec_initial_uid()) { DEBUG(1,("set_user_quota: access_denied service [%s] user " "[%s]\n", lp_servicename(talloc_tos(), SNUM(conn)), conn->session_info->unix_info->unix_name)); |