Re: [bitfolk] File and folder permissions for static web pag…

Top Page

Reply to this message
Author: Samuel Bächler
Date:  
To: users
Subject: Re: [bitfolk] File and folder permissions for static web pages
Thank you for the answers.

2013/3/12 Samuel Bächler <baechler@???>

> Dear All
>
> I installed nginx and configured it to use /var/www/default-page as its
> root folder for static web pages. ls -l /var/www returns
>
> drwxrw----. 2 nginx nginx 4096 Mar 9 11:00 default-page
>
> I do connect to the HOST where nginx is installed using ssh with
> public key encryption: ssh my_user@HOST
>
> my_user is just a plain vanilla user. I added my_user to group
> nginx. I used my_user to create web content such as a index.html file.
>
> ls -l /var/www/default-page returns
>
> -rw-r--r--. my_user my_user 827 Mar 5 21:30 index.html
>
> Does anyone see any security problems with this setup?
>


So, drwxr-xr-x my_user my_user will suit my needs best.

Regards

Sam