Author Topic: Web Virtual host directory permissions chage on restart  (Read 1636 times)

don

  • Zen Apprentice
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Web Virtual host directory permissions chage on restart
« on: May 08, 2013, 01:29:04 am »
Hi - I have used the Zentyal web interface to create a virtual web host - www.robertson.net.nz

I have also created a Zentyal Group called wwwdev for people who work on the virtual host

In the Samba setup, have shared the virtual host's directory with the wwwdev group, and given the wwwdev group 'Administer' permission on the share

From the command line, I have changed permissions on the directory to:

drwxrwx---+ 4 www-data wwwdev 4096 Apr 26 21:15 www.robertson.net.nz/


When I restart the server, the directory for the virtual host gets changed to

drwxrwx---+ 4 sync __USERS__ 4096 Apr 26 21:15 www.robertson.net.nz/

Connecting to the site with a web browser give me "You don't have permission to access / on this server"

Is there any way to set this up so the permissions are correct after rebooting?

Cheers,


Don

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: Web Virtual host directory permissions chage on restart
« Reply #1 on: May 08, 2013, 12:59:14 pm »
That's because of samba acl's setting. You have here two options, not to set Zentyal setting ACL's for any samba share (through a config key in /etc/zentyal/samba.conf) or not to use samba shares for that folder



Marcus

  • Forum Moderator
  • Zen Samurai
  • *****
  • Posts: 395
  • Karma: +12/-0
    • View Profile
    • Professional IT Service
Re: Web Virtual host directory permissions chage on restart
« Reply #2 on: May 12, 2013, 04:32:35 pm »
Hello don,

Installing suPHP could also be an alternate fix...

Best,

Marcus