From owner-freebsd-questions Thu Nov 29 21:12: 3 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hermes.pressenter.com (hermes.pressenter.com [209.224.20.19]) by hub.freebsd.org (Postfix) with ESMTP id 9D80C37B405 for ; Thu, 29 Nov 2001 21:11:58 -0800 (PST) Received: from [209.224.22.57] (helo=daggar) by hermes.pressenter.com with smtp (Exim 3.16 #1) id 169fxe-0007Wj-00; Thu, 29 Nov 2001 23:11:43 -0600 From: "Stephen Hilton" To: "FreeBSD Questions" Cc: "Christopher Farley" Subject: Re: samba: "force group" problem? Date: Thu, 29 Nov 2001 23:12:13 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20011129155833.B3582@northernbrewer.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thursday, November 29, 2001 3:59 PM Christopher Farley said: > > I'm running an old version of Samba (2.0.7), and can not seem to make > 'force group' work. I've got a group called 'samba', but all new files > are created owned by group 'wheel'. A level 10 debug log seems to > indicate that it is changing the GID to 'samba', but it doesn't ever really > happen. > > I've seen at least two other people describe this exact problem when > running Samba under FreeBSD, and I'm beginning to wonder if this is a > bug. > I just created a new user named "newgroup", unix group "newgroup" using Samba 2.2.1a from ports, and added a new Samba share with these parameters: [packages] path = /var/packages read only = No guest ok = No create mask = 700 directory mask = 700 force user = newgroup force group = newgroup Created several sub dirs and test files, all wound up correctly owned and correct permissions. bsdbox1# pwd /var/packages/NewFolder/NewFolder2 bsdbox1# ls -la total 3 drwx------ 2 newgroup newgroup 512 Nov 29 22:58 . drwx------ 3 newgroup newgroup 512 Nov 29 22:58 .. -rwx------ 1 newgroup newgroup 58 Nov 29 22:58 New Wave Sound.wav All seems ok here Christopher. Regards, Stephen Hilton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message