[HPADM] quota -v command

From: Kory Wheatley (wheakory@isu.edu)
Date: Fri Jul 26 2002 - 15:05:43 EDT


I 've developed a quota web form that sends the post data to a C cgi
script, which in turn looks at the username and password to make sure
its a valid account on our hpux 11 system, which works great. The
problem is when the setuid root C program tries to use the quota -v
command I receive the following error
quota kory (uid 3333) permission denied this script is setuid root and
the permissions allow the web server access. Why would I receive this
error, I can do other commands this way.
Here is my C line of code

execl("/usr/bin/quota","quota","-v", username, (char*) 0);

-- 
#########################################
Kory Wheatley
Academic Computing Analyst Sr.
Phone 282-3874
#########################################
Everything must point to him.
--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:17 EDT