Re: Confused about connection between an option in rc.conf and the associated action?

james.cook_at_utoronto.ca
Date: 03/13/05

  • Next message: Dan Langille: "The FreeBSD Diary: 2005-02-20 - 2005-03-12"
    Date: 13 Mar 2005 00:34:01 -0500
    To: "Ronny Hippler" <replies.20.r11roadster@spamgourmet.com>
    
    

    On Sat, Mar 12, 2005 at 09:46:39PM -0500, Ronny Hippler wrote:
    > On Sat, 12 Mar 2005 19:15:18 -0700, Sancho2k.net Lists wrote:
    >
    > >Having said that, I can't see where sshd_enable is used anywhere on my
    > >system, although OpenSSH starts at boot...
    >
    > after ploding through the files in etc I have come to the conclusion
    > that init (which is run @ boot) starts many scripts in there named
    > rc.????. ssh is started by rc.network if I am guessing correctly.

    I think init just runs /etc/rc on bootup; I'm not sure, but that's certainly
    one of the things it does.

    In any case, /etc/rc then runs each of the scripts in /etc/rc.d:

            files=`rcorder ${skip} /etc/rc.d/* 2>/dev/null`

            for _rc_elem in ${files}; do
                    run_rc_script ${_rc_elem} ${_boot}
            done

    It seems that the scripts in /etc/rc.d then look at the various configuration
    files.

    For example, /etc/rc.d/sshd will only actually start sshd if the sshd_enable
    option is set in /etc/rc.conf. rc.conf doesn't do anything itself; it merely
    contains options that other scripts read.

    - James Cook
      james.cook@utoronto.ca
    _______________________________________________
    freebsd-newbies@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
    To unsubscribe, send any mail to "freebsd-newbies-unsubscribe@freebsd.org"


  • Next message: Dan Langille: "The FreeBSD Diary: 2005-02-20 - 2005-03-12"

    Relevant Pages

    • RES: Is SSH worth it??
      ... Subject: RES: Is SSH worth it?? ... We would be using SSH and SCP. ... SCP for automated scripts. ...
      (Security-Basics)
    • RES: Is SSH worth it??
      ... attacker would have root access to another machines in your network. ... When I needed automated scripting using ssh and scp I used this programming ... SCP for automated scripts. ...
      (Security-Basics)
    • Is SSH worth it??
      ... use in my argument to the customer. ... The argument that Ettercap claims to break SSH ... We would be using SSH and SCP. ... SCP for automated scripts. ...
      (Security-Basics)
    • Re: Is SSH worth it??
      ... The argument that Ettercap claims to break SSH ... So there really will be no major change in the scripts, ... first time key exchange. ...
      (Security-Basics)
    • Re: SSH via Expect disconnects
      ... using autoexpect was the answer. ... exactly still but here is the difference between the two scripts, ... > 1) Which ssh binary is being spawned vs run by hand. ... > 3) Run truss on ssh and compare with and without Expect. ...
      (comp.lang.tcl)