Date: Mon, 24 May 2004 20:18:36 -0500 From: Eric Crist <ecrist@secure-computing.net> To: gerard-seibert@rcn.com Cc: freebsd-questions@freebsd.org Subject: Re: Proper way to start a program at log-on Message-ID: <200405242018.36662.ecrist@secure-computing.net> In-Reply-To: <20040524201806.22D7.GERARD-SEIBERT@rcn.com> References: <20040524110305.199A816A4E7@hub.freebsd.org> <20040524201806.22D7.GERARD-SEIBERT@rcn.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 24 May 2004 19:23, you wrote: > ********** Reply Separator ********** > Monday, May 24, 2004 8:18:06 PM > > Sorry Eric, but I am not the well versed in this OS yet. I was able to > create a simple script that works. The program is started at log-on and > stopped at shutdown without incident. > > However, I have no idea how to use 'setuid'. I looked it up in the > manual pages, and it seems to be a "C" library function. I know nothing > about how that works. Perhaps yo can give me a quick course on how to > use this function so that the program runs correctly. > > Thanks! > > Gerard Seibert > gerard-seibert@rcn.com Gerard, I just installed the dnetc program from ports (/usr/ports/misc/dnetc) and it actually installs a script in the /usr/local/etc/rc.d directory for you. Check that out. Your best bet is always using the ports tree. If you're not familiar with that, check out the freebsd site and the documentation on it. HTH -- A man goes to a tailor to try on a new custom-made suit. The first thing he notices is that the arms are too long. "No problem," says the tailor. "Just bend them at the elbow and hold them out in front of you. See, now it's fine." "But the collar is up around my ears!" "It's nothing. Just hunch your back up a little ... no, a little more ... that's it." "But I'm stepping on my cuffs!" the man cries in desperation. "Nu, bend you knees a little to take up the slack. There you go. Look in the mirror -- the suit fits perfectly." So, twisted like a pretzel, the man lurches out onto the street. Reba and Florence see him go by. "Oh, look," says Reba, "that poor man!" "Yes," says Florence, "but what a beautiful suit." -- Arthur Naiman, "Every Goy's Guide to Yiddish"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405242018.36662.ecrist>