Here you mentioned a directory loop demo/demo/demo.... that is another problem not related to the sharing of users that was the previous question.
Verify how you create the directory on your disk.
I suspect that you have create public_html/demo that is a physical directory and created inside this directory an alias called "demo" that point on your master that I supposed is called demo.
If this is the case, this might be correct when you want a URL like
www.mydomain.com/demo/demo
If you want to experiment a user sharing functionality, I suggest that you create a test environment that reproduce exactly the tutorial video 16 with exactly the same value. In general, we are using keywords that is compatible with all the lunix environment
www.jms2win.com/en/tutorial#jms12x-16