From: eedmit@eed.ericsson.se (Michael Tosch)
Subject: Re: Performing hard links to directories
Date: 1999/02/24 [thread overview]
Message-ID: <7b1qcr$h1o2@aken.eed.ericsson.se> (raw)
In-Reply-To: 36d438f7.12866181@news.unilim.fr
In article <36d438f7.12866181@news.unilim.fr>, olivierrobert@minitel.net (Olivier ROBERT) writes:
> Is it possible to create a hard link to a directory?
> I need this because I want to grant access to a user in a directory
> which belongs to another user in the same group, but I don't want
> everyone in the group to be able to access to that directory.
> Performing a hard link to that directory in the first user's home
> directory would be a solution...if possible. Can anyone help me?
> Thanks!
>
> O.R.
No, hard links work only with files.
Soft links work, and the effective result is much comparible.
Neither a hard nor a soft link would fulfill your requirement, though.
(Hard-linked files share one inode that holds the permission and ownership,
if you change permission on one link, the other link(s) would change, too.)
A possible approach is: create another group, make both users members of the
group, and do (or have them do) something with newgrp.
Another approach is: give both users the same UID/GID in passwd. The
drawback is, the user that is FIRST in passwd will always appear as owner,
and some applications (e.g. screenlock) might be confused.
--
/// \\\
( ..) (.. )
------------o00-(_)-00o--------o00-(_)-00o-------------------------------
Michael Tosch Ericsson Eurolab Deutschland GmbH
Data Services EED/I 52134 Herzogenrath Kohlscheid
Senior Local System Administrator Germany
next prev parent reply other threads:[~1999-02-24 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 ` Ron Dilley
1999-02-26 5:00 ` Olivier ROBERT
1999-02-26 5:00 ` Tony Fitzgerald
1999-02-24 5:00 ` Michael Tosch [this message]
1999-02-25 5:00 ` void
1999-02-25 5:00 ` Nick Maclaren
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