How to share user and user profile in a multisite environment? Possible Duplicate:
  How do I create a multisite, sharing users and nodes?
  How to share user and user profile in a multisite environment?  




My question was about the whole process to get the shared user in a multisite environment.
I didn't know how to start.

I found my answer here

http://drupal.org/node/547862

As the title says I would like to share user and profile table between multisites.

I have got the main domain like example.com and then I have two subdomain site2.example.com and site3.example.com with separate db.

My 'sites' directory is:

all

modules

themes

libraries



default

files

setting.php



site2.example.com

modules

themes

libraries

files

setting.php



site3.example.com

modules

themes

libraries

files

setting.php

I know how to create multisites with separate db, modules, themes and files, now I would like to know the whole process to create a multisite with shared user and user profile.
What I need to do?

Thanks in advances.
Edit settings.php -> $databases

$databases['default']['default'] = array(
  'database' =&gt; 'my_db',
  'username' =&gt; 'user',
  'password' =&gt; 'pass',
  'host' =&gt; 'example',
  'prefix' =&gt; array(
    'default'   =&gt; '',
    'users'     =&gt; 'shared_db_',
    'sessions'  =&gt; 'shared_db_',
    'role'      =&gt; 'shared_db_',
    'authmap'   =&gt; 'shared_db_',
  ),
  'collation' =&gt; 'utf8_general_ci',
);


Add any other tables as required in prefix array.
Have a look at settings.php as well it has lots of documentation on all these.