Re: httpd. chroot, security and user homepage

2016-06-30 Thread Alexander Hall
On Thu, Jun 30, 2016 at 08:21:12PM +0200, Johan Tärnklint wrote: > Ok thank you. > > If I understod you right here is what I have done > > From my user. > > ls -all (second 'l' is excessive) > > lrwxr-xr-x 1 root empty 27 Jun 30 20:11 domain1 -> > /var/www/users/domain1 > lrwxr-xr-x 1 r

Re: httpd. chroot, security and user homepage

2016-06-30 Thread Johan Tärnklint
Ok thank you. If I understod you right here is what I have done >From my user. ls -all lrwxr-xr-x 1 root empty 27 Jun 30 20:11 domain1 -> /var/www/users/domain1 lrwxr-xr-x 1 root empty 24 Jun 30 20:11 domain2 -> /var/www/users/domain2 >From root #/var/www/users/ # ls -all total 16 d

Re: httpd. chroot, security and user homepage

2016-06-30 Thread Alexander Hall
On Wed, Jun 29, 2016 at 09:37:36PM +0200, Stefan Sperling wrote: > On Wed, Jun 29, 2016 at 08:15:35PM +0200, Johan Tärnklint wrote: > > Seeking advice / security tips. > > > > Is it safe to create /var/www/htdocs/user1 and symlink to their home > > folder? > > > > Then set permissions to user1:

Re: httpd. chroot, security and user homepage

2016-06-29 Thread Stefan Sperling
On Wed, Jun 29, 2016 at 08:15:35PM +0200, Johan Tärnklint wrote: > Seeking advice / security tips. > > Is it safe to create /var/www/htdocs/user1 and symlink to their home folder? > > Then set permissions to user1:www on /var/www/htdocs/user1 ? > > Does it break the chroot? Is it safe? Better s

httpd. chroot, security and user homepage

2016-06-29 Thread Johan Tärnklint
Seeking advice / security tips. Is it safe to create /var/www/htdocs/user1 and symlink to their home folder? Then set permissions to user1:www on /var/www/htdocs/user1 ? Does it break the chroot? Is it safe? Better solution? New OpenBSD user and very happy. Thanks in advance. Johan