setuid(root)

Search this archive.

From: Joseph Miller (jmiller@eyes.arizona.edu)
Date: Tue 14 Mar 2000 - 05:34:38 IST


I am trying to use setuid() to avoid having to run my svgalib program as root.  In my simple minded way, I logged on as root, did an id; and saw that my uid was 0 (number 0).  In the main program, I included #include <unistd.h>, and then the command setuid(0);  When I ran the program as a mere mortal, "insuficient IO priviledges" error occured again.

What am I missing?  Thanks in advance.

Joe Miller


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:23 IST