first of all if this is the only thing you would like, then sorry - these 2 MOD's are not the best for sutch "simple" solution, as you could have done.
how-ever, when you have installed these MOD's meny other options will be open.
"guest permission" mod, is a MOD, where you may GRANT guest specif permissions, you can't deny
e.g. you may make a "starter forum" witch are only viewble by guests.
"extra permission" mod, wil make is posible to control not only by users "level" (guest, reg.....) but also per usergroup, who may use "special pages" e.g. memberlist.
in your case, where you would like to "hide" the users profile, I would recorment either install the MOD, witch does specific that (not my mod) or alternativly (litle overkill) to addapt the "extra permission mod" to make this posible. (it's easy)
see this post, about how to do this
http://mods.db9.dk/viewtopic.php?t=3529by default, you may only control "special pages" like memberlist, and index, as I recon, it would be best for you to deside, witch pages you will need to control.
the page you need to control is
PAGE_PROFILE
and you will need to add the "access control" part of the code into
usercp_viewprofile.php