Hard links to directories: why not?
Bob Goudreau
goudreau at larrybud.rtp.dg.com
Wed Jul 25 06:09:50 AEST 1990
In article <YEV4:.9 at xds13.ferranti.com>, peter at ficc.ferranti.com (Peter
da Silva) writes:
>
> We're only talking about letting users make hard links to directories. Not
> about deleting them. Root can always make files by playing games that find
> can't find... the question at hand here is if a user can. A user can't
> unlink a directory with unlink, so they can't build this structure even if
> they can make a hard link to a directory.
Don't be too sure that even the superuser can link() to or unlink()
from directories. POSIX.1 doesn't require an implementation to
support link() and unlink() on directories, and implementations that
disallow such actions do indeed exist.
------------------------------------------------------------------------
Bob Goudreau +1 919 248 6231
Data General Corporation
62 Alexander Drive goudreau at dg-rtp.dg.com
Research Triangle Park, NC 27709 ...!mcnc!rti!xyzzy!goudreau
USA
More information about the Comp.unix.wizards
mailing list