DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40538>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40538

           Summary: system('ls') called in cgi retuns -1 when run through
                    browser
           Product: Apache httpd-2
           Version: 2.0.52
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: All
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


i have a cgi script which calls system('ls') and system('a c executable') .
when it is run on the command line,works fine.but when it is run through web 
browser returns -1 permission denied.

i checked the permission, its 0755 for ls.and for c executable also its 0755
with root as user and root as owner.
while system('pwd') works fine through the browser also.

i think it is because of selinux.

so i added
chcon -R system_u:object_r:httpd_sys_script_exec_t <path to the c executable 
dir>.

say c execuable is license. 

Now it works through the browser.but when i run the executable(license) through
command line i get next shell not any output.


os : FC-3 
apache 2.0.52.
selinux enabled.

so how do make it work?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to