From owner-freebsd-questions Thu Dec 3 03:22:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA28935 for freebsd-questions-outgoing; Thu, 3 Dec 1998 03:22:33 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from tester.kleurbeeld.nl ([195.108.254.230]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA28926 for ; Thu, 3 Dec 1998 03:22:30 -0800 (PST) (envelope-from lurkie@wxs.nl) Received: from marc ([172.16.5.25]) by tester.kleurbeeld.nl (8.8.8/8.8.8) with SMTP id MAA11227; Thu, 3 Dec 1998 12:21:29 +0100 (CET) (envelope-from lurkie@wxs.nl) Message-ID: <199812031216280948.0997344C@wwwintern.kleurbeeld.nl> In-Reply-To: References: X-Mailer: Calypso Lite Version 2.40.41.08 Date: Thu, 03 Dec 1998 12:16:28 +0100 Reply-To: lurkie@wxs.nl From: "Marc Veldman" To: quintin@smlt.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Samba troubles. Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id DAA28931 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi Guys, Not sure who posted the original question: >> >I'm having a few problems with samba, I've setup the `smb.conf' to share >> >the user home directorys this works great and a *public* area where all >> >the lan users save there files. >> > >> >The problem: >> > >> >When user Mike saves a file in *public* `/home/samba/public' the file >> >automaticly sets the uid,gid to mike.mike, this means that user joe >> >doesn't have write access to Mike's files even if there public?? >> > >> >This problem is screwing up our accounting software :-( does anyone know >> >of a solution to this? >From man smb.conf: force user (S) This specifies a user name that all connections to this service should be made as. This may be useful for sharing files. You should also use it carefully as using it incorrectly can cause security problems. This user name only gets used once a connection is established. Thus clients still need to connect as a valid user and supply a valid password. Once connected, all file operations will be performed as the "forced user", not matter what username the client connected as. Default: no forced user Example: force user = auser there is also a 'force group', and a 'force create mode'. Hope this helps, Marc Veldman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message