From ea4c7557dd7048ba7a266d28de9e43fe0e282a52 Mon Sep 17 00:00:00 2001 From: Samba Release Account Date: Sun, 17 Aug 1997 21:03:12 +0000 Subject: connecting to IPC$ goes under the guest account. the IPC$ share should be treated no differently than any other share (for any security setting: user, server or share). this will clear up a bug where, when clients connect to the IPC$ share, this used to be done under the guest account. the standard_sub_basic() macros will substitute the _guest_ account for %U, causing the samba server to look different from when the client then connects to any other share. lkcl (This used to be commit 38526569608f6eb5f098efee7013037873d140bf) --- source3/smbd/uid.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'source3/smbd/uid.c') diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c index cdc4e474c6..4ffdb0923e 100644 --- a/source3/smbd/uid.c +++ b/source3/smbd/uid.c @@ -253,12 +253,10 @@ BOOL become_user(int cnum, uint16 vuid) if (!become_gid(gid)) return(False); #ifndef NO_SETGROUPS - if (!IS_IPC(cnum)) { /* groups stuff added by ih/wreu */ if (current_user.ngroups > 0) if (setgroups(current_user.ngroups,current_user.groups)<0) DEBUG(0,("setgroups call failed!\n")); - } #endif if (!Connections[cnum].admin_user && !become_uid(uid)) -- cgit