Hi, i am experiencing some problems with programming in c#. I have to be able to create users with c#.

I have got the following code.

System.Diagnostics.Process procesUser = new System.Diagnostics.Process();
procesUser.StartInfo.FileName = "useradd -m -g " + temp[4] + " -p `openssl passwd " + temp[1] + "` " + temp[0];
procesUser.Start();

where temp[4] is the group, temp[1] the password and temp[0] the username.
The users are getting created but can't login so there should be something wrong with the openssl part.

Any idea how to do it easyer?

Greetz,

Jeroen Dries