Results 1 to 1 of 1
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 ...
- 12-04-2009 #1Just Joined!
- Join Date
- Dec 2009
- Posts
- 2
Problem With Creating Users With c# code
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


Reply With Quote