Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Dec 2009 16:53:58 -0900
From:      Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net>
To:        freebsd-questions@freebsd.org
Cc:        Glen Barber <glen.j.barber@gmail.com>
Subject:   Re: What happened to /home?
Message-ID:  <200912231653.58836.mel.flynn%2Bfbsd.questions@mailing.thruhere.net>
In-Reply-To: <4ad871310912231646x2a2bee7p11c7004fc91974f@mail.gmail.com>
References:  <20091223230111.GA1188@bsd.remdog.net> <200912231543.35805.mel.flynn%2Bfbsd.questions@mailing.thruhere.net> <4ad871310912231646x2a2bee7p11c7004fc91974f@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 23 December 2009 15:46:57 Glen Barber wrote:
> On Wed, Dec 23, 2009 at 7:43 PM, Mel Flynn
> 
> <mel.flynn+fbsd.questions@mailing.thruhere.net> 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 <remegius@comcast.net> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912231653.58836.mel.flynn%2Bfbsd.questions>