database permissions reset each time I run gw

gebickford
Posts: 6
Joined: Mon Jun 18, 2001 3:25 pm

database permissions reset each time I run gw

Post by gebickford »

I do not have root access on my server, so I have to run Webinator as a regular user. I have asked that the web server be added to my group, which might improve things.

My problem is that in order for the search forms on the web to work, all or most of the files in db have to be publicly writable. But every time gw runs the files are reset to be only readable or writable by the user.

I've tried setting the db directory ug+s but that doesn't seem to have made any difference. Both texis and gw are u+s but not g+s

For now, I've created a crontab that runs gw and then resets the permissions. Is there a better solution?

My options for gw are "-d- -D9 -M -o -t5 -fshtml -v". The OS is OpenBSD with the linux compatibility libraries.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

database permissions reset each time I run gw

Post by mark »

Webinator should not be run as root anyhow, except maybe during install.

If both texis and gw are u+s and are owned by the same user the default perms should be fine. Perhaps the webserver or OS is preventing the u+s setting from working. The only other option is to run gw as the user that the CGI texis is run as during searches.