Is there any way to find incoming links to an ascii file.

Is there any way to find incoming links to an ascii file.

am 13.10.2007 05:10:06 von grocery_stocker

The user jan has a file named 'logger'. The absolute path to this file
is

/a/j/a/jan/logger

However, jan is suspecting that both the users cdalten and mkg, who
are in the same group, have a symbolic link to this file. Assuming
jan, cdalten, and mkg are regular users that share the same group, is
there any way to determine who has symbolic links to the link

/a/j/a/jan/logger

Re: Is there any way to find incoming links to an ascii file.

am 13.10.2007 10:13:58 von Cyrus Kriticos

Chad wrote:
> The user jan has a file named 'logger'. The absolute path to this file
> is
>
> /a/j/a/jan/logger
>
> However, jan is suspecting that both the users cdalten and mkg, who
> are in the same group, have a symbolic link to this file. Assuming
> jan, cdalten, and mkg are regular users that share the same group, is
> there any way to determine who has symbolic links to the link
>
> /a/j/a/jan/logger

find / -lname logger

--
Best regards | "The only way to really learn scripting is to write
Cyrus | scripts." -- Advanced Bash-Scripting Guide

Re: Is there any way to find incoming links to an ascii file.

am 13.10.2007 11:26:49 von Janis Papanagnou

Chad wrote:
> The user jan has a file named 'logger'. The absolute path to this file
> is
>
> /a/j/a/jan/logger
>
> However, jan is suspecting that both the users cdalten and mkg, who
> are in the same group, have a symbolic link to this file. Assuming
> jan, cdalten, and mkg are regular users that share the same group, is
> there any way to determine who has symbolic links to the link
>
> /a/j/a/jan/logger
>

You already got a solution from Cyrus to find the links if you happen
to have GNU find available.

If your question is a security question (you used the word suspecting)
then user jan might also just remove the respective group permissions
from his logger file. (Don't get irritated by the access permissions
of the symbolic link; the permissions of the actual file are relevant.)

Janis