On 8/23/05, JD Runyan <[EMAIL PROTECTED]> wrote:
>
> As far as hard links go, you can only use them in the same filesystem.
> They are useful for allowing one group of people rights to alter a file,
> and another group the rights to view a file, because each link to the
> file has its own permissions.
Well, I don't think so. See below for a quick experiment:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[EMAIL PROTECTED] tmp]$ mkdir try
[EMAIL PROTECTED] tmp]$ cd try
[EMAIL PROTECTED] try]$ touch foo
[EMAIL PROTECTED] try]$ ls -l
total 0
-rw-rw-r-- 1 cdl cdl 0 Aug 23 08:48 foo
[EMAIL PROTECTED] try]$ ln foo bar
[EMAIL PROTECTED] try]$ ls -l
total 0
-rw-rw-r-- 2 cdl cdl 0 Aug 23 08:48 bar
-rw-rw-r-- 2 cdl cdl 0 Aug 23 08:48 foo
[EMAIL PROTECTED] try]$ chmod o+w bar
[EMAIL PROTECTED] try]$ ls -l
total 0
-rw-rw-rw- 2 cdl cdl 0 Aug 23 08:48 bar
-rw-rw-rw- 2 cdl cdl 0 Aug 23 08:48 foo
[EMAIL PROTECTED] try]$ chmod a-w bar
[EMAIL PROTECTED] try]$ ls -l
total 0
-r--r--r-- 2 cdl cdl 0 Aug 23 08:48 bar
-r--r--r-- 2 cdl cdl 0 Aug 23 08:48 foo
[EMAIL PROTECTED] try]$
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Note that there is only one set of mode bits, and the file has the
same modes regardless of what you call it.
carl
--
carl lowenstein marine physical lab u.c. san diego
[EMAIL PROTECTED]
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list