Mailing List Archive



Back to the month index Back to the list index

Juergen Immel (jim@iag-net.de)
Thu, 22 Apr 1999 17:32:09 +0200


From: "Juergen Immel" <jim@iag-net.de>
Subject: AW: your mail
Date: Thu, 22 Apr 1999 17:32:09 +0200
Message-ID: <000801be8cd5$48e14c80$1901a8c0@pc-ji.iag-net.de>

> Hi,
>
> You wrote:
>
> > I want to export an Database to an directory who is owned by user xy and
> > group wwwmsql. The authorization is
> > rwx to owner,group and --- to other.
> > I use from an guarded Website about w3-msql:
> >
> > if(system("/usr/local/Hughes/bin/msqlexport -s';' db table >
> > /www/test/usr/$file") < 0).....blah,blah,blah
> >
> > The msql-user is msql and group=wwwmsql.
> >
> >
> > Problem : msqlexport can`t write in the directory because he
> runs as nobody
> > and www.
>
> yupp, cgi-scripts run with the permissions of the http daemon.
> So you can set the owner/group of the dir to nobody.www, and perms to 755;
> or put the nobody user into the wwwmsql group, set owner/group of
> the dir to
> yx.wwwmsql (as you already have) and set the perms to 775.
>

I set the perms to 770 and it works fine .
So only user and group can write and read the dir.

Thanks

Jürgen

  |N |O |C |
--|--|--|--|-------------
  | GROVE
  Network Operation Center
http://www.grove.de
http://www.iag-net.de