Main ✸ Source Code ✸ Downloads ✸ API Documentation ✸ Mailing Lists ✸ Bugs ✸ Developers
PLEASE NOTE THAT THIS IS NOT RECOMMENDED FOR WEBSERVER USAGE.
The situations where you might want to run NaviServer as user root are rare to none. But NaviServer as a tool is so flexible that it can not only be used as webserver. It's possible (and has been done) to use it as some kind of application where serving webpages is not the primary target.
So it's possible to tell NaviServer to run as root using the -u switch at startup from the commandline.
Of course, you have to be root to do that:
./nsd -f -u root -g www -t ../sample-config.tcl
You can see the result in the security info:
... -main- Notice: nsmain: NaviServer/4.99.0 starting -main- Notice: nsmain: security info: uid=0, euid=0, gid=8, egid=8 ...
PLEASE NOTE THAT THIS IS NOT RECOMMENDED FOR WEBSERVER USAGE.
It's simply a convenience for people that need it to not have to rewrite code to achieve this.