Help with complex find syntax

I need to modify the find command below to exclude the output of the directory /usr/UDPM/PerfMgmt/shmlck

find / \( -fstype ctfs -o -fstype mntfs -o -fstype objfs -o -fstype proc -o ! local \) -prune -o -type f -perm -0002 -print 2>/dev/null

I have tried many iterations and placement of the

-name /usr/UDPM/PerfMgmt/shmlck

and have had no success. I'm just not understanding the syntax rules or it can't be done...

Help would be greatly appreciated.
Thanks in advance...:frowning:

Try adding this option:

-path '/usr/UDPM/PerfMgmt/shmlck/' -prune

Thanks for the reply, that didn't work. I've gone the more simple route and piped the output to grep with the -v shmlck and that works. It is still undecided if that is appropriate in this circumstance but it will have to do for now. I would like to get the find command to work and will continue to attempt this and will post results if positive is achieved.