From owner-freebsd-questions Sat Aug 10 2:58:13 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE7C237B400 for ; Sat, 10 Aug 2002 02:58:10 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2DE043E72 for ; Sat, 10 Aug 2002 02:58:09 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk ([IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.5/8.12.5) with ESMTP id g7A9w8Fo095593; Sat, 10 Aug 2002 10:58:08 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.5/8.12.5/Submit) id g7A9w2kt095592; Sat, 10 Aug 2002 10:58:02 +0100 (BST) Date: Sat, 10 Aug 2002 10:58:02 +0100 From: Matthew Seaman To: Adam Lofstedt Cc: "'freebsd-questions'" Subject: Re: Samba and folder file permissions Message-ID: <20020810095802.GE90130@happy-idiot-talk.infracaninophi> References: <000001c23fd7$062260b0$6601a8c0@5adam5> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <000001c23fd7$062260b0$6601a8c0@5adam5> User-Agent: Mutt/1.5.1i 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 Fri, Aug 09, 2002 at 12:00:25PM -0700, Adam Lofstedt wrote: > The problem is permissions. When I map the network drive, I map it > using a generic username/password, rather than mapping a separate > drive for each client's home folder. In my Samba config, I give > access to the /home directory to this user's folder. However, this > Samba user cannot write to the individual client's directory within > /home. What I want is a way to give this generic user permission to > write to each folder within /home. How can I get folder permission > inheritance? What you can do is make all of your clients and your generic build user belong to the same unix group, and use the samba config to enforce group writablilty: [client-downloads] path =3D /home read only =3D no valid users =3D @cdnload force group =3D +cdnload create mask =3D 0664 force create mode =3D 0664 directory mask =3D 0755 force directory mode =3D 02775 And create the group 'cdnload' and add your samba user and your clients to that group: pw group add -n cdnload -M smbusr,client1,client2,client3 =46rom the Unix side you can set the umask to 02 or 07 to permit group write for each user account. However, unfortunately there's no way to enforce that and you clients could change that at will. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Tel: +44 1628 476614 Marlow Fax: +44 0870 0522645 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message