DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1st April 2012
fender0107401's Avatar
fender0107401 fender0107401 is offline
Real Name: Li.
Port Guard
 
Join Date: May 2010
Location: China, Tian Jin.
Posts: 24
Default Where should I put my config? "rc.conf" or "rc.conf.local"?

I think I should put everything in "rc.conf.local" like this:

Code:
ntpd_flags=             # enabled during install
sshd_flags=             # enabled by root
ftpd_flags="-DllUSA"    # enabled by root
But I find the installation utility enabled ssh in rc.conf.
So, what is your suggestion?

Maybe I should not enable anything during the installation and enable waht I want laterally by myself within "rc.conf.local".
Reply With Quote
  #2   (View Single Post)  
Old 1st April 2012
backrow backrow is offline
Real Name: Anthony J. Bentley
Shell Scout
 
Join Date: Jul 2009
Location: Albuquerque, NM
Posts: 136
Default

Quote:
Originally Posted by fender0107401
But I find the installation utility enabled ssh in rc.conf.
No, the install process doesn’t touch rc.conf. If you enable sshd during install, it changes nothing; if you disable sshd during install, it adds “sshd_flags=NO” to rc.conf.local.

Read the manual page: rc.conf(8)
Quote:
It is advisable to leave rc.conf untouched, and instead create and edit a new rc.conf.local file. Variables set in this file will override variables previously set in rc.conf.
__________________
Many thanks to the forum regulars who put time and effort into helping others solve their problems.
Reply With Quote
  #3   (View Single Post)  
Old 2nd April 2012
fender0107401's Avatar
fender0107401 fender0107401 is offline
Real Name: Li.
Port Guard
 
Join Date: May 2010
Location: China, Tian Jin.
Posts: 24
Default

Got it.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with pf.conf A_Sorenby OpenBSD Security 14 21st June 2011 09:52 PM
Pf.conf erict35 OpenBSD Security 1 30th January 2010 10:19 PM
log from rc.conf.local and rc.local sdesilet OpenBSD General 1 21st January 2010 02:37 AM
pf.conf lumiwa FreeBSD Security 11 20th September 2008 01:01 AM
difference between rc.conf and loader.conf disappearedng FreeBSD General 5 3rd September 2008 05:54 AM


All times are GMT. The time now is 09:20 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick