Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!ames!ptolemy!eos!jbm From: jbm@eos.UUCP (Jeffrey Mulligan) Newsgroups: comp.unix.wizards Subject: Re: Hard links to directories: why not? Keywords: ln, directories, security... Message-ID: <6940@eos.UUCP> Date: 18 Jul 90 18:23:30 GMT References: <5222@milton.u.washington.edu> Organization: NASA Ames Research Center, California Lines: 23 wiml@milton.u.washington.edu (William Lewis) writes: > In the man entry for ln(1) (and for link(2)), it says that >hard links may not be made to directories, unless the linker is >the super-user (in order to make '.' and '..', I suppose). My >question is: why not? What should be the output of the last command of this sequence? mkdir dir1 mkdir dir2 mkdir dir1/a_directory ln dir1/a_directroy dir2/directory_link cd dir2/directory_link cd .. pwd -- Jeff Mulligan (jbm@eos.arc.nasa.gov) NASA/Ames Research Ctr., Mail Stop 262-2, Moffet Field CA, 94035 (415) 604-3745