Lines Matching refs:setuid
12 ** This program checks to see if your version of setuid works.
62 if (setuid(1) < 0)
63 printf("setuid(1) failure\n");
64 printuids("after setuid(1)", 1, 1);
80 if (setuid(0) == 0)
83 printf("MAYDAY! setuid(0) succeeded (should have failed)\n");
87 printf("setuid(0) failed (this is correct)\n");
89 printuids("after setuid(0)", 1, 1);
105 printf("\nThis system cannot use setuid (maybe use setreuid)\n");
109 printf("\nIt is safe to use setuid on this system\n");