The configuration page says under "CGI setup" that the CGI user is root.
The codeline that checks that is in "twiki/bin/configure"
eval { $WebServer_uid = getlogin() || getpwuid($>) || ''; };
The process that runs this has RUID = apache, EUID = apache
But it seems that
getlogin()
(which consults utmp data, I think) returns 'root'
--
TWiki:Main/DavidTonhofer
- 2011-07-22
Googling around,
getlogin() || getpwuid($>)
seems to be the standard way to find out the CGI user. What server OS do you have? Any special apache configuration?
--
TWiki:Main.PeterThoeny
- 2011-07-23