Joeel:

As long as the HOME folder is already shared the MD might actually work.

However, I am wondering why the MD is happening at all in a login script. Imagine having 500 people logging in and all are trying to create the folders all the time when loggin in.

However, as the original poster provided virtually nil information at all except his three lines of code, I'm not going to second-guess his intentions.
_________________________
There are two types of vessels, submarines and targets.