Share level user map

Daniel Fonseca daniel at med.up.pt
Thu Sep 3 18:31:35 GMT 1998


On Fri, 4 Sep 1998, Martha Peter wrote:

> Hi everybody,
> 
>  I have the following problem: I'd like to do some kind of user mapping
> but only for shares.
>  Let me explain. I have four users: bubu zuzu susu juju, their group is
> meme and their home directories are: /home/meme/<username> respectively.
>  I want to create a share with a path of /home/meme/common, and i have a
> user called meme. The directory is owned by meme and is group-writable.
>  I want to create this share so that any of the above users writes in it
> through samba let the owner of the file be meme. But only for this share,
> so the global user mapping is not a good solution for me.
>  I hope i could explain my problem clearly. 

I think I see what your problem is. I've done some similar things myself,
in a bigger, more confusing, scale (lots of cross-mixed directories and
users)! 

BTW, I looked for the Linux ACL pages and all the links pointed to the
exact same URL which doesn't exist anymore. Can anyone shed some light on
this matter?

Your problem here is basically a UNIX permissions one.

As for what samba is concerned, you have to set the umask for "group all
access", ie, "create mode = 0770" or whatever you wish in the pertaining
section of smb.conf, as long as you give the group full perms.

Don't forget to set the common directory with the sgid bit ("chmod 2770
dir") for this is the really important bit which makes the difference!

Hope to help,

Daniel Fonseca



More information about the samba-ntdom mailing list