From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RDNkf-0002tL-Pl for garchives@archives.gentoo.org; Mon, 10 Oct 2011 21:51:14 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BB44D21C21B; Mon, 10 Oct 2011 21:50:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 5453D21C1CA for ; Mon, 10 Oct 2011 21:49:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id E005A1B4009 for ; Mon, 10 Oct 2011 21:49:55 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Score: -5.009 X-Spam-Level: X-Spam-Status: No, score=-5.009 required=5.5 tests=[AWL=1.590, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nrRAUisC5fIL for ; Mon, 10 Oct 2011 21:49:48 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id 421BA1B400F for ; Mon, 10 Oct 2011 21:49:47 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RDNjD-0005qw-Rg for gentoo-user@gentoo.org; Mon, 10 Oct 2011 23:49:43 +0200 Received: from athedsl-377043.home.otenet.gr ([79.131.24.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Oct 2011 23:49:43 +0200 Received: from realnc by athedsl-377043.home.otenet.gr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Oct 2011 23:49:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Nikos Chantziaras Subject: [gentoo-user] Re: transferring contents of /etc/conf.d to the config files Date: Tue, 11 Oct 2011 00:49:31 +0300 Organization: Lucas Barks Message-ID: References: <20111010173352.GA2844@solfire> <20111010184517.GB2844@solfire> <20111010191322.GA4152@solfire> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: athedsl-377043.home.otenet.gr User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20111003 Thunderbird/7.0.1 In-Reply-To: <20111010191322.GA4152@solfire> X-Archives-Salt: X-Archives-Hash: 30ab317c40f34302d13dd3159da39c37 On 10/10/2011 10:13 PM, meino.cramer@gmx.de wrote: > Nikos Chantziaras [11-10-10 20:56]: >> On 10/10/2011 09:45 PM, meino.cramer@gmx.de wrote: >>> Nikos Chantziaras [11-10-10 19:52]: >>>> On 10/10/2011 08:33 PM, meino.cramer@gmx.de wrote: >>>>> I have read several docs to figure out this...all docs do changes >>>>> in /etc/conf.d but I found no hint how to transfer that settings >>>>> to the "real" configuration files of the according programs. >>>> >>>> These *are* real configuration files and you don't need to transfer >>>> anything. >>> >>> The reason I thought, that those settings in /etc/conf.d is due >>> to a warning of the rkhunter tool: >>> [...] >>> Now I see, that it seems to check simply the wrong file. >> >> It's checking the correct file. Simply edit /etc/ssh/sshd_config to >> your liking. /etc/conf.d/ is not for those kind of settings; it's >> read-in by Gentoo's init system and other infrastructure. > > Now I am a little more confused... > > What is the purpose of this file? : > > /etc/conf.d/sshd It's used by Gentoo's init system, not by ssh. > if /etc/ssh/sshd_config is for configuration of sshd's options...for > what purpose is /etc/conf.d/sshd then ? > > And what files gets overwritten when installing a new version of sshd? All files are overwritten. In case of differences, emerge will tell you about it at the end of the emerge (even if you emerged multiple packages, the notification will only appear at the end of all of them.) Configuration protection is a basic feature of portage. When emerge tells you that the newly installed configuration files differ from the existing ones, it means that you need to run 'dispatch-conf' (or another equivalent tool) that will show you what those differences are and will allow you to merge them. Until you do that, the new config files will keep their temporary names ("._cfg" prefix).