From owner-freebsd-questions@freebsd.org Sun Aug 30 18:26:33 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D8C019C6AAE for ; Sun, 30 Aug 2015 18:26:33 +0000 (UTC) (envelope-from doug@safeport.com) Received: from cyrus.watson.org (cyrus.watson.org [198.74.231.69]) by mx1.freebsd.org (Postfix) with ESMTP id 938BC1C86 for ; Sun, 30 Aug 2015 18:26:33 +0000 (UTC) (envelope-from doug@safeport.com) Received: from fledge.watson.org (fledge.watson.org [198.74.231.63]) by cyrus.watson.org (Postfix) with ESMTPS id 0948946B35; Sun, 30 Aug 2015 14:26:26 -0400 (EDT) Received: from fledge.watson.org (doug@localhost.watson.org [127.0.0.1]) by fledge.watson.org (8.15.2/8.15.2) with ESMTP id t7UIQPSD022727; Sun, 30 Aug 2015 14:26:25 -0400 (EDT) (envelope-from doug@safeport.com) Received: from localhost (doug@localhost) by fledge.watson.org (8.15.2/8.15.2/Submit) with ESMTP id t7UIQPbc022722; Sun, 30 Aug 2015 14:26:25 -0400 (EDT) (envelope-from doug@safeport.com) X-Authentication-Warning: fledge.watson.org: doug owned process doing -bs Date: Sun, 30 Aug 2015 14:26:25 -0400 (EDT) From: doug@safeport.com X-X-Sender: doug@fledge.watson.org Reply-To: doug@fledge.watson.org To: Polytropon cc: "William A. Mahaffey III" , FreeBSD Questions !!!! Subject: Re: /etc files In-Reply-To: <20150830193337.2b7757ce.freebsd@edvax.de> Message-ID: References: <55E32375.9060804@hiwaay.net> <20150830182940.38e81873.freebsd@edvax.de> <55E332E4.2070400@hiwaay.net> <20150830193337.2b7757ce.freebsd@edvax.de> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (fledge.watson.org [127.0.0.1]); Sun, 30 Aug 2015 19:26:25 +0100 (BST) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Aug 2015 18:26:33 -0000 On Sun, 30 Aug 2015, Polytropon wrote: > On Sun, 30 Aug 2015 11:49:50 -0453.75, William A. Mahaffey III wrote: >> On 08/30/15 11:35, Polytropon wrote: >>> On Sun, 30 Aug 2015 10:43:59 -0453.75, William A. Mahaffey III wrote: >>>> I notice several files in my /etc directory whose filenames end in ':'. >>>> Are these system files ? If not, can I usefully delete them :-) ? TIA & >>>> have aq nice weekend. >>> Never heared of those... can you provide an example? >>> Maybe some timestamped backup files? But who would >>> store them in /etc? And why should they end in ':'? >>> >>> Aside of file names, what do those files contain? >>> Can you show or tell? >>> >>> And what are their creation timestamps? >>> >>> As it has been suggested, add the "src" component >>> in /etc/freebsd-update.conf and fetch+install it, >>> then compare to /usr/src/etc, which is the "template" >>> from which /etc will be generated. >>> >>> To summarize: Files ending in ':' probably do not >>> belong to /etc. >>> >>> >>> >>> COM1: :-) >> >> >> From last nights backup: >> >> >> [wam@Q6600, ~, 11:46:03am] 1369 % lf /home/rsync/Jaguar/etc/*: >> /home/rsync/Jaguar/etc/enabled: /home/rsync/Jaguar/etc/fingerprints: >> /home/rsync/Jaguar/etc/mirror_type: /home/rsync/Jaguar/etc/signature_type: >> [wam@Q6600, ~, 11:46:09am] 1370 % file !$ >> file /home/rsync/Jaguar/etc/*: >> /home/rsync/Jaguar/etc/enabled:: ASCII text >> /home/rsync/Jaguar/etc/fingerprints:: empty >> /home/rsync/Jaguar/etc/mirror_type:: empty >> /home/rsync/Jaguar/etc/signature_type:: empty > > Empty files and a text file, and ending in ':', very strange. > However, a process with root privilege must have written them > because /etc is (or _should be_) writable by root only. > > What does /etc/enabled: contain? > > > >> [wam@Q6600, ~, 11:46:14am] 1371 % ll !$ >> ll /home/rsync/Jaguar/etc/*: >> -rw-r--r--. 1 wam users 143851520 Sep 3 2014 >> /home/rsync/Jaguar/etc/enabled: >> -rw-r--r--. 1 wam users 0 Sep 3 2014 >> /home/rsync/Jaguar/etc/fingerprints: >> -rw-r--r--. 1 wam users 0 Sep 3 2014 >> /home/rsync/Jaguar/etc/mirror_type: >> -rw-r--r--. 1 wam users 0 Sep 3 2014 >> /home/rsync/Jaguar/etc/signature_type: > > > And _this_ is very strange: Those look like user files. How > did they get (a) into the original /etc, or (b) into its > backup which you're showing the listing from? > > > >> I did the mod to freebsd-update.conf & did a fetch, but not an install >> (yet), is that required ? > > Yes. The "fetch" operation will only download the changes, > but "install" will actually put them in place. Of course > you could manually extract what "fetch" has already down- > loaded and find /usr/src. > > However, none of the names looks familiar to me in a > context that they would somehow deserve to exist in /etc... > > > >> I see no /usr/src/etc directory after the >> fetch, so I surmise that the update is required, no ? > > Correct. If not present yet, it will be generated and > populated automatically when you do the "install" step. > > > >> If so, I will do >> that from a console login to minimize disturbances to the force, not the >> XFCE/rxvt ssh-root-login I currently have open .... > > It shouldn't matter. It's basically just an archive > decompression process. :-) > On RELEASE FreeBSD 10.1-RELEASE #0 r274401 there is no /etc/enabled. What sequence causes this to be created? I frequently generate files with weird names by being careless with the mouse, ie doing a cut-and-paste and an immediate double-click that catches some portion of the screen above the command line. If you can reboot nothing fatal was done. You can usually pick out all such files by 'ls -lt | head -'. Any files past your last intensional change would be suspect. Any zero length files were created in some fashion similar to this.