Re: reading links in proc - permission denied

From: root@mauve.demon.co.uk
Date: Sat Jun 14 2003 - 17:09:40 EST


> ---
> Not at all...in fact was told it doesn't. Apparently, though,
> the listed permissions on the links are arbitrary and the system
> fairly well ignores them.
>
> I vaguely remember someone once saying that even if a symlink
> had permissions lrxw------, it could still be used by group and
> others. I don't know if that was or is still true -- certainly doesn't

man symlink
...
       The permissions of a symbolic link are irrelevant; the
       ownership is ignored when following the link, but is
       checked when removal or renaming of the link is requested
       and the link is in a directory with the sticky bit set.

In short, the permissions of the file being linked to are important.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jun 15 2003 - 22:00:40 EST