>Can I use the find command to search for all files that link to a particular
>My account doesn't have permission to list the contents of a directory, but
>I might have execute permissions on files within it to be accessed via sym
>links in directories I can access. (I don't know if this is possible -
>just guessing really)
I don't think find has an option to match the target of a link. You can
use find to find all symlinks, and then something else to compare the
find / -type l -ls | grep ' -> /path/to/target/directory/'
This will only find links whose targets use an absolute pathname to access
the directory. Symlink targets can also be relative pathnames, which are
interpreted relative to the directory containing the link. It would be
possible to write a script that merges the directory portion of the symlink
path with the target, but it will be much more complex than the above. And
if a symlink points to another symlink, it gets much harder still.
Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.