Re: Proper way to start a program at log-on

From: Eric Crist (ecrist_at_secure-computing.net)
Date: 05/25/04

  • Next message: Mike: "Solved: FreeBSD as print server w/CUPS + samba + apsfilter"
    To: gerard-seibert@rcn.com
    Date: Mon, 24 May 2004 20:18:36 -0500
    
    

    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"
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Mike: "Solved: FreeBSD as print server w/CUPS + samba + apsfilter"

    Relevant Pages

    • Re: New Neo-Narnia book coming in two weeks!
      ... If this is how he's marketing it, let's all bend an ear to ... In a couple minutes the C.S. Lewis estate will file ... suit, and we should be able to hear the explosion. ...
      (rec.arts.sf.written)
    • Re: New Neo-Narnia book coming in two weeks!
      ... If this is how he's marketing it, let's all bend an ear to ... In a couple minutes the C.S. Lewis estate will file ... suit, and we should be able to hear the explosion. ...
      (rec.arts.sf.written)