Not OpenBSD related, but this can be achieved with standard Unix
permissions. From memory you'll need something like:

Two groups, one for read-only (R), the other for write access (W). Anyone
in the latter group should also be in the former. Then create the following
directory structure:

foo (group = R, owner = nobody, permissions = 0050)
foo/bar (group = W, owner = nobody, permissions =  2075)

The directory foo/ acts as a gate, only members of R can see below. The
foo/bar directory holds your files, readable by anyone (except this is
restricted to the group R by foo/), writable by members of W. The setgid
bit ensures new files are writable by other members of W.



On 7 January 2014 13:57, Jon S <[email protected]> wrote:

> Hi!
>
> I have a situation where I would like to assign one group of people rights
> to read a file and a different group of people the right to read and write
> the same file (there are actually many files).
>
> A different way to describe it would be: I would like a file to belong to
> two groups, one with RW-permissions and one with R--permissions.
>
> The files are accessed using ssh.
>
>
> I run OpenBSD 4.9. Installing new software and/or upgrading to latest
> OpenBSD would be acceptable partial solutions.
>
> Any hints or ideas on how I can accomplish this?
>
> --
> <-------------------------------------------->
> Jon Sjöstedt
>
> <[email protected]>

Reply via email to