[Samba] Samba + NFS + APACHE + PHP5 + Symfony
cucnews at yahoo.com
Wed Sep 10 19:48:03 GMT 2008
add to file
on the share in question
force user = apache-user
force group = apache-user
create mask = 0775
so, samba users files writes, just make sure you are matching the user and group to what apache can read :)
and still a safer bet is to force EVERYONE to access the filesystem with samba no matter if they have direct access to the server bacuse it will maintain consistency
--- On Wed, 9/10/08, François Legal <devel at thom.fr.eu.org> wrote:
> From: François Legal <devel at thom.fr.eu.org>
> Subject: Re: [Samba] Samba + NFS + APACHE + PHP5 + Symfony
> To: samba at lists.samba.org
> Date: Wednesday, September 10, 2008, 8:31 AM
> I think this is not so much samba related. Can't you
> just manage to make
> the webserver user a member of a group, which samba users
> accessing the
> files would also be member of ? Then you could only set the
> setgid bit on
> directories, and that would do the trick.
> On Wed, 10 Sep 2008 11:32:34 -0300, "Fabio da Silva
> <fjunior at univali.br> wrote:
> > Hello All, I'm new here so I expect to learn a lot
> using this mail list.
> > Let's directly to my problem.
> > I have here 2 servers, one running Apache + php5 +
> Symfony, and other
> > server with Samba and nfs.
> > The web-server mount the data from the samba-server by
> nfs. there are
> > developers that create and edit the data on the
> samba-server, but the
> > Apache and Symfony create and edit data too, and
> i'm having serious
> > troubles with permission.
> > The developers access de data by samba, with a single
> user. the
> > web-server, when mount the data, have permissoin to
> write, but when he
> > writes, the owner of the file is different from the
> owner in the samba
> > server.
> > In other words, when the apache user write some data,
> the samba user
> > cannot edit this data and vice-versa.
> > It's a little hard to explain, so i tried to make
> as easy as possible to
> > show the problem.
> > I apreciate some help to solve this problem.
> > Thanks for your atention
> > Att.
> > Fábio da Silva Júnior - fjunior at univali.br
> > Laboratório de Computação Aplicada - G10
> > Laboratório de Redes
> > UNIVALI - Universidade do Vale do Itajaí
> To unsubscribe from this list go to the following URL and
> read the
More information about the samba