The eternal 'how to allow user to edit www-data files' problem.
Peter Flynn
peter at silmaril.ie
Tue Apr 12 18:18:11 UTC 2022
On 12/04/2022 17:29, Karl Auer wrote:
> On Tue, 2022-04-12 at 08:52 -0700, Smoot Carl-Mitchell via ubuntu-users
> wrote:
>> [some good stuff about setgid and so on]
>
> I confess that on several websites I have a cron job that runs every
> minute and does something like "chown -R www-data:www-data
> /var/www/html ; chmod -R u=rw,go=r /var/www/html"
I used a similar technique for many years, except that the group was me
(chown -R www-data:peter /var/www/html; chmod -R ug=rw,o=r /var/www/html)
Then I could log in with ssh -X and run Emacs in an X window to edit the
site with psgml, so the XML was always validatable.
Peter
More information about the ubuntu-users
mailing list