On Sat, Nov 08, 2003 at 10:13:21PM -0600, Mike Vidal wrote:
> I can run yaws under root but when I try to change the user I get
> this error. I think the permissions on the log files etc. are
> correct. I'm running yaws 1.30 under freebsd. My config file is at
> the end of the email
> username =3D www
> #end then a set of servers
> # enter hostname and IP here
> <server localhost>
> port =3D 8080
> listen =3D 10.0.50.160
> docroot =3D /usr/local/www/yaws
Just do not use `username =3D www', but start yaws as user http://www. The
`username=3D' construct is just needed in case you want to use a
privileged port, eg. 80. In that case you still have to start yaws as
root, but it will change its uid to one given after opening the port.
OTOH, I just tried setting `username =3D carsten' and starting Yaws as
carsten, and that worked. Setting `username =3D www-data' and starting
as carsten does not work, of course.
Carsten Schultz (2:38, 33:47), FB Mathematik, FU Berlin
PGP/GPG key on the pgp.net key servers,=20
fingerprint on my home page.