The eternal 'how to allow user to edit www-data files' problem.
Smoot Carl-Mitchell
smoot at tic.com
Tue Apr 12 16:31:55 UTC 2022
On Tue, 2022-04-12 at 16:56 +0100, Chris Green wrote:
> On Tue, Apr 12, 2022 at 08:52:02AM -0700, Smoot Carl-Mitchell via
> ubuntu-users wrote:
> > On Tue, 2022-04-12 at 16:11 +0100, Chris Green wrote:
> > >
> > >
> > > But with the default 022 umask everywhere group members won't be
> > > able
> > > to write all files will they?
> >
> > That is correct with the default umask. You can have the user
> > change
> > its login umask, if you want the files group writable by default.
>
> Yes, thanks, that does seem to solve my problem.
>
> I'm sure I tried playing with the setgid bit before and for some
> reason it didn't work but maybe I just got something wrong. Anyway
> it
> seems to work as I want now! :-)
Glad to help out. You can also do even finer grain control per
directory with ACLs, but use of the directory setgid bit is simpler for
most use cases.
More information about the ubuntu-users
mailing list