diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-09-19 03:30:20 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-09-19 03:30:20 +0000 |
commit | 1a04ea247680fa7ad1ae7dc3f9953f753d8cf955 (patch) | |
tree | ce11e07260860462372de088fa22daf2ad0cccd2 /source/smbd/sec_ctx.c | |
parent | d103371e8028efb6eec3c4b917b68734832f5844 (diff) | |
download | samba-1a04ea247680fa7ad1ae7dc3f9953f753d8cf955.tar.gz samba-1a04ea247680fa7ad1ae7dc3f9953f753d8cf955.tar.xz samba-1a04ea247680fa7ad1ae7dc3f9953f753d8cf955.zip |
don't try to initgroups in non root mode
Diffstat (limited to 'source/smbd/sec_ctx.c')
-rw-r--r-- | source/smbd/sec_ctx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/smbd/sec_ctx.c b/source/smbd/sec_ctx.c index 72e23306ece..830e759d093 100644 --- a/source/smbd/sec_ctx.c +++ b/source/smbd/sec_ctx.c @@ -222,6 +222,10 @@ BOOL initialise_groups(char *user, uid_t uid, gid_t gid) struct sec_ctx *prev_ctx_p; BOOL result = True; + if (non_root_mode()) { + return True; + } + become_root(); /* Call initgroups() to get user groups */ |