From owner-freebsd-questions@FreeBSD.ORG Tue Jan 29 11:17:23 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 88AE33E1 for ; Tue, 29 Jan 2013 11:17:23 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 27FFA1A6 for ; Tue, 29 Jan 2013 11:17:22 +0000 (UTC) Received: from [82.113.121.31] (helo=tiny.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1U07B1-0005dH-Kf; Tue, 29 Jan 2013 10:08:24 +0100 Received: from tiny.Sisis.de (localhost [127.0.0.1]) by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id r0T98LtY015987; Tue, 29 Jan 2013 10:08:21 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny.Sisis.de (8.14.5/8.14.3/Submit) id r0T98KJZ015986; Tue, 29 Jan 2013 10:08:20 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Tue, 29 Jan 2013 10:08:20 +0100 From: Matthias Apitz To: Ralf Mardorf , freebsd-questions@freebsd.org Subject: Re: How to fix a broken owner for files from world & build from ports? Message-ID: <20130129090819.GA1372@tiny.Sisis.de> References: <20130129082806.GA2035@holstein.holy.cow> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20130129082806.GA2035@holstein.holy.cow> X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 82.113.121.31 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2013 11:17:23 -0000 El día Monday, January 28, 2013 a las 10:28:06PM -1000, parv escribió: > in message , > wrote Ralf Mardorf thusly... > > > > Hi :) > > > > I hope it's ok, when I open a new thread for this issue. > > First I need to know what files have a bad owner. > > > > I'm running > > # freebsd-update IDS >> outfile_28Jan2013.ids > > perhaps this will give some useful output, regarding to a wrong owner for > > files from world. > > > > It's still running. > > > > I still have no idea how to check this for the files build from ports. > > If I understand your problem correctly, it is of incorrect owner & > group. If so, are there any problems with just running "chown -R" on > the parent directory (say /usr/local, where ports are installed by > default)? In general, I find all this thread (wrong file owner) a bit boring. This is a mayor damage and can only be repaired by a new installation. A lot of files and directories in the systems filesystem, in / /var /usr, have dedicated owner to allow certain processes which does not run as 'root' to do their correct work there, for exmample 'mail'; i.e. you can not do just a complete "chown -R root .... " and expect that the system still works; the same is true for the ports below /usr/local; just run on a correct system something like: # find /usr/local -exec ls -ld {} \; | fgrep -v root to get a list about what I am talking. HIH matthias -- Sent from my FreeBSD netbook Matthias Apitz | - No system with backdoors like Apple/Android E-mail: guru@unixarea.de | - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | - No proprietary attachments phone: +49-170-4527211 | - Respect for open standards