Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Aug 2002 10:58:02 +0100
From:      Matthew Seaman <>
To:        Adam Lofstedt <>
Cc:        "'freebsd-questions'" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Samba and folder file permissions
Message-ID:  <20020810095802.GE90130@happy-idiot-talk.infracaninophi>
In-Reply-To: <000001c23fd7$062260b0$6601a8c0@5adam5>
References:  <000001c23fd7$062260b0$6601a8c0@5adam5>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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:

        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.



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
with "unsubscribe freebsd-questions" in the body of the message

Want to link to this message? Use this URL: <>