From: nmm1@cus.cam.ac.uk (Nick Maclaren)
Subject: Re: Performing hard links to directories
Date: 1999/02/25 [thread overview]
Message-ID: <7b3695$nbh$1@pegasus.csx.cam.ac.uk> (raw)
In-Reply-To: slrn7d9ac2.prl.float@interport.net
In article <slrn7d9ac2.prl.float@interport.net>,
void <float@interport.net> wrote:
>On Wed, 24 Feb 1999 18:01:47 GMT, Olivier ROBERT
><olivierrobert@minitel.net> wrote:
>>Is it possible to create a hard link to a directory?
>
>Generally, only root is allowed to create hard links to directories,
>because with hard links to directories one can potentially make a loop
>that unix is not designed to detect.
>
>Do it as root and do it carefully and you'll be fine.
Perhaps. But you had better either check your system out first or
like living dangerously. Some systems don't allow even root to link
to directories and, in others, critical utilities will go bananas.
I can't remember what fsck does.
Remember that a LOT of programs and sometimes even parts of the kernel
(think pathname resolution for "a/../b") assume that a directory has
a single parent, unless it is a mount point.
Regards,
Nick Maclaren,
University of Cambridge Computing Service,
New Museums Site, Pembroke Street, Cambridge CB2 3QG, England.
Email: nmm1@cam.ac.uk
Tel.: +44 1223 334761 Fax: +44 1223 334679
next prev parent reply other threads:[~1999-02-25 5:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-24 5:00 Performing hard links to directories Olivier ROBERT
1999-02-24 5:00 ` Michael Tosch
1999-02-24 5:00 ` Ron Dilley
1999-02-26 5:00 ` Olivier ROBERT
1999-02-26 5:00 ` Tony Fitzgerald
1999-02-25 5:00 ` void
1999-02-25 5:00 ` Nick Maclaren [this message]
1999-02-25 5:00 ` Christopher J. Mattern
1999-02-26 5:00 ` Olivier ROBERT
1999-02-26 5:00 ` Alan J Rosenthal
-- strict thread matches above, loose matches on Subject: below --
1999-02-26 5:00 Tony Langdon
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox