From owner-freebsd-questions@FreeBSD.ORG Thu Dec 24 01:54:05 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6950F1065704 for ; Thu, 24 Dec 2009 01:54:05 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 328928FC1F for ; Thu, 24 Dec 2009 01:54:04 +0000 (UTC) Received: from smoochies.rachie.is-a-geek.net (mailhub.rachie.is-a-geek.net [192.168.2.11]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 3A5537E818; Wed, 23 Dec 2009 16:54:04 -0900 (AKST) From: Mel Flynn To: freebsd-questions@freebsd.org Date: Wed, 23 Dec 2009 16:53:58 -0900 User-Agent: KMail/1.12.1 (FreeBSD/8.0-STABLE; KDE/4.3.1; i386; ; ) References: <20091223230111.GA1188@bsd.remdog.net> <200912231543.35805.mel.flynn+fbsd.questions@mailing.thruhere.net> <4ad871310912231646x2a2bee7p11c7004fc91974f@mail.gmail.com> In-Reply-To: <4ad871310912231646x2a2bee7p11c7004fc91974f@mail.gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200912231653.58836.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: Glen Barber Subject: Re: What happened to /home? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Dec 2009 01:54:05 -0000 On Wednesday 23 December 2009 15:46:57 Glen Barber wrote: > On Wed, Dec 23, 2009 at 7:43 PM, Mel Flynn > > wrote: > >> What does 'file /home' say? > > > > It is a symlink. What you really want to see is ls -l /home/. Note the > > trailing slash. > > It _should_ be a symlink, which is what I am getting at. No, it _is_ a symlink. ls says so: On Wed, Dec 23, 2009 at 6:40 PM, Rem P Roberti wrote: > lrwxr-xr-x 1 root wheel 8 Dec 18 12:08 /home -> usr/home ^ ^^^^^^^^^^^ The only thing file is gonna tell you that the symlink might be broken. # ls -l total 1 lrwxr-xr-x 1 root wheel 8 Dec 23 16:50 home -> usr/home drwxr-xr-x 3 root wheel 3 Dec 23 16:50 usr # ls -ld home/. drwxr-xr-x 2 root wheel 2 Dec 23 16:50 home/. # file home home: symbolic link to `usr/home' # chmod 000 usr/home # ls -ld home/. d--------- 2 root wheel 2 Dec 23 16:50 home/. # file home home: symbolic link to `usr/home' As you can see, file don't tell you much, while using ls -ld on the target will immediately show the problem. -- Mel