Return to BSD News archive
Newsgroups: comp.unix.bsd.bsdi.misc Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!lll-winken.llnl.gov!uwm.edu!math.ohio-state.edu!howland.reston.ans.net!vixen.cso.uiuc.edu!cdc2.cdc.net!newsfeed.concentric.net!winternet.com!mr.net!news.mr.net!NEWS!not-for-mail From: mury@goldengate.net (Mury) Subject: Setuid Message-ID: <61a7cc$c1438.2d6@NEWS> Date: Wed, 26 Jun 1996 19:28:20 GMT X-Newsreader: Forte Free Agent 1.0.82 Lines: 19 Sorry, but my C programming skills are way out of touch. I want to let some part-time workers be able to add users without having root access, so I believe I have to run a script setuid. If someone could help me with the syntax of this C program, or recommend a better way of accomplishing the same, I would deeply appreciate it. It will run the perl script "newadd.pl", which runs the adduser, edquota, etc. code. Thanks. #include <sys/types.h> #include <unistd.h> main(int){ setuid(setuid 0); system ("perl /scrog/newadd.pl"); }