Weird problem with script/server, lighttpd, and FreeBSD

I installed lighttpd from ports on my FreeBSD-5 system last night,
to play with that instead of WEBrick for development work.

I installed it, and ran script/server, and got this:

[[email protected] discostu]$ script/server
=> Booting lighttpd (use ‘script/server webrick’ to force WEBrick)
=> Rails application started on
=> Call with -d to detach (requires absolute paths in
=> Ctrl-C to shutdown server (see config/lighttpd.conf for options)
2006-02-01 12:36:55: (server.c.432) Are you nuts ? Don’t apply a SUID
to this binary

And that’s where it ends, complaining about an SUID bit on “this

I’ve checked the lighttpd binary, and it’s non-SUID:

[[email protected] discostu]$ ls -lsa /usr/local/sbin/lighttpd
134 -r-xr-xr-x 1 root wheel 136676 Jan 31 23:06

And I can’t find anything else in the mix that might be going SUID.
Anyone using lighttpd on FreeBSD that can shed some light on this?


Hi Wade,

I got the same problem, and I remember resolving it by changing your
primary group to other name than wheel. then restart freebsd.

I remember it was a bug of lighttpd’s suid logic. I think this problem
is specific to Freebsd.

Hope this isn’t too late.


Lighttpd (as of revision 416) checks to see if either the effective uid
OR the
effective GID is zero and refuses to run if so.

So if you are the root user, or (like me) are in group wheel (0) by
lighttpd will not run under your username. Either make something else
default group (probably best) or change your gid before starting


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs