• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6774: Configuration page: TWiki falsely proclaims the CGI user is "root"

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine Configure Low New   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

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

ItemTemplate
Summary Configuration page: TWiki falsely proclaims the CGI user is "root"
ReportedBy TWiki:Main.DavidTonhofer
Codebase 5.0.2
SVN Range TWiki-5.1.0-rc1, Mon, 18 Jul 2011, build 21779
AppliesTo Engine
Component Configure
Priority Low
CurrentState New
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r2 - 2011-07-23 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback