infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
CGI scripts
david_barr
I was just trying to call hcienginerun from a CGI script. The problem is that the web server runs under a special user-id (www). I tried writing a setuid wrapper program that would call hcienginerun, but hcienginerun is a Perl script, and it is smart enough to know that it is being called setuid, and it runs with a bunch of security restrictions that prevent it from working. For example, the library search path reverts to the one that is compiled into Perl, and it can't find even the default Perl libraries.
I could try running the web server as Hci, but that's kind of insecure. I could try using the suexec module to get it to run as HCI.
Does anyone have any examples of CGI scripts to start and stop Cloverleaf threads and processes?
Find more posts tagged with
Clovertech
Comments
Kevan Riley
Threads are easier that processes (from a file owner/user perspective. Thread start/stops talks to the process over a socket, so the web server user only has to have permissions to run the hcicmd script. Processes are harder. I have not yet figured out how to manage processes as another user with still having the process started and owned by hci. I am probably going to have to resort to sudo.
Kevan Riley