Proper way to start a program at log-on

Eric Crist ecrist at
Mon May 24 18:20:15 PDT 2004

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 at


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.


	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"

More information about the freebsd-questions mailing list