LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-12-2009, 11:16 AM   #1
Ron_09
LQ Newbie
 
Registered: May 2009
Posts: 5

Rep: Reputation: 0
suid application fails to call execv


Want to setup web server so that where cgi stub/fastcgi stub will be running as root when web server instance runs as normal non privilege user say webservd. I set ownership of fastcgistub
directory to webservd and ran chmod 4755 on fastcgistub executable (owned by root). I have entered dependent library path into /etc/ld.so.config
and ran ldconfig.
While processing fastcgi request I get stub connection failure. From strace and also through debugger I see following problem:-

fastcgi stub has forked a child process. But It is failing to call execv. While debugging found all the required parameters are correct. It is same when suid is not set and web server works fine.
Even I can execute that command from command line. What could be the problem.

Following the same process I can run it successfully on solaris using crle command for global linking.

I tested on linux 2.4.21-9 and linux 2.6.9-67, it fails in both.

What could be the problem? Please help.

Regards
Ron

N.B. Checked /etc/fstab file systems are default, nosuid or user option are not present.

Last edited by Ron_09; 05-12-2009 at 11:24 AM. Reason: Putting more clarification
 
  


Reply

Tags
ldconfig, linux, suid


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting a Java application from c++ using execv JaseyJaseJase Programming 1 09-17-2008 08:17 PM
Call external application 3saul Programming 5 01-11-2006 10:09 PM
SUID file drops suid bit on append? c_coder Programming 1 03-12-2004 08:59 AM
Ioctl() call fails Custer Linux - Wireless Networking 0 02-16-2004 01:47 PM
Call Other Application by one Program kiennd Programming 4 08-02-2003 02:52 AM


All times are GMT -5. The time now is 04:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration