Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

server access php

Status
Not open for further replies.

bobrivers2003

Technical User
Oct 28, 2005
96
GB
i have created a simple php that runs and prints the output of an exec() function. Running it locally, it works fine. I ran ran it from a server i have space on in the www. It returned code 126 which means that the code could not be exectuted.

If I was setting up my own server (running linux) are there options in the admin setup section to allow certain pcs/users to connect and successfully run my sample exec() function?

Does anyone know of links/pages that I could read?


Many thanks
 
I would achieve that programatically and check against a file/table that is used to authenticate the users. It's like an ACL (access control list) that allows users to access that portion of the application.
It has to be given though, that the PHP allows execution of shell commands. SAFE MODE has to be off. If not, you're probably out of luck.
What kind of script do you want to execute?
Can you replicate the functionality in PHP?
 
Unfortunatly not. My goal is to create a web application that allows the execution of cleartool.exe (For rational clearcase) where the user choses the command, types a few arguments and the php does the rest. i will have full access to the server so will be able to alter settings such as safe mode.
 
Then an access control list will be the solution. I'd go with something that is a RBAC (role based access control) or GBAC (group based). Have a database solution, a table with groups, a permission table, and a table where users are assigned to groups. Your app validates the user and gives/denies access by the privs assigned to the groups the user has membership to.
 
That is sound advice thanks alot, I just wanted to see if it is possible.

Much appreciated :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top