You can do that by set access permission in xml configuration (including of portal, page, portlet .. configurations)
Thanks for the quick reply
I am attaching a file.I created this for Forgot password
Can u please correct if there is anything wrong
I am also attaching portal-configuration.xml.
I want 'SampleForgotPassword' portal to work
ForgotPassword.rar.zip 2.2 KB
I notice that you've created your own groups and memberships for portal users. So, your 'SampleForgotPassword' portal only will be visible (without login) for user registered in the group 'Sample', with memberships 'Configurator','Administrator','Operator' and 'Manager'.
Different pages have different access and edit permissions, you must define that permissions for each one.
If you want this page be totally public, without login, change this tag:
in pages.xml, for each public page of portal.